remove old readme
[atutor.git] / docs / themes / simplified-desktop / instructor / polls / index.tmpl.php
1 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
2 <div class="table-surround">
3 <table class="data" summary="Course polls listed by question, creation date and votes" >
4 <colgroup>
5         <?php if ($this->col == 'question'): ?>
6                 <col />
7                 <col class="sort" />
8                 <col span="2" />
9         <?php elseif($this->col == 'created_date'): ?>
10                 <col span="2" />
11                 <col class="sort" />
12                 <col />
13         <?php elseif($this->col == 'total'): ?>
14                 <col span="3" />
15                 <col class="sort" />
16         <?php endif; ?>
17 </colgroup>
18 <thead>
19 <tr>
20         <th scope="col">&nbsp;</th>
21         <th scope="col"><a href="mods/_standard/polls/tools/index.php?<?php echo $this->orders[$this->order]; ?>=question"><?php echo _AT('question'); ?></a></th>
22         <th scope="col"><a href="mods/_standard/polls/tools/index.php?<?php echo $this->orders[$this->order]; ?>=created_date"><?php echo _AT('created'); ?></a></th>
23         <th scope="col"><a href="mods/_standard/polls/tools/index.php?<?php echo $this->orders[$this->order]; ?>=total"><?php echo _AT('total_votes'); ?></a></th>
24 </tr>
25 </thead>
26 <tfoot>
27 <tr>
28         <td colspan="4">
29                 <input type="submit" name="edit"   value="<?php echo _AT('edit'); ?>" />
30                 <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />
31         </td>
32 </tr>
33 </tfoot>
34 <tbody>
35 <?php if ($row = mysql_fetch_assoc($this->result)) : ?>
36         <?php do { ?>
37                 <tr onmousedown="document.form['p_<?php echo $row['poll_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['poll_id']; ?>">
38                         <td><input type="radio" id="p_<?php echo $row['poll_id']; ?>" name="poll" value="<?php echo $row['poll_id']; ?>" /></td>
39                         <td><label for="p_<?php echo $row['poll_id']; ?>"><?php echo AT_print($row['question'], 'polls.question'); ?></label></td>
40                         <td><?php echo AT_DATE(_AT("server_date_format"), $row['created_date']); ?></td>
41                         <td><?php echo $row['total']; ?></td>
42                 </tr>
43         <?php } while($row = mysql_fetch_assoc($this->result)); ?>
44 <?php else: ?>
45         <tr>
46                 <td colspan="4"><?php echo _AT('none_found'); ?></td>
47         </tr>
48 <?php endif; ?>
49 </tbody>
50 </table>
51 </div>
52 </form>