[Logicampus-svn] SF.net SVN: logicampus:[1277] logicampus/trunk/src/logicreate/services/ lobrepo/t
Brought to you by:
trilexcom
From: <de...@us...> - 2008-10-29 12:22:33
|
Revision: 1277 http://logicampus.svn.sourceforge.net/logicampus/?rev=1277&view=rev Author: dewrax Date: 2008-10-29 11:30:59 +0000 (Wed, 29 Oct 2008) Log Message: ----------- user: dewrax (PU Tasks) Dated: Oct 29,08 Added Paths: ----------- logicampus/trunk/src/logicreate/services/lobrepo/templates/exam_question_fillinblank.html Added: logicampus/trunk/src/logicreate/services/lobrepo/templates/exam_question_fillinblank.html =================================================================== --- logicampus/trunk/src/logicreate/services/lobrepo/templates/exam_question_fillinblank.html (rev 0) +++ logicampus/trunk/src/logicreate/services/lobrepo/templates/exam_question_fillinblank.html 2008-10-29 11:30:59 UTC (rev 1277) @@ -0,0 +1,113 @@ +<?=$t['sectionheader'];?> + +<?=$t['error'];?> +<form method="POST"> + <table border="0" width="600"> + <tr> + <td valign="top">*<b>Question</b></td> + <td><textarea rows="5" cols="50" name="questionText"><?=$t['q']->questionText;?></textarea></td> + </tr> + <tr> + <td width="12"> + <b>Answer</b> + </td> + <td width="100"> + <input name="labels[0]" type="text" value="<?=$t['q']->questionChoices[0]->label;?>"> + </td> + </tr> + <tr> + <td colspan=2 height=25> </td> + </tr> + <tr> + <td> + + </td> + <td> + <b>Alternate Answer Help</b> + <br> + If you would like to enter alternate answers that you will accept, enter them + below. Example: If the if you are looking for the president of the U.S. and + the student enters 'George Washington' which is the correct answer. However, + another student enters just 'Washington'. If you have 'Washington' as an + alternate answer below, the student will receive credit for their entry. + </td> + </tr> + <tr> + <td valign="top"> + <b>Alternate Answers</b> + </td> + <td valign="top" width="100"> + <table border=0 cellpadding=2 cellspacing=0> + <? for ($x=1;$x<11;++$x) { ?> + <? $qc = $t['q']->questionChoices[$x]; ?> + <tr> + <td><? printf('%d',$x);?>.</td> + <td><? $x <= 1 ? '*' : ''; ?> + <input name="labels[<?=$x;?>]" type="text" value="<?=$qc->label;?>"></td> + </tr> + <? } ?> + </table> + </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="fileHash" + style="width: 235px;" + onChange="document.getElementById('previewfile').src='<?=appurl('classroom/viewContent/fhash=');?>' + this.value;" + > + <option value="">Select Image</option> +<?php + foreach($t['images'] as $myIzimage) + { + echo ' + <option value="'.$myIzimage['daHasha'].'"'. + ($t['q']->fileHash == $myIzimage['daHasha'] ? ' SELECTED' : '').'>'. + $myIzimage['displayname'].'</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="" src="<?= $t['q']->fileHash ? appurl('classroom/viewContent/fhash=').$t['q']->fileHash : IMAGES_URL.'spacer.gif'; ?>" id="previewfile"> + + + </td> + </tr> + </table> + </div> + + </FIELDSET> + + </td> + </tr> + <tr> + <td> + + </td> + <td> + <input type="submit" value="Continue->"> + <input type="hidden" name="event" value="save"> + </form> + </td> + </tr> + </table> + +<p>* denotes a required field.</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |