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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 5175 Revision 5176
13 13
14<div class="ablock clearfix"> 14<div class="ablock clearfix">
15 <?php if($state->event == QUESTION_EVENTGRADE) { ?> 15 <?php if($state->event == QUESTION_EVENTGRADE) { ?>
16 <table class="answer"> 16 <table class="answer">
17 <tr class="header"> 17 <tr class="header">
18 <th class="c0"></th>
19 <th class="c0"></th>
18 <th class="c0">Result</th> 20 <th class="c0">Result</th>
19 <th class="c0">Answer</th> 21 <th class="c0">Answer</th>
20 <th class="c0">Preview</th> 22 <th class="c0">Preview</th>
21 <th class="c0">Evaluated</th> 23 <th class="c0">Evaluated</th>
22 <th class="c0">Errors</th> 24 <th class="c0">Errors</th>
23 </tr> 25 </tr>
26 <?php $i = 1; ?>
24 <?php $row = 1; foreach ($answerfields as $answerobj) { ?> 27 <?php $row = 1; foreach ($answerfields as $answerobj) { ?>
25 <tr class="<?php echo 'r'.$row = $row ? 0 : 1; ?>"> 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>
26 <td class="c0" style="width: 15%;"> 35 <td class="c0" style="width: 15%;">
27 <?php echo question_get_feedback_image($answerobj['score']); ?>
28 <?php if($answerobj['score'] == 1) { $class = 'correct'; echo "Correct"; } else { $class = 'incorrect'; echo "Incorrect"; } ?> 36 <?php if($answerobj['score'] == 1) { $class = 'correct'; echo "Correct"; } else { $class = 'incorrect'; echo "Incorrect"; } ?>
29 </td> 37 </td>
30 <td class="c0" style="width: 15%;"> 38 <td class="c0" style="width: 15%;">
31 <?php echo $answerobj['answer']; ?> 39 <?php echo $answerobj['answer']; ?>
32 </td> 40 </td>
38 </td> 46 </td>
39 <td class="c0" style="width: 40%;"> 47 <td class="c0" style="width: 40%;">
40 <?php echo $answerobj['answer_msg']; ?> 48 <?php echo $answerobj['answer_msg']; ?>
41 </td> 49 </td>
42 </tr> 50 </tr>
51 <?php $i++; ?>
43 <?php } ?> 52 <?php } ?>
44 </table> 53 </table>
45 <?php } ?> 54 <?php } ?>
46 55
47 <?php if ($feedback) { ?> 56 <?php if ($feedback) { ?>

Legend:
Removed from v.5175  
changed lines
  Added in v.5176

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9