<?php 
for ($i = 0; $i < 10; $i++) {
    ?>
		<div class="row">
			<label for="choice_<?php 
    echo $i;
    ?>
"><?php 
    echo _AT('choice');
    ?>
 <?php 
    echo $i + 1;
    ?>
</label> 
			<?php 
    TestsUtility::printVisualEditorLink('choice_' . $i);
    ?>
			<br />
			<small><input type="radio" name="answer" id="answer_<?php 
    echo $i;
    ?>
" value="<?php 
    echo $i;
    ?>
" <?php 
    if ($_POST['answer'][$i]) {
        echo 'checked="checked"';
    }
    ?>
><label for="answer_<?php 
    echo $i;
TestsUtility::printQuestionCatsInDropDown($_POST['category_id']);
?>
		</select>
	</div>

	<div class="row">
		<span class="required" title="<?php 
echo _AT('required_field');
?>
">*</span><label for="question"><?php 
echo _AT('question');
?>
</label> 
		
		<?php 
TestsUtility::printVisualEditorLink('question');
?>
		
		<textarea id="question" cols="50" rows="6" name="question"><?php 
echo htmlspecialchars(stripslashes($_POST['question']));
?>
</textarea>
	</div>

<?php 
for ($i = 0; $i < 10; $i++) {
    ?>
		<div class="row">
			<?php 
    if ($i == 0 || $i == 1) {
        ?>
예제 #3
0
		<input type="hidden" name="_course_id" value="<?php 
echo $this->course_id;
?>
" />
		<div class="row">
			<label for="cats"><?php 
echo _AT('category');
?>
</label><br />
			<select name="category_id" id="cats">
				<option value="-1"><?php 
echo _AT('cats_all');
?>
</option>
				<?php 
TestsUtility::printQuestionCatsInDropDown($_GET['category_id']);
?>
			</select>
		</div>
		<div class="row buttons">
			<input type="submit" name="filter" value="<?php 
echo _AT('filter');
?>
" />
			<input type="submit" name="reset_filter" value="<?php 
echo _AT('reset_filter');
?>
" />
		</div>
	</form>
        ?>
				<span class="required" title="<?php 
        echo _AT('required_field');
        ?>
">*</span>
			<?php 
    }
    ?>
			<?php 
    echo _AT('answer');
    ?>
 <?php 
    echo $this->letters[$i];
    ?>
			<?php 
    TestsUtility::printVisualEditorLink('answer' . $i);
    ?>
			<br />
			<textarea id="answer_<?php 
    echo $i;
    ?>
" cols="50" rows="2" name="answer[<?php 
    echo $i;
    ?>
]"><?php 
    echo htmlspecialchars(stripslashes($_POST['answer'][$i]));
    ?>
</textarea>
		</div>
	<?php 
}