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