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