Dokeos PHP Cross Reference Learning Management Systems

Source: /main/exercice/tracking/questions_templates/unique_answer.page - 40 lines - 1428 bytes - Text - Print

   1  <h3>
   2      <?php echo $this->question ?> <i>(<?php echo get_lang('UniqueAnswer') ?>)</i>
   3  </h3>
   4  <table class="data_table">
   5      <tr class="row_odd">
   6          <th width="30"></th>
   7          <th><?php echo get_lang('Answer') ?></th>
   8          <th width="200"></th>
   9          <th width="50"><?php echo get_lang('Percent') ?></th>
  10          <th width="50"><?php echo get_lang('Total') ?></th>
  11      </tr>
  12      <?php $trClass = 'row_even' ?>
  13      <tr class="<?php echo $trClass ?>">
  14          <td></td>
  15          <td><?php echo get_lang('AnsweredNothing') ?></td>
  16          <td>
  17              <?php Graphics::insert_static_progress_bar($o_answer->stats[0]['average'], 200); ?>
  18          </td>
  19          <td><?php echo number_format($o_answer->stats[0]['average'], 0) ?>%</td>
  20          <td><?php echo intval($o_answer->stats[0]['total']) ?></td>
  21      </tr>
  22      <?php foreach($o_answer->answer as $answerId => $answerTitle) : ?>
  23      <?php $trClass = $trClass == 'row_odd' ? 'row_even' : 'row_odd'; ?>
  24      <tr class="<?php echo $trClass?>">
  25          <td align="center" valign="middle">
  26              <?php if($o_answer->correct[$answerId]) : ?>
  27                  <img src="<?php echo api_get_path(WEB_IMG_PATH) ?>checkok.png" />
  28              <?php endif; ?>
  29          </td>
  30          <td><?php echo $answerTitle ?></td>
  31          <td>
  32              <?php Graphics::insert_static_progress_bar($o_answer->stats[$answerId]['average'], 200); ?>
  33          </td>
  34          <td>
  35              <?php echo number_format($o_answer->stats[$answerId]['average'], 0) ?>%
  36          </td>
  37          <td><?php echo intval($o_answer->stats[$answerId]['total']) ?></td>
  38      </tr>
  39      <?php endforeach; ?>
  40  </table>

title

Description

title

Description

title

Description

title

title

Body