remove old readme
[atutor.git] / themes / default / test_questions / matching_stats.tmpl.php
1 <br/>
2 <table class="data static" summary="" style="width: 95%" rules="cols">
3 <thead>
4 <tr>
5         <th scope="col" width="40%"><?php echo _AT('question'); ?></th>
6         <?php for ($i=0; $i< $this->num_choices; $i++): ?>
7                 <?php $this->row['choice_'.$i] = validate_length($this->row['choice_'.$i], 15, VALIDATE_LENGTH_FOR_DISPLAY); ?>
8                 <th scope="col"><?php echo htmlspecialchars($this->row['choice_'.$i], ENT_COMPAT, "UTF-8"); ?></th>
9         <?php endfor; ?>
10 </tr>
11 </thead>
12 <tr>
13         <td valign="top" rowspan="2"><?php echo $this->row['question']; ?></td>
14         <?php for ($j=0; $j<$this->num_choices; $j++): ?>
15                 <td align="center" valign="top"><?php echo (int) $this->answers[$j]['count']; ?> / <?php echo $this->num_results; ?></td>
16         <?php endfor; ?>
17 </tr>
18 <tr>
19         <?php for ($j=0; $j<$this->num_choices; $j++): ?>
20                 <td align="center" valign="top"><div class="qstat_bar-border"><div class="qstat_bar-bar"><div class="qstat_bar-fill" style="height:<?php echo 100-($this->num_results ? round($this->answers[$j]['count']/$this->num_results*100) : 0); ?>%;"></div></div></div><?php echo $this->num_results ? round($this->answers[$j]['count']/$this->num_results*100) : 0; ?>%</td>
21         <?php endfor; ?>
22 </tr>
23 </table>