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) {
        ?>
	<?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;
        ?>
				<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 
}