Revision: 1289
http://logicampus.svn.sourceforge.net/logicampus/?rev=1289&view=rev
Author: faheemkhan
Date: 2009-02-27 11:40:21 +0000 (Fri, 27 Feb 2009)
Log Message:
-----------
Added Paths:
-----------
logicampus/trunk/src/logicreate/services/lobrepo/templates/exam_question_truefalse.html
Added: logicampus/trunk/src/logicreate/services/lobrepo/templates/exam_question_truefalse.html
===================================================================
--- logicampus/trunk/src/logicreate/services/lobrepo/templates/exam_question_truefalse.html (rev 0)
+++ logicampus/trunk/src/logicreate/services/lobrepo/templates/exam_question_truefalse.html 2009-02-27 11:40:21 UTC (rev 1289)
@@ -0,0 +1,99 @@
+<h3><?= lct('True/False Question');?></h3>
+
+<?=$t['error'];?>
+
+<form method="POST">
+ <table border="0" width="600">
+ <tr>
+ <td valign="top">*<b>Question</b></td>
+ <td colspan=2>
+ <textarea rows="5" cols="50" name="question_text" <?= $t['disableFlag'];?>><?=$t['q']->qstText;?></textarea>
+ </td>
+ </tr>
+ <tr>
+ <td colspan=3 height=25> </td>
+ </tr>
+ <tr>
+ <td>*<b>Answer</b></td>
+ <td colspan=2> </td>
+ </tr>
+ <? for ($x=0;$x<2;++$x) { ?>
+ <? $qc = $t['q']->qstChoices[$x]; ?>
+ <?// debug($t['q']);?>
+ <?// debug($qc);?>
+ <tr>
+ <td width=100 align="right">
+ <? printf('%d',$x+1);?>.
+ </td>
+ <td width=50><?=$qc['label'];?></td>
+ <td>
+ <input name="correct" value="<?=$x;?>" type="radio" <?= $qc['correct'] ? 'CHECKED':'';?>>
+ </td>
+ </tr>
+ <? } ?>
+ <tr>
+ <td> </td>
+ <td colspan=2>
+<style>
+
+ div.over {
+ overflow: scroll;
+ height: 220px;
+ width: 240px;
+ }
+
+</style>
+ <FIELDSET valign="middle" style="width: 235px; height: 245px; padding: 2px;">
+
+ <select name="imagesMenu" id="imagesMenu"
+ style="width: 235px;"
+ onChange="document.getElementById('previewfile').src='<?=appurl('lobrepo/exam/event=viewImage/id=');?>' + this.value;"
+ >
+ <option value="">Select Image</option>
+ <?php
+ $images_array = array();
+ $images_array = $t['images'];
+
+ foreach( $images_array as $img)
+ { ?>
+ <option value="<?=$img['lob_repo_entry_id']?>"><?=$img['lob_title']?>
+ </option>
+ <? }
+ ?>
+ </select>
+
+ <div class="over" align="center" valign="middle">
+ <table cellpadding="2" cellspacing="0" border="0" width="100%" height="100%">
+ <tr>
+
+ <td valign="middle" align="center" height="100%" width="100%">
+ <img alt="" name="previewfile" id="previewfile">
+ <? if( isset($t['imgId']) ){ ?>
+ <script language="JavaScript" type="text/javascript">
+ document.getElementById('imagesMenu').value = <?=$t['imgId']?>;
+ document.getElementById('previewfile').src='<?=appurl('lobrepo/exam/event=viewImage/id=').$t['imgId'];?>';
+ </script>
+ <? } ?>
+
+ </td>
+ </tr>
+ </table>
+ </div>
+
+ </FIELDSET>
+ </td>
+ </tr>
+ <tr>
+ <td> </td>
+ <td colspan=2>
+ <input type="submit" name="sbmt_button" value="<?=lct('Continue ->');?>"/>
+ <input type="hidden" name="event" value="saveQuestion"/>
+ <input type="hidden" name="qidx" value="<?=$t['qidx'];?>"/>
+ <input type="hidden" name="questionType" value="<?= $t['questionType'];?>"/>
+ </td>
+ </tr>
+ </table>
+
+</form>
+
+<p>* denotes a required field.</p>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|