[system] / trunk / wwmoodle / wwquestion / display.html Repository:
ViewVC logotype

View of /trunk/wwmoodle/wwquestion/display.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5176 - (download) (as text) (annotate)
Fri Jul 13 21:46:07 2007 UTC (12 years, 7 months ago) by mleventi
File size: 2128 byte(s)
Answers are now displayed in textfield order.

    1 <div class="qtext">
    2     <?php echo $questiontext; ?>
    3 </div>
    4 <div class="qtext">
    5     <?php echo $problemhtml; ?>
    6     <input id="resp<?php echo $qid; ?>_seed" name="resp<?php echo $qid; ?>_seed" type="hidden" value="<?php echo $seed; ?>" />
    7     <input id="resp<?php echo $qid; ?>_derivedid" name="resp<?php echo $qid; ?>_derivedid" type="hidden" value="<?php echo $derivedid; ?>" />
    8 </div>
    9 
   10 <?php if ($image) { ?>
   11     <img class="qimage" src="<?php echo $image; ?>" alt="" />
   12 <?php } ?>
   13 
   14 <div class="ablock clearfix">
   15     <?php if($state->event == QUESTION_EVENTGRADE) { ?>
   16     <table class="answer">
   17       <tr class="header">
   18         <th class="c0"></th>
   19         <th class="c0"></th>
   20         <th class="c0">Result</th>
   21         <th class="c0">Answer</th>
   22         <th class="c0">Preview</th>
   23         <th class="c0">Evaluated</th>
   24         <th class="c0">Errors</th>
   25       </tr>
   26       <?php $i = 1; ?>
   27       <?php $row = 1; foreach ($answerfields as $answerobj) { ?>
   28       <tr class="<?php echo 'r'.$row = $row ? 0 : 1; ?>">
   29         <td class="c0">
   30             <?php echo $i . ')'; ?>
   31         </td>
   32         <td class="c0">
   33              <?php echo question_get_feedback_image($answerobj['score']); ?>
   34         </td>
   35         <td class="c0" style="width: 15%;">
   36           <?php if($answerobj['score'] == 1) { $class = 'correct'; echo "Correct"; } else { $class = 'incorrect'; echo "Incorrect"; } ?>
   37         </td>
   38         <td class="c0" style="width: 15%;">
   39           <?php echo $answerobj['answer'];  ?>
   40         </td>
   41         <td class="c0" style="width: 15%;">
   42           <?php echo base64_decode($answerobj['preview']); ?>
   43         </td>
   44         <td class="c0" style="width: 15%;">
   45           <?php echo $answerobj['evaluated']; ?>
   46         </td>
   47         <td class="c0" style="width: 40%;">
   48           <?php echo $answerobj['answer_msg']; ?>
   49         </td>
   50       </tr>
   51       <?php $i++; ?>
   52     <?php } ?>
   53   </table>
   54   <?php } ?>
   55 
   56   <?php if ($feedback) { ?>
   57     <div class="feedback">
   58         <?php echo $feedback; ?>
   59     </div>
   60   <?php } ?>
   61 
   62   <?php $this->print_question_submit_buttons($question, $state, $cmoptions, $options); ?>
   63 </div>

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9