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.

75 lines
2.2 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['forum_form_name']; ?></div>
  17. <div class="hc4">&nbsp;</div>
  18. </div>
  19. <div class="row">
  20. <div class="tc1 lc">
  21. Forum name:
  22. </div>
  23. <div class="tc4 rc">
  24. <input type="text" maxlength="50" 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. Forum description:
  30. </div>
  31. <div class="tc4 rc">
  32. <input type="text" maxlength="150" name="desc" id="desc" value="<?php echo $this->TPL['desc']; ?>" style="width: 400px">
  33. </div>
  34. </div>
  35. <div class="row">
  36. <div class="tc1 lc">
  37. Category:
  38. </div>
  39. <div class="tc4 rc">
  40. <select name="category_id">
  41. <?php
  42. for ($i=0; $i<count($this->TPL['cats_list']); $i++)
  43. {
  44. $sel = ($this->TPL['cats_list'][$i]['category_id'] == $this->TPL['category_id']) ? 'selected="selected"' : '';
  45. echo '<option value="'.$this->TPL['cats_list'][$i]['category_id'].'" '.$sel.'>'.$this->TPL['cats_list'][$i]['name'].'</option>';
  46. }
  47. ?>
  48. </select>
  49. </div>
  50. </div>
  51. <div class="row">
  52. <div class="tc1 lc">
  53. Forum locked:
  54. </div>
  55. <div class="tc4 rc">
  56. <input type="radio" name="locked" value="1" <?php echo $this->TPL['lock_selected']; ?>>
  57. Yes&nbsp;&nbsp;
  58. <input type="radio" name="locked" value="0" <?php echo $this->TPL['unlock_selected']; ?>>
  59. No
  60. </div>
  61. </div>
  62. <div class="row">
  63. <div class="tc1 lc">
  64. &nbsp;
  65. </div>
  66. <div class="tc4 rc">
  67. <input type="submit" value="Save">
  68. </div>
  69. </div>
  70. </div>
  71. </form>
  72. </div>
  73. <?php require_once('./templates/overall_footer.tpl.php'); ?>