13bd8043f40bc7ce25921ca1b73b40216f5deff7
[atutor.git] / docs / themes / simplified-desktop / admin / courses / default_mods.tmpl.php
1
2 <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
3 <table class="data static" summary="Table of default course tools">
4 <thead>
5 <tr>
6         <th scope="cols"><?php echo _AT('section'); ?></th>
7         <th><?php echo _AT('location'); ?></th>
8         <th><?php echo _AT('order'); ?></th>
9 </tr>
10 </thead>
11 <tfoot>
12 <tr>
13         <td colspan="3" >               
14                 <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s"  />
15                 <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  />     
16         </td>
17 </tr>
18 </tfoot>
19 <tbody>
20 <?php 
21
22
23 foreach ($this->current_modules as $tool) :
24         $count++; 
25 ?>
26         <tr>
27                 <td><?php 
28                 if (isset($this->pages[$tool]['title'])) {
29                         echo $this->pages[$tool]['title'];
30                 } else {
31                         echo _AT($this->pages[$tool]['title_var']);
32                 } ?></td>
33                 <td align="center">
34                         <?php if (in_array($tool, $this->main_defaults)): ?>
35                                 <input type="checkbox" name="main[]" value="<?php echo $tool; ?>" id="m<?php echo $tool; ?>" checked="checked" /><label for="m<?php echo $tool; ?>"><?php echo _AT('main_navigation'); ?></label>
36                         <?php else: ?>
37                                 <input type="checkbox" name="main[]" value="<?php echo $tool; ?>" id="m<?php echo $tool; ?>" /><label for="m<?php echo $tool; ?>"><?php echo _AT('main_navigation'); ?></label>
38                         <?php endif; ?>
39
40                         <?php if (in_array($tool, $this->home_defaults)): ?>
41                                 <input type="checkbox" name="home[]" value="<?php echo $tool; ?>" id="h<?php echo $tool; ?>" checked="checked" /><label for="h<?php echo $tool; ?>"><?php echo _AT('home'); ?></label>
42                         <?php else: ?>
43                                 <input type="checkbox" name="home[]" value="<?php echo $tool; ?>" id="h<?php echo $tool; ?>" /><label for="h<?php echo $tool; ?>"><?php echo _AT('home'); ?></label>
44                         <?php endif; ?>
45                 </td>
46                 <td align="right">
47                         <?php if (!in_array($tool, $this->home_defaults) && !in_array($tool, $this->main_defaults)): ?>
48                                 &nbsp;
49                         <?php else: ?>
50                                 <?php if (($count != $this->num_main+1) && ($count > 1)): ?>
51                                         <input type="submit" name="up[<?php echo $tool; ?>]" value="<?php echo _AT('move_up'); ?>" title="<?php echo _AT('move_up'); ?>" style="background-color: white; border: 1px solid; padding: 0px;" />
52                                 <?php else: ?>
53                                         <img src="images/clr.gif" alt="" width="12" />
54                                 <?php endif; ?>
55                                 <?php if (($count != $this->num_main) && ($count < $this->num_modules)): ?>
56                                         <input type="submit" name="down[<?php echo $tool; ?>]" value="<?php echo _AT('move_down'); ?>" title="<?php echo _AT('move_down'); ?>" style="background-color: white; border: 1px solid; padding: 0px;"/>
57                                 <?php else: ?>
58                                         <img src="images/clr.gif" alt="" width="12" />
59                                 <?php endif; ?>
60                         <?php endif; ?>
61                 </td>
62         </tr>
63 <?php 
64 endforeach; ?>
65 </tbody>
66 </table>
67 </form>