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