<? if ($_GET['mode'] == 'admin') require_once('./templates/admin/overall_header.tpl.php'); else require_once('./templates/overall_header.tpl.php'); ?> <div id="content"> <? if ($this->TPL['error_msg'] != '') { ?> <div class="error_form"> <?= $this->TPL['error_msg']; ?> </div> <? } ?> <br><form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post"> <div class="forum_table"> <div class="row"> <div class="hc1"><?= $this->TPL['forum_form_name']; ?></div> <div class="hc4"> </div> </div> <div class="row"> <div class="tc1 lc"> User: </div> <div class="tc4 rc"> <select name="user_id"> <?php for ($i=0; $i<count($this->TPL['users_list']); $i++) { $sel = ($this->TPL['users_list'][$i]['user_id'] == $this->TPL['user_id']) ? 'selected="selected"' : ''; echo '<option value="'.$this->TPL['users_list'][$i]['user_id'].'" '.$sel.'>'.$this->TPL['users_list'][$i]['nick'].'</option>'; } ?> </select> </div> </div> <div class="row"> <div class="tc1 lc"> Reason: </div> <div class="tc4 rc"> <textarea id="signature" name="reason" id="reason" maxlength="150"><?= $this->TPL['reason']; ?></textarea> </div> </div> <div class="row"> <div class="tc1 lc"> </div> <div class="tc4 rc"> <input type="submit" value="Add"> </div> </div> </div> </form> </div> <? require_once('./templates/overall_footer.tpl.php'); ?>