move code up one directory
[atutor.git] / themes / mobile / instructor / announcements / index.tmpl.php
1 <form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
2 <div class="table-surround">
3 <table class="data" summary="Title and date of instructor announcements" >
4 <colgroup>
5         <?php if ($this->col == 'title'): ?>
6                 <col />
7                 <col class="sort" />
8                 <col />
9         <?php elseif($this->col == 'date'): ?>
10                 <col span="2" />
11                 <col class="sort" />
12         <?php endif; ?>
13 </colgroup>
14 <thead>
15 <tr>
16         <th scope="col">&nbsp;</th>
17         <th scope="col"><a href="mods/_standard/announcements/index.php?<?php echo $this->orders[$this->order]; ?>=title"><?php echo _AT('title'); ?></a></th>
18         <th scope="col"><a href="mods/_standard/announcements/index.php?<?php echo $this->orders[$this->order]; ?>=date"><?php echo _AT('date'); ?></a></th>
19 </tr>
20 </thead>
21 <tfoot>
22 <tr>
23         <td colspan="3"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" class="button"/> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>"  class="button"/></td>
24 </tr>
25 </tfoot>
26 <tbody>
27         <?php if ($row = mysql_fetch_assoc($this->result)): ?>
28                 <?php do { ?>
29                         <tr onkeydown="document.form['n<?php echo $row['news_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['n<?php echo $row['news_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['news_id']; ?>">
30                         
31                                 <td><input type="radio" name="aid" value="<?php echo $row['news_id']; ?>" id="n<?php echo $row['news_id']; ?>" /></td>
32                                 
33                                 <td><label for="n<?php echo $row['news_id']; ?>"><?php echo AT_print($row['title'], 'news.title'); ?></label></td>
34                                 <td><?php echo AT_date(_AT('announcement_date_format'), $row['date'], AT_DATE_MYSQL_DATETIME); ?></td>
35                         </tr>
36                 <?php } while ($row = mysql_fetch_assoc($this->result)); ?>
37         <?php else: ?>
38                 <tr>
39                         <td colspan="3"><?php echo _AT('none_found'); ?></td>
40                 </tr>
41         <?php endif; ?>
42 </tbody>
43 </table>
44 </div>
45 </form>