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.

55 lines
1.5 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. User:
  22. </div>
  23. <div class="tc4 rc">
  24. <select name="user_id">
  25. <?php
  26. for ($i=0; $i<count($this->TPL['users_list']); $i++)
  27. {
  28. $sel = ($this->TPL['users_list'][$i]['user_id'] == $this->TPL['user_id']) ? 'selected="selected"' : '';
  29. echo '<option value="'.$this->TPL['users_list'][$i]['user_id'].'" '.$sel.'>'.$this->TPL['users_list'][$i]['nick'].'</option>';
  30. }
  31. ?>
  32. </select>
  33. </div>
  34. </div>
  35. <div class="row">
  36. <div class="tc1 lc">
  37. Reason:
  38. </div>
  39. <div class="tc4 rc">
  40. <textarea id="signature" name="reason" id="reason" maxlength="150"><?php echo $this->TPL['reason']; ?></textarea>
  41. </div>
  42. </div>
  43. <div class="row">
  44. <div class="tc1 lc">
  45. &nbsp;
  46. </div>
  47. <div class="tc4 rc">
  48. <input type="submit" value="Add">
  49. </div>
  50. </div>
  51. </div>
  52. </form>
  53. </div>
  54. <?php require_once('./templates/overall_footer.tpl.php'); ?>