1 <?php global $stripslashes;?>
2 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
4 <div class="input-form">
5 <fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_question'); ?></legend>
8 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="topic"><?php echo _AT('topic'); ?></label><br />
9 <select name="topic_id" id="topic">
10 <?php while ($row = mysql_fetch_assoc($this->result)): ?>
11 <option value="<?php echo $row['topic_id']; ?>"<?php if (isset($_POST['topic_id']) && ($row['topic_id'] == $_POST['topic_id'])) { echo ' selected="selected"'; } ?>><?php echo AT_print($row['name'], 'input.text'); ?></option>
16 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="question"><?php echo _AT('question'); ?></label><br />
17 <input type="text" name="question" size="40" id="question" value="<?php if (isset($_POST['question'])) echo AT_print($stripslashes($_POST['question']), 'input.text'); ?>" />
21 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="answer"><?php echo _AT('answer'); ?></label><br />
22 <textarea name="answer" cols="40" rows="3" id="answer" style="width:90%;"><?php if (isset ($_POST['answer'])) echo AT_print($stripslashes($_POST['answer']), 'text.input'); ?></textarea>
26 <div class="row buttons">
27 <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
28 <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />