|
|
- <?php
- if ($_GET['mode'] == 'admin')
- require_once('./templates/admin/overall_header.tpl.php');
- else
- require_once('./templates/overall_header.tpl.php');
- ?>
-
- <div id="content">
- <?php if ($this->TPL['error_msg'] != '') { ?>
- <div class="error_form">
- <?php echo $this->TPL['error_msg']; ?>
- </div>
- <?php } ?>
- <br><form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
- <div class="forum_table">
- <div class="row">
- <div class="hc1"><?php echo $this->TPL['forum_form_name']; ?></div>
- <div class="hc4"> </div>
- </div>
-
- <div class="row">
- <div class="tc1 lc">
- Forum name:
- </div>
- <div class="tc4 rc">
- <input type="text" maxlength="50" name="name" id="name" value="<?php echo $this->TPL['name']; ?>" required pattern=".{3,}" required title="3 characters minimum">
- </div>
- </div>
- <div class="row">
- <div class="tc1 lc">
- Forum description:
- </div>
- <div class="tc4 rc">
- <input type="text" maxlength="150" name="desc" id="desc" value="<?php echo $this->TPL['desc']; ?>" style="width: 400px">
- </div>
- </div>
- <div class="row">
- <div class="tc1 lc">
- Category:
- </div>
- <div class="tc4 rc">
- <select name="category_id">
- <?php
- for ($i=0; $i<count($this->TPL['cats_list']); $i++)
- {
- $sel = ($this->TPL['cats_list'][$i]['category_id'] == $this->TPL['category_id']) ? 'selected="selected"' : '';
- echo '<option value="'.$this->TPL['cats_list'][$i]['category_id'].'" '.$sel.'>'.$this->TPL['cats_list'][$i]['name'].'</option>';
- }
- ?>
- </select>
- </div>
- </div>
- <div class="row">
- <div class="tc1 lc">
- Forum locked:
- </div>
- <div class="tc4 rc">
- <input type="radio" name="locked" value="1" <?php echo $this->TPL['lock_selected']; ?>>
- Yes
- <input type="radio" name="locked" value="0" <?php echo $this->TPL['unlock_selected']; ?>>
- No
- </div>
- </div>
- <div class="row">
- <div class="tc1 lc">
-
- </div>
- <div class="tc4 rc">
- <input type="submit" value="Save">
- </div>
- </div>
- </div>
- </form>
- </div>
-
- <?php require_once('./templates/overall_footer.tpl.php'); ?>
|