File: display.html

package info (click to toggle)
moodle 1.6.3-2%2Betch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 37,172 kB
  • ctags: 51,688
  • sloc: php: 231,916; sql: 5,631; xml: 2,688; sh: 1,185; perl: 638; makefile: 48; pascal: 36
file content (32 lines) | stat: -rw-r--r-- 880 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<div class="qtext">
  <?php echo $questiontext; ?>
</div>

<?php if ($image) { ?>
  <img class="qimage" src="<?php echo $image; ?>" alt="" />
<?php } ?>

<div class="ablock clearfix">
  <div class="prompt">
    <?php echo $answerprompt; ?>
  </div>

  <table class="answer">
    <?php $row = 1; foreach ($anss as $answer) { ?>
      <tr class="<?php echo 'r'.$row = $row ? 0 : 1; ?>">
        <td class="c0 control">
          <?php echo $answer->control; ?>
        </td>
        <td class="c1 text <?php echo $answer->class ?>">
          <label for="<?php echo $answer->id ?>">
            <?php echo $answer->text; ?>
          </label>
        </td>
        <td class="c0 feedback">
          <?php echo $answer->feedback; ?>
        </td>
      </tr>
    <?php } ?>
  </table>
  <?php $this->print_question_submit_buttons($question, $state, $cmoptions, $options); ?>
</div>