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