remove old readme
[atutor.git] / docs / themes / simplified-desktop / admin / users / master_list.tmpl.php
1
2 <form name="importForm" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" enctype="multipart/form-data">
3 <div class="input-form">
4         <div class="row">
5                 <h3><?php echo _AT('update_list'); ?></h3>
6                 <label for="file"><?php echo _AT('file'); ?></label><br />
7                 <input type="file" name="file" size="40" id="file" />
8         </div>
9         
10         <div class="row">
11                 <fieldset>
12                 <legend><?php echo _AT('master_not_in_list'); ?></legend>
13                 <input type="radio" name="override" id="o0" value="0" checked="checked" /><label for="o0"><?php echo _AT('leave_unchanged'); ?></label>
14                 <input type="radio" name="override" id="o1" value="1" /><label for="o1"><?php echo _AT('disable');     ?></label>
15                 </fieldset>
16         </div>
17
18         <div class="row buttons">
19                 <input type= "submit" name="submit" value="<?php echo _AT('upload'); ?>" />
20         </div>
21 </div>
22 </form>
23
24 <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
25         <div class="input-form">
26                 
27                         <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
28                         <a id="results-hide-show-link" href="javascript:void(0);" tabindex="1">Refine Results</a>
29                 
30         
31                 
32         <div id="results-hide-show" role="search"  aria-live="assertive">
33         <div id="results-display">
34                 <div class="row">
35                         <fieldset>
36                         <legend><?php echo _AT('account_status'); ?></legend>
37                         <input type="radio" name="status" value="1" id="s0" <?php if ($_GET['status'] == 1) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('not_created'); ?></label> 
38
39                         <input type="radio" name="status" value="2" id="s1" <?php if ($_GET['status'] == 2) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('created'); ?></label> 
40
41                         <input type="radio" name="status" value="" id="s" <?php if ($_GET['status'] == '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label> 
42                         </fieldset>
43                 </div>
44
45                 <div class="row">
46                         <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('student_id'); ?>)</label><br />
47                         <input type="text" name="search" id="search" size="20" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
48                 </div>
49
50                 <div class="row buttons">
51                         <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
52                         <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
53                 </div>
54         </div>
55         </div> <!-- end #results-display -->
56         </div> <!-- end #results-hide-show -->
57 </form>
58
59 <div class="paging">
60         <ul>
61         <?php for ($i=1; $i<=$this->num_pages; $i++): ?>
62                 <li>
63                         <?php if ($i == $page) : ?>
64                                 <a class="current" href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$page_string; ?>"><strong><?php echo $i; ?></strong></a>
65                         <?php else: ?>
66                                 <a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$page_string; ?>"><?php echo $i; ?></a>
67                         <?php endif; ?>
68                 </li>
69         <?php endfor; ?>
70         </ul>
71 </div>
72
73
74 <form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
75 <input type="hidden" name="status" value="<?php echo $_GET['status']; ?>" />
76 <div class="table-surround">
77 <table summary="Table lists results by Student ID, Login Name, First Name, Second Name, and Last Name." class="data"  >
78 <thead>
79 <tr>
80         <th scope="col">&nbsp;</th>
81         <th scope="col"><?php echo _AT('student_id'); ?></th>
82         <th scope="col"><?php echo _AT('login_name'); ?></th>
83         <th scope="col"><?php echo _AT('last_name'); ?></th>
84 </tr>
85 </thead>
86 <?php if ($this->num_results > 0): ?>
87 <tfoot>
88 <tr>
89         <td colspan="6"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
90 </tr>
91 </tfoot>
92 <tbody>
93         <?php while($row = mysql_fetch_assoc($this->result)): ?>
94                 <tr onmousedown="document.form['m<?php echo $row['public_field']; ?>'].checked = true;rowselect(this);" onkeydown="document.form['m<?php echo $row['public_field']; ?>'].checked = true;rowselect(this);" id="r_<?php echo $row['public_field']; ?>">
95                         <td><input type="radio" name="id" value="<?php 
96                                 if ($row['member_id']) {
97                                         echo $row['member_id'];
98                                 } else {
99                                         echo '-'.$row['public_field'];
100                                 }
101                                 ?>" id="m<?php echo $row['public_field']; ?>" /></td>
102                         <td><label for="m<?php echo $row['public_field']; ?>"><?php echo $row['public_field']; ?></label></td>
103                         <td><?php
104                                 if ($row['member_id']) {
105                                         echo $row['login'];
106                                 } else {
107                                         echo '-';
108                                 }
109                                 ?></td>
110
111                         <td><?php
112                                 if ($row['member_id']) {
113                                         echo $row['last_name'];
114                                 } else {
115                                         echo '-';
116                                 }
117                                 ?></td>
118                 </tr>
119         <?php endwhile; ?>
120 </tbody>
121 <?php else: ?>
122         <tr>
123                 <td colspan="6"><?php echo _AT('none_found'); ?></td>
124         </tr>
125 <?php endif; ?>
126
127 </table>
128 </div>
129 </form>