remove old readme
[atutor.git] / themes / mobile / admin / users / users.tmpl.php
1
2 <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
3         <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
4         <div class="input-form">
5         <div id="results-hide-show-simple-content" class="hide-show-container-surround ">       
6                         
7                         <a id="results-hide-show-link"  class="content-expand" href="javascript:void(0);" tabindex="1">Refine Results</a>
8         </div>
9                 
10         <div id="results-hide-show" role="search"  aria-live="assertive">
11         <div id="results-display">
12         
13                 
14                 <div class="row">
15                 <fieldset>
16                         <legend><?php echo _AT('account_status'); ?></legend>
17                         <input type="radio" name="status" value="0" id="s0" <?php if ($_GET['status'] == 0) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('disabled'); ?></label> 
18
19                         <input type="radio" name="status" value="1" id="s1" <?php if ($_GET['status'] == 1) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('unconfirmed'); ?></label> 
20
21                         <input type="radio" name="status" value="2" id="s2" <?php if ($_GET['status'] == 2) { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('student'); ?></label>
22
23                         <input type="radio" name="status" value="3" id="s3" <?php if ($_GET['status'] == 3) { echo 'checked="checked"'; } ?> /><label for="s3"><?php echo _AT('instructor'); ?></label>
24
25                         <input type="radio" name="status" value="" id="s" <?php if ($_GET['status'] === '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label>
26                 </fieldset>
27                 </div>
28
29                 <div class="row">
30                         <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('login_name').', '._AT('first_name').', '._AT('second_name').', '._AT('last_name') .', '._AT('email'); ?>)</label><br />
31                         <fieldset><legend><?php echo _AT('search_match'); ?>:</legend>
32                         <input type="radio" name="include" value="all" id="match_all" <?php echo $checked_include_all; ?> /><label for="match_all"><?php echo _AT('search_all_words'); ?></label> 
33                         <input type="radio" name="include" value="one" id="match_one" <?php echo $checked_include_one; ?> /><label for="match_one"><?php echo _AT('search_any_word'); ?></label>
34                         </fieldset>
35                         <input type="text" name="search" id="search" size="40" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
36                         <br/>
37                 
38                 </div>
39
40                 <?php if (defined('AT_MASTER_LIST') && AT_MASTER_LIST): ?>
41                         <div class="row">
42                                 <label for="searchid"><?php echo _AT('search'); ?> (<?php echo _AT('student_id'); ?>)</label><br />
43                                 <input type="text" name="searchid" id="searchid" size="20" value="<?php echo htmlspecialchars($_GET['searchid']); ?>" />
44                         </div>
45                 <?php endif; ?>
46
47                 <div class="row">
48                         <label for="last_login_have"><?php echo _AT('last_login'); ?></label><br />                                     
49                         <select name="last_login_have" id="last_login_have">
50                                 <option value="-1">- <?php echo _AT('select'); ?> -</option>
51                                 <option value="1" <?php if($_GET['last_login_have']=='1') { echo 'selected="selected"';}?>><?php echo _AT('have'); ?></option>
52                                 <option value="0" <?php if(isset($_GET['last_login_have']) && $_GET['last_login_have']=='0') { echo 'selected="selected"';}?>><?php echo _AT('have_not'); ?></option>
53                         </select> 
54                         
55                 <label for="last_login_days"><?php echo _AT('logged_in_within'); ?>:</label> <input type="text" id="last_login_days" name="last_login_days" size="3" value="<?php echo htmlspecialchars($_GET['last_login_days']); ?>" /> <?php echo _AT('days'); ?> <br />
56                         
57                 </div>
58
59                 <div class="row buttons">
60                         <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
61                         <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
62                 </div>
63         </div>
64         </div> <!-- end #results-display -->
65         </div> <!-- end #results-hide-show -->
66         
67 </form>
68
69
70 <?php print_paginator($this->page, $this->num_results, $this->page_string . SEP . $this->order .'='. $col, $this->results_per_page); ?>
71 <?php echo "<br>";?>
72 <form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
73 <input type="hidden" name="status" value="<?php echo $_GET['status']; ?>" />
74 <input type="hidden" name="search" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
75 <input type="hidden" name="include" value="<?php echo htmlspecialchars($_GET['include']); ?>" />
76
77 <?php if (defined('AT_MASTER_LIST') && AT_MASTER_LIST) {  $col_counts = 1; } else { $col_counts = 0; } ?>
78 <div class="table-surround">
79 <table summary="" class="data" >
80 <colgroup>
81         <?php if ($col == 'login'): ?>
82                 <col />
83                 <col class="sort" />
84                 <col span="<?php echo 5 + $col_counts; ?>" />
85         <?php elseif($col == 'public_field'): ?>
86                 <col span="<?php echo 1 + $col_counts; ?>" />
87                 <col class="sort" />
88                 <col span="6" />
89         <?php elseif($col == 'first_name'): ?>
90                 <col span="<?php echo 2 + $col_counts; ?>" />
91                 <col class="sort" />
92                 <col span="5" />
93         <?php elseif($col == 'second_name'): ?>
94                 <col span="<?php echo 3 + $col_counts; ?>" />
95                 <col class="sort" />
96                 <col span="4" />
97         <?php elseif($col == 'last_name'): ?>
98                 <col span="<?php echo 4 + $col_counts; ?>" />
99                 <col class="sort" />
100                 <col span="3" />
101         <?php elseif($col == 'email'): ?>
102                 <col span="<?php echo 5 + $col_counts; ?>" />
103                 <col class="sort" />
104                 <col span="2" />
105         <?php elseif($col == 'status'): ?>
106                 <col span="<?php echo 6 + $col_counts; ?>" />
107                 <col class="sort" />
108                 <col />
109         <?php elseif($col == 'last_login'): ?>
110                 <col span="<?php echo 7 + $col_counts; ?>" />
111                 <col class="sort" />
112         <?php elseif($col == 'creation_date'): ?>
113                 <col span="<?php echo 8 + $col_counts; ?>" />
114                 <col class="sort" />
115         <?php endif; ?>
116 </colgroup>
117 <thead>
118 <tr>
119         <th scope="col" align="left"><input type="checkbox" value="<?php echo _AT('select_all'); ?>" id="all" title="<?php echo _AT('select_all'); ?>" name="selectall" onclick="CheckAll();" /></th>
120
121         <th scope="col"><a href="mods/_core/users/users.php?<?php echo $this->orders[$this->order]; ?>=login<?php echo $page_string; ?>"><?php echo _AT('login_name');      ?></a></th>
122         <th scope="col"><a href="mods/_core/users/users.php?<?php echo $this->orders[$this->order]; ?>=last_name<?php echo $page_string; ?>"><?php echo _AT('last_name');   ?></a></th>
123         <th scope="col"><a href="mods/_core/users/users.php?<?php echo $this->orders[$this->order]; ?>=status<?php echo $page_string; ?>"><?php echo _AT('account_status'); ?></a></th>
124         
125 </tr>
126
127 </thead>
128 <?php if ($this->num_results > 0): ?>
129         <tfoot>
130         <tr>
131                 <td colspan="<?php echo 9 + $col_counts; ?>">
132                         <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> 
133                         <input type="submit" name="password" value="<?php echo _AT('password'); ?>" />
134                         <?php if (admin_authenticate(AT_ADMIN_PRIV_ENROLLMENT, true)): ?>
135                                 <input type="submit" name="enrollment" value="<?php echo _AT('enrollment'); ?>" />
136                         <?php endif; ?> 
137                         <label for="change_status"><?php echo _AT('more_options'); ?></label>
138                         <select name="change_status" id="change_status">
139                         <!-- REMOVED FOR MOBILE <option value="-2"><?php echo _AT('more_options'); ?></option> -->
140                                 <optgroup label="<?php echo _AT('status'); ?>">
141                                         <option value="<?php echo AT_STATUS_STUDENT; ?>"><?php echo _AT('student'); ?></option>
142                                         <option value="<?php echo AT_STATUS_INSTRUCTOR; ?>"><?php echo _AT('instructor'); ?></option>   
143                                         <?php if ($_config['email_confirmation']): ?>
144                                                 <option value="<?php echo AT_STATUS_UNCONFIRMED; ?>"><?php echo _AT('unconfirmed'); ?></option>
145                                         <?php endif; ?>
146                                         <option value="<?php echo AT_STATUS_DISABLED; ?>"><?php echo _AT('disable'); ?></option>                                
147                                 </optgroup>
148                                 <option value="-2" disabled="disabled">- - - - - - - - -</option>       
149                                 <option value="-1"><?php echo _AT('delete'); ?></option>                                
150                         </select>
151                         <input type="submit" name="apply" value="<?php echo _AT('apply'); ?>" />
152                         <input type="submit" name="apply_all" value="<?php echo _AT('apply_to_all_results'); ?>" />
153                 </td>
154         </tr>
155         </tfoot>
156         <tbody>
157                 <?php while($row = mysql_fetch_assoc($this->result)): ?>
158                         <tr onmousedown="document.form['m<?php echo $row['member_id']; ?>'].checked = !document.form['m<?php echo $row['member_id']; ?>'].checked; togglerowhighlight(this, 'm<?php echo $row['member_id']; ?>');" id="rm<?php echo $row['member_id']; ?>">
159                                 <td><input type="checkbox" name="id[]" value="<?php echo $row['member_id']; ?>" id="m<?php echo $row['member_id']; ?>" onmouseup="this.checked=!this.checked" /></td>
160                                 <td><?php echo $row['login']; ?></td>
161                                 
162                                 <?php $startend_date_longs_format=_AT('startend_date_longs_format'); ?>
163                                 <td><?php echo AT_print($row['last_name'], 'members.last_name'); ?></td>
164                                 <td><?php echo get_status_name($row['status']); ?></td>
165                                 
166                         </tr>
167                 <?php endwhile; ?>
168         </tbody>
169 <?php else: ?>
170         <tr>
171                 <td colspan="<?php echo 9 + $col_counts; ?>"><?php echo _AT('none_found'); ?></td>
172         </tr>
173 <?php endif; ?>
174 </table>
175 </div>
176 </form>