remove old readme
[atutor.git] / themes / simplified-desktop / admin / courses / forums.tmpl.php
1
2 <form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
3 <div class="table-surround">
4 <table class="data" summary="Course forums" >
5 <thead>
6 <tr>
7         <th scope="col">&nbsp;</th>
8         <th scope="col"><?php echo _AT('title');       ?></th>
9         <!-- REMOVED FOR MOBILE<th scope="col"><?php// echo _AT('description'); ?></th> -->
10         <th scope="col"><?php echo _AT('courses');  
11            ?></th>
12 </tr>
13 </thead>
14 <tfoot>
15 <tr>
16         <td colspan="4"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
17 </tr>
18
19 </tfoot>
20 <tbody>
21
22 <tr>
23         <th colspan="4"><?php echo _AT('shared_forums'); ?></th>
24 </tr>
25 <?php 
26 foreach ($this->shared_forums as $forum) {
27
28 ?>
29 <!--     <tr onmousedown="document.form[\'f'.$forum['forum_id'].'\'].checked = true; rowselect(this);"  id="r_'.$forum['forum_id'].'"></tr> -->      
30     <tr onkeydown="document.form['f<?php echo $forum['id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['f<?php echo $forum['id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $forum['id']; ?>">
31     <td><input type="radio" name="id" value= "<?php echo $forum['id']; ?>" id="f<?php echo $forum['id']; ?>"</td>
32         <td><label for="f<?php echo $forum['id']; ?>"> <?php echo       AT_print($forum['title'], 'forums.title'); ?>  </label></td>
33         <!-- REMOVED FOR MOBILE<td><?php // echo AT_print($forum['desc'], 'forums.description'); ?></td> -->
34         <td> <?php foreach ($forum["courses"] as $course) {echo $course. "  ";} ?>
35         </td>
36         </tr>
37 <?php }?>
38
39 </tbody>
40 <tbody>
41         <tr>
42                 <th colspan="4"><?php echo _AT('unshared_forums'); ?></th>
43         </tr>
44 <?php if ($this->num_nonshared) : ?>
45         <?php foreach ($this->all_forums['nonshared'] as $forum) : ?>
46                 <tr onkeydown="document.form['f<?php echo $forum['forum_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['f<?php echo $forum['forum_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $forum['forum_id']; ?>">
47                         <td><input type="radio" name="id" value="<?php echo $forum['forum_id']; ?>" id="f<?php echo $forum['forum_id']; ?>" /></td>
48                         <td><label for="f<?php echo $forum['forum_id']; ?>"><?php echo AT_print($forum['title'], 'forums.title'); ?></label></td>
49                         <!-- REMOVED FOR MOBILE <td><?php // echo AT_print($forum['description'], 'forums.description'); ?></td> -->
50                         <td><?php echo $this->system_courses[$forum['course_id']]['title']; ?></td>
51                 </tr>
52         <?php endforeach; ?>
53 <?php else: ?>
54         <tr>
55                 <td colspan="4"><strong><?php echo _AT('no_forums'); ?></strong></td>
56         </tr>
57 <?php endif; ?>
58 </tbody>
59 </table>
60 </div>
61 </form>