[Logicampus-svn] SF.net SVN: logicampus:[1287] logicampus/trunk/src/logicreate/services/ lobrepo/t
Brought to you by:
trilexcom
From: <fah...@us...> - 2009-02-27 11:38:37
|
Revision: 1287 http://logicampus.svn.sourceforge.net/logicampus/?rev=1287&view=rev Author: faheemkhan Date: 2009-02-27 11:38:33 +0000 (Fri, 27 Feb 2009) Log Message: ----------- Added Paths: ----------- logicampus/trunk/src/logicreate/services/lobrepo/templates/exam_question_matching.html Added: logicampus/trunk/src/logicreate/services/lobrepo/templates/exam_question_matching.html =================================================================== --- logicampus/trunk/src/logicreate/services/lobrepo/templates/exam_question_matching.html (rev 0) +++ logicampus/trunk/src/logicreate/services/lobrepo/templates/exam_question_matching.html 2009-02-27 11:38:33 UTC (rev 1287) @@ -0,0 +1,109 @@ +<?=$t['sectionheader'];?> + +<?=$t['error'];?><FIELDSET> +<LEGEND> +<b>Help</b> +</LEGEND> +Enter your questions in the left column and your answers in the right column. Answers will automatically be sorted for you when you preview on the next page. Questions will remain in the order you entered them. Each time you update this question the answers will be randomly sorted. +</FIELDSET> + +<form method="POST" > + <table border="0" width="100%"> + <tr> + <td> </td> + <td colspan=2> + *<b>Instructions</b><br /> + <textarea rows="5" cols="50" name="questionText" <?= $t['disableFlag'];?>><?=$t['q']->questionText;?></textarea> + </td> + </tr> + <tr> + <td colspan=3> </td> + </tr> + <tr> + <td> </td> + <td><b>Questions (or definitions)</b></td> + <td><b>Answers (or terms)</b></td> + </tr> + <? for ($x=0;$x<20;++$x) { ?> + <? $qc = $t['q']->questionChoices[$x]; ?> + <tr> + <td align="right" valign="center"> + <? if ($x <= 1) {echo '*';} else { echo ' '; } ?> + <? printf('%d',$x+1);?>. + </td> + <td valign="center"> + <input name="labels[<?=$x;?>]" type="text" value="<?=$qc->label;?>" size="40" <?= $t['disableFlag'];?>> + </td> + <td> + <? $x <= 1 ? '*' : ''; ?> + <input name="correct[<?=$x?>]" value="<?=$qc->correct?>" size="20"> + </td> + </tr> + <? } ?> + + <tr> + <td colspan=3> + +<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> + <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. |