A new, object-oriented, better vesion of μForum
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.1 KiB

  1. <?php
  2. if ($_GET['mode'] == 'admin')
  3. require_once('./templates/admin/overall_header.tpl.php');
  4. else
  5. require_once('./templates/overall_header.tpl.php');
  6. ?>
  7. <div id="content">
  8. <?php if ($this->TPL['error_msg'] != '') { ?>
  9. <div class="error_form">
  10. <?php echo $this->TPL['error_msg']; ?>
  11. </div>
  12. <?php } ?>
  13. <br><form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
  14. <div class="forum_table">
  15. <div class="row">
  16. <div class="hc1"><?php echo $this->TPL['cat_form_name']; ?></div>
  17. <div class="hc4">&nbsp;</div>
  18. </div>
  19. <div class="row">
  20. <div class="tc1 lc">
  21. Category name:
  22. </div>
  23. <div class="tc4 rc">
  24. <input type="text" maxlength="30" name="name" id="name" value="<?php echo $this->TPL['name']; ?>" required pattern=".{3,}" required title="3 characters minimum">
  25. </div>
  26. </div>
  27. <div class="row">
  28. <div class="tc1 lc">
  29. &nbsp;
  30. </div>
  31. <div class="tc4 rc">
  32. <input type="submit" value="Save">
  33. </div>
  34. </div>
  35. </div>
  36. </form>
  37. </div>
  38. <?php require_once('./templates/overall_footer.tpl.php'); ?>