remove old readme
[atutor.git] / docs / themes / simplified-desktop / instructor / assignments / index_instructor.tmpl.php
1
2 <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
3 <div class="table-surround">
4 <table class="data">
5 <colgroup>
6         <?php if ($this->sort == 'title'): ?>
7                 <col />
8                 <col class="sort" />
9                 <col span="5" />
10         <?php elseif($this->sort == 'assign_to'): ?>
11                 <col span="2" />
12                 <col class="sort" />
13                 <col span="4" />
14         <?php elseif($this->sort == 'date_due'): ?>
15                 <col span="3" />
16                 <col class="sort" />
17                 <col span="3" />
18         <?php endif; ?>
19 </colgroup>
20 <thead>
21 <tr>
22         <th>&nbsp;</th>
23         <th scope="col"><a href="mods/_standard/assignments/index_instructor.php?sort=title<?php echo SEP; ?>order=<?php echo $orders[$order]; ?>"><?php echo _AT('title'); ?></a></th>
24         <th scope="col"><?php echo _AT('assigned_to'); ?></th>
25         <th scope="col"><a href="mods/_standard/assignments/index_instructor.php?sort=date_due<?php echo SEP; ?>order=<?php echo $orders[$order]; ?>"><?php echo _AT('due_date'); ?></a></th>
26 </tr>
27 </thead>
28 <?php if (($this->result != 0) && ($row = mysql_fetch_assoc($this->result))) : ?>
29 <tfoot>
30 <tr>
31         <td colspan="4">
32                 <input type="submit" name="submissions" value="<?php echo _AT('submissions'); ?>" class="button"/> 
33                 <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>"  class="button"/> 
34                 <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" class="button" />
35                                         
36         </td>
37 </tr>
38 </tfoot>
39 <tbody>
40         <?php do { ?>
41                 <tr onkeydown="document.form['a<?php echo $row['assignment_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['a<?php echo $row['assignment_id']; ?>'].checked = true; rowselect(this);" id="a_<?php echo $row['assignment_id']; ?>_0">
42                 
43                 <td><input type="radio" id="a<?php echo $row['assignment_id']; ?>" name="assignment" value="<?php echo $row['assignment_id']; ?>" 
44
45                 <?php // set first item as checked if nothing selected
46                 if (isset($_GET['assignment_id'])){
47                         if ($_GET['assignment_id'] == $row['assignment_id']){ 
48                                 echo ' checked="checked"'; 
49                         } 
50                 }
51                 else {
52                         echo ' checked="checked"';
53                         $_GET['assignment_id'] = $row['assignment_id'];
54                 }
55                 ?>/></td>
56
57                 <td><label for="a<?php echo $row['assignment_id']; ?>"><?php echo AT_print($row['title'], 'assignment.title'); ?></label></td>
58
59                 <td><?php if($row['assign_to'] == '0'){echo _AT('all_students'); } else {
60                                 
61                                         $type_row = mysql_fetch_assoc($this->type_result);
62                                         echo $type_row['title']; } ?></td>
63
64                 <td><?php  if ($row['date_due'] == '0000-00-00 00:00:00'){
65                         echo _AT('none');
66                 }else {
67                         echo AT_Date(_AT('forum_date_format'), $row['date_due'], AT_DATE_MYSQL_DATETIME);
68                 }?></td>
69                 </tr>
70         <?php } while($row = mysql_fetch_assoc($this->result)); ?>
71 </tbody>
72 <?php else: ?>
73         <tr>
74                 <td colspan="4"><strong><?php echo _AT('none_found'); ?></strong></td>
75         </tr>
76 <?php endif; ?>
77 </table>
78 </div>
79 </form>