Пример #1
0
            <?php 
print_question_cats($_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 
print_VE('question');
?>
        <textarea id="question" cols="50" rows="6" name="question"><?php 
echo htmlspecialchars(stripslashes($_POST['question']));
?>
</textarea>
    </div>
    
    <div class="row">
        <?php 
echo _AT('answer_size');
?>
<br />
        <input type="radio" name="properties" value="1" id="az1" <?php 
if ($_POST['properties'] == 1) {
    echo 'checked="checked"';
		
		<textarea id="question_<?php echo $i; ?>" cols="50" rows="2" name="question[<?php echo $i; ?>]"><?php 
		echo htmlspecialchars(stripslashes($_POST['question'][$i])); ?></textarea> 
	</div>
<?php endfor; ?>
	
	<div class="row">
		<h2><?php echo _AT('answers');?></h2>
	</div>
	<?php for ($i=0; $i<10; $i++): ?>
		<div class="row">
			<?php if ($i < 2) :?>
				<span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
			<?php endif; ?>
			<?php echo _AT('answer'); ?> <?php echo $_letters[$i]; ?>
			<?php print_VE('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 endfor; ?>

	<div class="row buttons">
		<input type="submit" value="<?php echo _AT('save'); ?>"   name="submit" accesskey="s" />
		<input type="submit" value="<?php echo _AT('cancel'); ?>" name="cancel" />
	</div>
	</fieldset>
</div>
</form>

<?php require (AT_INCLUDE_PATH.'footer.inc.php');  ?>
    <?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 
    print_VE('choice_' . $i);
    ?>
            <br />
            <small><input type="checkbox" name="answer[<?php 
    echo $i;
    ?>
]" id="answer_<?php 
    echo $i;
    ?>
" value="1" <?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 $_letters[$i];
    ?>
            <?php 
    print_VE('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 
}
Пример #5
0
		<select name="category_id" id="cats">
			<?php print_question_cats($_POST['category_id']); ?>
		</select>
	</div>

	<div class="row">
		<label for="optional_feedback"><?php echo _AT('optional_feedback'); ?></label>		
		<?php print_VE('optional_feedback'); ?>
		<br />
	
		<textarea id="optional_feedback" cols="50" rows="3" name="feedback"><?php echo htmlspecialchars($stripslashes($_POST['feedback'])); ?></textarea>
	</div>
	
	<div class="row">
		<span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="question"><?php echo _AT('statement'); ?></label>
		<?php print_VE('question'); ?>
		<br />

		<textarea id="question" cols="50" rows="6" name="question" style="width:90%;"><?php echo htmlspecialchars($stripslashes($_POST['question'])); ?></textarea>
	</div>
	
	<div class="row">
		<?php echo _AT('answer'); ?><br />
		<input type="radio" name="answer" value="1" id="answer1" /><label for="answer1"><?php echo _AT('true'); ?></label>, 
		<input type="radio" name="answer" value="2" id="answer2" checked="checked" /><label for="answer2"><?php echo _AT('false'); ?></label>
	</div>

	<div class="row buttons">
		<input type="submit" value="<?php echo _AT('save'); ?>"   name="submit" accesskey="s" />
		<input type="submit" value="<?php echo _AT('cancel'); ?>" name="cancel" />
	</div>
	</div>

	<div class="row">
		<span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="question"><?php echo _AT('question'); ?></label> 
		<?php print_VE('question'); ?>
		<textarea id="question" cols="50" rows="6" name="question" style="width:90%;"><?php 
		echo htmlspecialchars(stripslashes($_POST['question'])); ?></textarea>
	</div>
	
	<?php for ($i=0; $i<10; $i++): ?>
		<div class="row">
			<?php if ($i < 2): ?>
				<span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
			<?php endif; ?> <?php echo _AT('item'); ?> <?php echo ($i+1); ?>
			
			<?php print_VE('choice_' . $i); ?>
			
			<br />
	
			<textarea id="choice_<?php echo $i; ?>" cols="50" rows="2" name="choice[<?php echo $i; ?>]"><?php echo htmlspecialchars(stripslashes($_POST['choice'][$i])); ?></textarea> 
		</div>
	<?php endfor; ?>
	
	<div class="row buttons">
		<input type="submit" value="<?php echo _AT('save'); ?>"   name="submit" accesskey="s" />
		<input type="submit" value="<?php echo _AT('cancel'); ?>" name="cancel" />
	</div>
</div>
</form>

<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
Пример #7
0
    <textarea id="optional_feedback" cols="50" rows="3" name="feedback" placeholder="<?php 
echo _AT('feedback_placeholder');
?>
"><?php 
echo htmlspecialchars($stripslashes($_POST['feedback']));
?>
</textarea>
</div>

<div class="row">
    <label for="remedial_content"><?php 
echo _AT('remedial_content');
?>
</label>
    <?php 
print_VE('remedial_content');
?>
    <textarea id="remedial_content" cols="50" rows="6" name="remedial_content" placeholder="<?php 
echo _AT('remedial_content_placeholder');
?>
"><?php 
echo htmlspecialchars($stripslashes($_POST['remedial_content']));
?>
</textarea>
    
<div class="row buttons">
    <input type="submit" value="<?php 
echo _AT('save');
?>
"   name="submit" accesskey="s" />
    <input type="submit" value="<?php 
Пример #8
0
        ?>
                <span class="required" title="<?php 
        echo _AT('required_field');
        ?>
">*</span>
            <?php 
    }
    ?>
            <?php 
    echo _AT('answer');
    ?>
 <?php 
    echo $_letters[$i];
    ?>
            <?php 
    print_VE('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 
}