(no commit message)
[atutor.git] / docs / themes / mobile / admin / courses / courses.tmpl.php
1
2 <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
3         <div class="input-form">
4                 
5                         <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
6                         <a id="results-hide-show-link" href="javascript:void(0);" tabindex="1">Refine Results</a>
7                 
8         
9                 
10         <div id="results-hide-show" role="search"  aria-live="assertive">
11         <div id="results-display">
12         
13                 <div class="row">
14                 <fieldset>
15                         <legend><?php echo _AT('access'); ?></legend>
16
17                         <input type="radio" name="access" value="0" id="s0" <?php if ($_GET['access'] == 0) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('public'); ?></label> 
18
19                         <input type="radio" name="access" value="1" id="s1" <?php if ($_GET['access'] == 1) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('protected'); ?></label> 
20
21                         <input type="radio" name="access" value="2" id="s2" <?php if ($_GET['access'] == 2) { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('private'); ?></label>
22
23                         <input type="radio" name="access" value="" id="s" <?php if ($_GET['access'] == '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label>
24                 </fieldset>
25                 </div>
26
27                 <div class="row">
28                         <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('title').', '._AT('description'); ?>)</label><br />
29                         <input type="text" name="search" id="search" size="20" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
30                 </div>
31
32                 <div class="row buttons">
33                         <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
34                         <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
35                 </div>
36         </div>
37         </div> <!-- end #results-display -->
38         </div> <!-- end #results-hide-show -->
39 </form>
40
41 <?php print_paginator($this->page, $this->num_results, $this->page_string . SEP . $this->order .'='. $col, $this->results_per_page); ?>
42
43 <form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
44 <div class="table-surround">
45 <table class="data" summary="Course title, instructor, and enrollment." >
46 <colgroup>
47         <?php if ($col == 'title'): ?>
48                 <col />
49                 <col class="sort" />
50                 <col span="6" />
51         <?php elseif($col == 'login'): ?>
52                 <col span="2" />
53                 <col class="sort" />
54                 <col span="5" />
55         <?php// elseif($col == 'access'): ?>
56                 <!-- REMOVED FOR MOBILE <col span="3" />
57                 <col class="sort" />
58                 <col span="4" /> -->
59         <?php //elseif($col == 'created_date'): ?>
60                 <!-- REMOVED FOR MOBILE<col span="4" />
61                 <col class="sort" />
62                 <col span="3" />-->
63         <?php //elseif($col == 'cat_name'): ?> 
64                 <!-- REMOVED FOR MOBILE<col span="5" />
65                 <col class="sort" />
66                 <col span="2" /> -->
67         <?php endif; ?>
68 </colgroup>
69 <thead>
70 <tr>
71         <th scope="col">&nbsp;</th>
72         <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php echo $this->orders[$this->order]; ?>=title<?php echo $page_string; ?>"><?php echo _AT('title');               ?></a></th>
73         <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php echo $this->orders[$this->order]; ?>=login<?php echo $page_string; ?>"><?php echo _AT('Instructor');          ?></a></th>
74 <!-- REMOVEED FOR MOBILE        <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php // echo $this->orders[$this->order]; ?>=access<?php echo $page_string; ?>"><?php echo _AT('access');             ?></a></th> -->
75 <!--    <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php //echo $this->orders[$this->order]; ?>=created_date<?php //echo $page_string; ?>"><?php // echo _AT('created_date'); ?></a></th> -->
76 <!--    <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php //echo $this->orders[$this->order]; ?>=cat_name<?php //echo $page_string; ?>"><?php //echo _AT('category'); ?></a></th> -->
77         <th scope="col"><?php echo _AT('enrolled'); ?></th>
78 <!--    <th scope="col"><?php //echo _AT('alumni'); ?></th> -->
79 </tr>
80 </thead>
81 <tfoot>
82 <tr>
83         <td colspan="8"><input type="submit" name="view" value="<?php echo _AT('view'); ?>" /> 
84                                         <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> 
85                                         <input type="submit" name="backups" value="<?php echo _AT('backups'); ?>" /> 
86                                         <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
87 </tr>
88 </tfoot>
89 <tbody>
90 <?php if ($this->num_rows): ?>
91         <?php while ($row = mysql_fetch_assoc($this->result)): ?>
92                 <tr onkeydown="document.form['m<?php echo $row['course_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['m<?php echo $row['course_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['course_id']; ?>">
93                         <td><input type="radio" name="id" value="<?php echo $row['course_id']; ?>" id="m<?php echo $row['course_id']; ?>" /></td>
94                         <td><label for="m<?php echo $row['course_id']; ?>"><?php echo AT_print($row['title'], 'courses.title'); ?></label></td>
95                         <td><?php echo AT_print($row['login'],'members.login'); ?></td>
96                 <!-- REMOVED FOR MOBILE <td><?php //echo _AT($row['access']); ?></td> -->
97                 <!--    <td><?php //echo AT_date($startend_date_long_format, $row['created_date'], AT_DATE_UNIX_TIMESTAMP); ?></td> -->
98                 <!--    <td><?php //echo ($row['cat_name'] ? $row['cat_name'] : '-')?></td>-->
99                         <td><?php echo ($this->enrolled[$row['course_id']]['y'] ? $this->enrolled[$row['course_id']]['y'] : 0); ?></td>
100                 <!--    <td><?php //echo ($this->enrolled[$row['course_id']]['a'] ? $this->enrolled[$row['course_id']]['a'] : 0); ?></td> -->
101                 </tr>
102         <?php endwhile; ?>
103 <?php else: ?>
104         <tr>
105                 <td colspan="8"><?php echo _AT('none_found'); ?></td>
106         </tr>
107 <?php endif; ?>
108 </tbody>
109 </table>
110 </div>
111 </form>