2 <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
3 <div class="table-surround">
6 <?php if ($this->sort == 'title'): ?>
10 <?php elseif($this->sort == 'assign_to'): ?>
14 <?php elseif($this->sort == 'date_due'): ?>
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>
28 <?php if (($this->result != 0) && ($row = mysql_fetch_assoc($this->result))) : ?>
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" />
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">
43 <td><input type="radio" id="a<?php echo $row['assignment_id']; ?>" name="assignment" value="<?php echo $row['assignment_id']; ?>"
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"';
52 echo ' checked="checked"';
53 $_GET['assignment_id'] = $row['assignment_id'];
57 <td><label for="a<?php echo $row['assignment_id']; ?>"><?php echo AT_print($row['title'], 'assignment.title'); ?></label></td>
59 <td><?php if($row['assign_to'] == '0'){echo _AT('all_students'); } else {
61 $type_row = mysql_fetch_assoc($this->type_result);
62 echo $type_row['title']; } ?></td>
64 <td><?php if ($row['date_due'] == '0000-00-00 00:00:00'){
67 echo AT_Date(_AT('forum_date_format'), $row['date_due'], AT_DATE_MYSQL_DATETIME);
70 <?php } while($row = mysql_fetch_assoc($this->result)); ?>
74 <td colspan="4"><strong><?php echo _AT('none_found'); ?></strong></td>