Example #1
0
<table class="table bordered condensed">
	<tr>
		<td class="bg-clearBlue text-right span2"><label>Question</label></td>
		<td class="">
		<input type="input" id="usedExamID" name="usedExamID" value="test">
		<?php 
echo HTMLLib::wysiwygFormat($lastQuestion);
?>
</td>
	</tr>
	<tr>
		<td class="bg-clearBlue text-right span2"><label>Question</label></td>
		<td class=""><pre><?php 
echo HTMLLib::CreateTextArea('question', $question, 'span12');
?>
</pre></td>
	</tr>
	<tr>
		<td class="bg-clearBlue text-right span2"><label>Selection A</label></td>
		<td class=""><?php 
echo HTMLLib::CreateInputText('selection_a', $selection_a);
?>
</td>
	</tr>
	<tr>
		<td class="bg-clearBlue text-right span2"><label>Selection B</label></td>
		<td class=""><?php 
echo HTMLLib::CreateInputText('selection_b', $selection_b);
?>
</td>
	</tr>
Example #2
0
            </div>
            
            <div class="span6">
            <?php 
if (preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|android|iemobile)/i', strtolower($_SERVER['HTTP_USER_AGENT']))) {
    ?>
            	<table class="table bordered condensed ">
				<tr class="bg-clearOrange" >
					<td class=" text-right span1 " colspan="2">
						<H4>STUDY NOTES</H4>
					</td>
				</tr>
				<tr>
					<td class="">
						<?php 
    echo HTMLLib::wysiwygFormat($reference);
    ?>
					</td>
				<tr>
				</tr>
				</table>
				<?php 
} else {
    ?>
							
            	<table class="table bordered condensed ">
				<tr class="bg-clearOrange">
					<td class=" text-right span1" colspan="2">
						<H4>STUDY NOTES</H4>
					</td>
				</tr>
Example #3
0
$lastQuestion = '';
$lastID = 1;
$question = '';
$selection_a = '';
$selection_b = '';
$selection_c = '';
$selection_d = '';
$answer = '';
$reference = '';
$illustration = '';
$lastID = 1;
if ($_SERVER['REQUEST_METHOD'] != 'POST') {
    $sql = "select * from itil_foundation_question where id = " . $lastID;
    $result = mysql_query($sql, $conn);
    while ($row = mysql_fetch_assoc($result)) {
        $lastQuestion = HTMLLib::wysiwygFormat($row['question']);
    }
}
// insert Question
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    $question = $_POST['question'];
    $selection_a = $_POST['selection_a'];
    $selection_b = $_POST['selection_b'];
    $selection_c = $_POST['selection_c'];
    $selection_d = $_POST['selection_d'];
    $answer = $_POST['answer'];
    $reference = $_POST['reference'];
    $illustration = $_POST['illustration'];
    //-----------------------
    // 		$questions = explode('QUESTION', $question);
    // 		HTMLLib::vardump($questions);