87b34a930a0d71359e94fbce941ffab7cddeb1ed
[atutor.git] / docs / themes / mobile / admin / modules / index.tmpl.php
1
2
3 <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
4         <div class="input-form">
5                 
6                         <h3><?php echo _AT('results_found', count($this->keys)); ?></h3>
7                         <a id="results-hide-show-link" href="javascript:void(0);" tabindex="1">Refine Results</a>
8                 
9         
10                 
11         <div id="results-hide-show" role="search"  aria-live="assertive">
12         <div id="results-display">
13
14                 <div class="row">
15                         <?php echo _AT('type'); ?><br />
16                         <input type="checkbox" name="core" value="1" id="t0" <?php if ($_GET['core']) { echo 'checked="checked"'; } ?> /><label for="t0"><?php echo _AT('core'); ?></label>
17
18                         <input type="checkbox" name="standard" value="1" id="t1" <?php if ($_GET['standard']) { echo 'checked="checked"'; } ?> /><label for="t1"><?php echo _AT('standard'); ?></label> 
19
20                         <input type="checkbox" name="extra" value="1" id="t2" <?php if ($_GET['extra']) { echo 'checked="checked"'; } ?> /><label for="t2"><?php echo _AT('extra'); ?></label> 
21                 </div>
22
23
24                 <div class="row">
25                         <?php echo _AT('status'); ?><br />
26                         <input type="checkbox" name="enabled" value="1" id="s0" <?php if ($_GET['enabled']) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('enabled'); ?></label> 
27
28                         <input type="checkbox" name="disabled" value="1" id="s1" <?php if ($_GET['disabled']) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('disabled'); ?></label> 
29
30                         <input type="checkbox" name="missing" value="1" id="s2" <?php if ($_GET['missing']) { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('missing'); ?></label> 
31
32                         <input type="checkbox" name="partially_uninstalled" value="1" id="s3" <?php if ($_GET['partially_uninstalled']) { echo 'checked="checked"'; } ?> /><label for="s3"><?php echo _AT('partially_uninstalled'); ?></label> 
33                 </div>
34
35                 <div class="row buttons">
36                         <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
37                         <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
38                 </div>
39         </div>
40         </div> <!-- end #results-display -->
41         </div> <!-- end #results-hide-show -->
42 </form>
43
44 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" name="form">
45
46 <input type="hidden" name="enabled" value="<?php echo (int) $_GET['enabled']; ?>" />
47 <input type="hidden" name="disabled" value="<?php echo (int) $_GET['disabled']; ?>" />
48 <input type="hidden" name="core" value="<?php echo (int) $_GET['core']; ?>" />
49 <input type="hidden" name="standard" value="<?php echo (int) $_GET['standard']; ?>" />
50 <input type="hidden" name="extra" value="<?php echo (int) $_GET['extra']; ?>" />
51 <input type="hidden" name="missing" value="<?php echo (int) $_GET['missing']; ?>" />
52 <input type="hidden" name="partially_uninstalled" value="<?php echo (int) $_GET['partially_uninstalled']; ?>" />
53 <div class="table-surround">
54 <table class="data" summary="List of modules" >
55 <colgroup>
56                 <col />
57                 <col class="sort" />
58                 <col span="4" />
59 </colgroup>
60 <thead>
61 <tr>
62         <th scope="col">&nbsp;</th>
63         <th scope="col"><?php echo _AT('module_name'); ?></th>
64         <!-- REMOVED FOR MOBILE <th scope="col"><?php echo _AT('type'); ?></th>-->
65         <th scope="col"><?php echo _AT('status'); ?></th>
66         <!-- REMOVED FOR MOBILE <th scope="col"><?php echo _AT('cron'); ?></th> -->
67         <!-- REMOVED FOR MOBILE <th scope="col"><?php echo _AT('directory_name'); ?></th>-->
68 </tr>
69 </thead>
70 <tfoot>
71 <tr>
72         <td colspan="6">
73                 <input type="submit" name="details" value="<?php echo _AT('details'); ?>" />
74                 <input type="submit" name="enable"  value="<?php echo _AT('enable'); ?>" />
75                 <input type="submit" name="disable" value="<?php echo _AT('disable'); ?>" />
76                 <input type="submit" name="uninstall" value="<?php echo _AT('uninstall'); ?>" />
77                 <input type="submit" name="export" value="<?php echo _AT('export'); ?>" />
78         </td>
79 </tr>
80 </tfoot>
81 <tbody>
82
83
84
85 <?php foreach($this->keys as $dir_name) : $module =& $this->module_list[$dir_name]; $i++; $readme = get_readme(AT_INCLUDE_PATH.'../mods/'.$dir_name);?>
86
87         <tr onkeydown="document.form['t_<?php echo $i; ?>'].checked = true; rowselect(this);" onmousedown="document.form['t_<?php echo $i; ?>'].checked = true; rowselect(this);" id="r_<?php echo $i; ?>">
88                 <td valign="top"><input type="radio" id="t_<?php echo $i; ?>" name="mod_dir" value="<?php echo $dir_name; ?>" /></td>
89                 <td nowrap="nowrap" valign="top"><label for="t_<?php echo $i; ?>"><?php echo $module->getName(); if ($readme <> '') echo '&nbsp;<a href="#" onclick="ATutor.poptastic(\''.AT_BASE_HREF.'mods/'.$dir_name.'/'.$readme.'\');return false;">'._AT('view_readme').'</a>'; ?></label></td>
90                 <!-- REMOVED FOR MOBILE><td valign="top"><?php
91                         /*if ($module->isCore()) {
92                                 echo '<strong>'._AT('core').'</strong>';
93                         } else if ($module->isStandard()) {
94                                 echo _AT('standard');
95                         } else {
96                                 echo _AT('extra');
97                         }*/
98                         ?></td> -->
99                 <td valign="top"><?php
100                         if ($module->isEnabled()) {
101                                 echo _AT('enabled');
102                         } else if ($module->isMissing()) {
103                                 echo '<strong>'._AT('missing').'</strong>';
104                         } else if ($module->isPartiallyUninstalled()) {
105                                 echo _AT('partially_uninstalled');
106                         } else {
107                                 echo '<strong>'._AT('disabled').'</strong>';
108                         }
109                         ?></td>
110                 <!-- REMOVED FOR MOBILE <td valign="top" align="center">
111                         <?php // if ($module->getCronInterval()): ?>
112                                 <?php //echo _AT('minutes', $module->getCronInterval()); ?>
113                         <?php //else: ?>
114                                 
115                         <?php // endif; ?>
116                 </td>
117                 <td valign="top"><code><?php //echo $dir_name; ?>/</code></td> -->
118         </tr>
119 <?php endforeach; ?>
120 <?php if (!$this->keys): ?>
121         <tr>
122                 <td colspan="6"><?php echo _AT('none_found'); ?></td>
123         </tr>
124 <?php endif; ?>
125 </tbody>
126 </table>
127 </form>