1 <?php if ($this->mobile_device_type != IPAD_DEVICE): ?>
2 <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
3 <div class="input-form">
5 <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
6 <div id="results-hide-show-simple-content" class="hide-show-container-surround">
7 <a id="results-hide-show-link" class="content-expand" href="javascript:void(0);" tabindex="1">Refine Results</a>
11 <div id="results-hide-show" role="search" aria-live="assertive">
12 <div id="results-display">
16 <legend><?php echo _AT('access'); ?></legend>
18 <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>
20 <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>
22 <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>
24 <input type="radio" name="access" value="" id="s" <?php if ($_GET['access'] == '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label>
29 <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('title').', '._AT('description'); ?>)</label><br />
30 <input type="text" name="search" id="search" size="20" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
33 <div class="row buttons">
34 <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
35 <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
38 </div> <!-- end #results-display -->
39 </div> <!-- end #results-hide-show -->
42 <?php print_paginator($this->page, $this->num_results, $this->page_string . SEP . $this->order .'='. $col, $this->results_per_page); ?>
44 <form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
45 <div class="table-surround">
46 <table class="data" summary="Course title, instructor, and enrollment." >
48 <?php if ($col == 'title'): ?>
52 <?php elseif($col == 'login'): ?>
56 <?php// elseif($col == 'access'): ?>
57 <!-- REMOVED FOR MOBILE <col span="3" />
60 <?php //elseif($col == 'created_date'): ?>
61 <!-- REMOVED FOR MOBILE<col span="4" />
64 <?php //elseif($col == 'cat_name'): ?>
65 <!-- REMOVED FOR MOBILE<col span="5" />
72 <th scope="col"> </th>
73 <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>
74 <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>
75 <!-- 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> -->
76 <!-- <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> -->
77 <!-- <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> -->
78 <th scope="col"><?php echo _AT('enrolled'); ?></th>
79 <!-- <th scope="col"><?php //echo _AT('alumni'); ?></th> -->
84 <td colspan="8"><input type="submit" name="view" value="<?php echo _AT('view'); ?>" />
85 <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" />
86 <input type="submit" name="backups" value="<?php echo _AT('backups'); ?>" />
87 <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
91 <?php if ($this->num_rows): ?>
92 <?php while ($row = mysql_fetch_assoc($this->result)): ?>
93 <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']; ?>">
94 <td><input type="radio" name="id" value="<?php echo $row['course_id']; ?>" id="m<?php echo $row['course_id']; ?>" /></td>
95 <td><label for="m<?php echo $row['course_id']; ?>"><?php echo AT_print($row['title'], 'courses.title'); ?></label></td>
96 <td><?php echo AT_print($row['login'],'members.login'); ?></td>
97 <!-- REMOVED FOR MOBILE <td><?php //echo _AT($row['access']); ?></td> -->
98 <!-- <td><?php //echo AT_date($startend_date_long_format, $row['created_date'], AT_DATE_UNIX_TIMESTAMP); ?></td> -->
99 <!-- <td><?php //echo ($row['cat_name'] ? $row['cat_name'] : '-')?></td>-->
100 <td><?php echo ($this->enrolled[$row['course_id']]['y'] ? $this->enrolled[$row['course_id']]['y'] : 0); ?></td>
101 <!-- <td><?php //echo ($this->enrolled[$row['course_id']]['a'] ? $this->enrolled[$row['course_id']]['a'] : 0); ?></td> -->
106 <td colspan="8"><?php echo _AT('none_found'); ?></td>
113 <?php endif; ?> <!-- end template for smartphone -->
114 <?php if ($this->mobile_device_type == IPAD_DEVICE): ?>
116 <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
117 <div class="input-form">
119 <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
120 <div id="hide-show-container">
121 <a id="results-hide-show-link" class="content-expand" href="javascript:void(0);" tabindex="1">Refine Results</a>
125 <div id="results-hide-show" role="search" aria-live="assertive">
126 <div id="results-display">
130 <legend><?php echo _AT('access'); ?></legend>
132 <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>
134 <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>
136 <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>
138 <input type="radio" name="access" value="" id="s" <?php if ($_GET['access'] == '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label>
143 <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('title').', '._AT('description'); ?>)</label><br />
144 <input type="text" name="search" id="search" size="20" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
147 <div class="row buttons">
148 <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
149 <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
152 </div> <!-- end #results-display -->
153 </div> <!-- end #results-hide-show -->
156 <?php print_paginator($this->page, $this->num_results, $this->page_string . SEP . $this->order .'='. $col, $this->results_per_page); ?>
158 <form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
159 <div class="table-surround">
160 <table class="data" summary="Course title, instructor, and enrollment." >
162 <?php if ($col == 'title'): ?>
166 <?php elseif($col == 'login'): ?>
170 <?php// elseif($col == 'access'): ?>
171 <!-- REMOVED FOR MOBILE <col span="3" />
174 <?php //elseif($col == 'created_date'): ?>
175 <!-- REMOVED FOR MOBILE<col span="4" />
178 <?php //elseif($col == 'cat_name'): ?>
179 <!-- REMOVED FOR MOBILE<col span="5" />
186 <th scope="col"> </th>
187 <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>
188 <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>
189 <!-- 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> -->
190 <!-- <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> -->
191 <!-- <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> -->
192 <th scope="col"><?php echo _AT('enrolled'); ?></th>
193 <!-- <th scope="col"><?php //echo _AT('alumni'); ?></th> -->
198 <td colspan="8"><input type="submit" name="view" value="<?php echo _AT('view'); ?>" />
199 <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" />
200 <input type="submit" name="backups" value="<?php echo _AT('backups'); ?>" />
201 <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
205 <?php if ($this->num_rows): ?>
206 <?php while ($row = mysql_fetch_assoc($this->result)): ?>
207 <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']; ?>">
208 <td><input type="radio" name="id" value="<?php echo $row['course_id']; ?>" id="m<?php echo $row['course_id']; ?>" /></td>
209 <td><label for="m<?php echo $row['course_id']; ?>"><?php echo AT_print($row['title'], 'courses.title'); ?></label></td>
210 <td><?php echo AT_print($row['login'],'members.login'); ?></td>
211 <!-- REMOVED FOR MOBILE <td><?php //echo _AT($row['access']); ?></td> -->
212 <!-- <td><?php //echo AT_date($startend_date_long_format, $row['created_date'], AT_DATE_UNIX_TIMESTAMP); ?></td> -->
213 <!-- <td><?php //echo ($row['cat_name'] ? $row['cat_name'] : '-')?></td>-->
214 <td><?php echo ($this->enrolled[$row['course_id']]['y'] ? $this->enrolled[$row['course_id']]['y'] : 0); ?></td>
215 <!-- <td><?php //echo ($this->enrolled[$row['course_id']]['a'] ? $this->enrolled[$row['course_id']]['a'] : 0); ?></td> -->
220 <td colspan="8"><?php echo _AT('none_found'); ?></td>
227 <?php endif; ?> <!-- end template for tablet -->