[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 5477 - (download) (as text) (annotate)
Sun Sep 9 02:53:16 2007 UTC (12 years, 5 months ago) by mleventi
File size: 2136 byte(s)
*** empty log message ***

    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; ?>_derivationid" name="resp<?php echo $qid; ?>_derivationid" type="hidden" value="<?php echo $derivationid; ?>" />
    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 $this->print_question_submit_buttons($question, $state, $cmoptions, $options); ?>
   16     <br>
   17     <?php if($state->event == QUESTION_EVENTGRADE) { ?>
   18     <table class="answer">
   19       <tr class="header">
   20         <th class="c0"></th>
   21         <th class="c0"></th>
   22         <th class="c0">Result</th>
   23         <th class="c0">Answer</th>
   24         <th class="c0">Preview</th>
   25         <th class="c0">Evaluated</th>
   26         <th class="c0">Errors</th>
   27       </tr>
   28       <?php $i = 1; ?>
   29       <?php $row = 1; foreach ($answerfields as $answerobj) { ?>
   30       <tr class="<?php echo 'r'.$row = $row ? 0 : 1; ?>">
   31         <td class="c0">
   32             <?php echo $i . ')'; ?>
   33         </td>
   34         <td class="c0">
   35              <?php echo question_get_feedback_image($answerobj['score']); ?>
   36         </td>
   37         <td class="c0" style="width: 15%;">
   38           <?php if($answerobj['score'] == 1) { $class = 'correct'; echo "Correct"; } else { $class = 'incorrect'; echo "Incorrect"; } ?>
   39         </td>
   40         <td class="c0" style="width: 15%;">
   41           <?php echo $answerobj['answer'];  ?>
   42         </td>
   43         <td class="c0" style="width: 15%;">
   44           <?php echo $answerobj['preview']; ?>
   45         </td>
   46         <td class="c0" style="width: 15%;">
   47           <?php echo $answerobj['evaluated']; ?>
   48         </td>
   49         <td class="c0" style="width: 40%;">
   50           <?php echo $answerobj['answer_msg']; ?>
   51         </td>
   52       </tr>
   53       <?php $i++; ?>
   54     <?php } ?>
   55   </table>
   56   <?php } ?>
   57 
   58   <?php if ($feedback) { ?>
   59     <div class="feedback">
   60         <?php echo $feedback; ?>
   61     </div>
   62   <?php } ?>
   63 
   64 
   65 </div>

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9