The beginnings of the simplified-desktop theme
[atutor.git] / docs / themes / default / instructor / student_tools / instructor_index.tmpl.php
1 <?php global $_pages;?>
2 <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
3 <table class="data" rules="rows" summary="">
4 <thead>
5 <tr>
6         <th scope="cols"><?php echo _AT('section'); ?></th>
7         <th><?php echo _AT('order'); ?></th>
8 </tr>
9 </thead>
10 <tfoot>
11 <tr>
12         <td colspan="2"><input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /></td>
13 </tr>
14 </tfoot>
15 <tbody>
16
17 <?php foreach ($this->_current_modules as $module): ?>
18 <?php if ($module == 'mods/_standard/student_tools/index.php') { continue; } ?>
19 <?php  ?>
20 <tr>
21         <td>
22                 <?php if (in_array($module, $this->fha_student_tools)): ?>
23                         <input type="checkbox" name="main[]" value="<?php echo $module; ?>" id="m<?php echo $count; ?>" checked="checked" />
24                 <?php else: ?>
25                         <input type="checkbox" name="main[]" value="<?php echo $module; ?>" id="m<?php echo $count; ?>" />
26                 <?php endif; ?>
27                 <label for="m<?php echo $count; ?>"><?php 
28                         if (isset($_pages[$module]['title'])) {
29                                 echo $_pages[$module]['title'];
30                         } else {
31                                 echo _AT($_pages[$module]['title_var']);
32                 } ?></label>
33         </td>
34
35         <td align="right">
36                 <?php if (!in_array($module, $this->fha_student_tools)): ?>
37                         &nbsp;
38                 <?php else: ?>
39                         <?php if (($count != $num_main+1) && ($count > 1)): ?>
40                                 <input type="submit" name="up[<?php echo $module; ?>]" value="<?php echo _AT('move_up'); ?>" title="<?php echo _AT('move_up'); ?>" style="background-color: white; border: 1px solid; padding: 0px;" />
41                         <?php else: ?>
42                                 <img src="images/clr.gif" alt="" width="12" />
43                         <?php endif; ?>
44                         <?php if (($count != $num_main) && ($count < $this->num_modules)): ?>
45                                 <input type="submit" name="down[<?php echo $module; ?>]" value="<?php echo _AT('move_down'); ?>" title="<?php echo _AT('move_down'); ?>" style="background-color: white; border: 1px solid; padding: 0px;"/>
46                         <?php else: ?>
47                                 <img src="images/clr.gif" alt="" width="12" />
48                         <?php endif; ?>
49                 <?php endif; ?>
50         </td>
51 </tr>
52 <?php 
53 $count++;
54 endforeach; ?>
55 </tbody>
56 </table>
57 </form>