AC_4897, AC_4898, AC_4899: Multifile uploader fixes.
[acontent.git] / docs / themes / default / tests / test_questions / multichoice_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         <th scope="col" nowrap="nowrap"><?php echo _AT('left_blank'); ?></th>
7         <?php for ($i=0; $i<$this->num_choices; $i++): ?>
8                 <?php $this->row['choice_'.$i] = validate_length($this->row['choice_'.$i], 15, VALIDATE_LENGTH_FOR_DISPLAY); ?>
9                 <?php if ($this->row['answer_'.$i]): ?>
10                         <th scope="col"><?php echo htmlspecialchars($this->row['choice_'.$i]); ?><img src="images/checkmark.gif" alt="" /></th>
11                 <?php else: ?>
12                         <th scope="col"><?php echo htmlspecialchars($this->row['choice_'.$i], ENT_COMPAT, "UTF-8"); ?></th>
13                 <?php endif; ?>
14         <?php endfor; ?>
15 </tr>
16 </thead>
17 <tr>
18         <td valign="top" rowspan="2"><?php echo $this->row['question']; ?></td>
19         <td align="center" valign="top"><?php echo $this->num_blanks; ?> / <?php echo $this->num_results; ?></td>
20         <?php for ($j=0; $j< $this->num_choices; $j++): ?>
21                 <td align="center" valign="top"><?php echo (int) $this->answers[$j]['count']; ?> / <?php echo $this->num_results; ?></td>
22         <?php endfor; ?>
23 </tr>
24 <tr>
25         <td align="center"><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->num_blanks/$this->num_results*100) : 0); ?>%;"></div></div></div><?php echo $this->num_results ? round($this->num_blanks/$this->num_results*100) : 0; ?>%</td>
26         <?php for ($j=0; $j< $this->num_choices; $j++): ?>
27                 <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>
28         <?php endfor; ?>
29 </tr>
30 </table>