doEditBlog.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?= $this->extend('layout') ?>
  2. <?= $this->section('content') ?>
  3. <div class ="flex2">
  4. <div class ="content">
  5. <div class="d-flex justify-content-center">
  6. <?= form_open('doEditBlog'); ?>
  7. <?= csrf_field() ?>
  8. <div class="form-group">
  9. <label for="title">Blog Title</label>
  10. <input type="input" name="title" id ="title" class="form-control" value="<?php echo htmlspecialchars($blog['title']); ?>"/><br />
  11. </div>
  12. <div class="form-group">
  13. <label for="title">Id </label>
  14. <input type="input" name="Id" id ="title" class="form-control" value="<?php echo $blog['Id']; ?>"/><br />
  15. </div>
  16. <div class="form-group">
  17. <label for="theArticle">Blog Article </label>
  18. <textarea class="form-control" id ="thArticle" rows="7" cols ="45" name ="article" required ="true" ><?php echo htmlspecialchars($blog['article']); ?></textarea>
  19. </div>
  20. <div class="form-group">
  21. <input type="submit" class ="btn-success" value="submit" />
  22. </div>
  23. <div class="form-group">
  24. allowed formating tags are : &#60;p&#62; &#60;&#47;p&#62; <br>
  25. &#60;h8&#62; &#60;&#47;h8&#62; <h8>h8</h8> <br>
  26. &#60;h9&#62; &#60;&#47;h9&#62; <h9>h9</h9> <br>
  27. &#60;h10&#62; &#60;&#47;h10&#62;<h10>h10</h10> <br>
  28. &#60;h11&#62; &#60;&#47;h11&#62;<h11>h11</h11> <br>
  29. &#60;h12&#62; &#60;&#47;h12&#62;<h12>h12</h12> <br>
  30. &#60;h1&#62; &#60;&#47;h1&#62; <br>
  31. &#60;b&#62; &#60;&#47;b&#62; <br>
  32. </div>
  33. <?php echo form_close();?>
  34. </div>
  35. </div>
  36. </div>
  37. <?= $this->endSection() ?>