8cdc0c3415171d70dfeda756d8e568cb8575d7cd
[atutor.git] / docs / themes / mobile / instructor / forums / index.tmpl.php
1 <form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
2 <div class="table-surround">
3 <table class="data" summary="List of course forums">
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         <!--  REMOVED FOR MOBILE <th scope="col"><?php echo _AT('allow_editing'); ?></th>-->
10 </tr>
11 </thead>
12 <tfoot>
13 <tr>
14         <td colspan="4"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
15 </tr>
16 </tfoot>
17 <tbody>
18 <?php if ($this->all_forums['nonshared']): ?>
19         <?php foreach($this->all_forums['nonshared'] as $row): ?>
20                 <tr onmousedown="document.form['f<?php echo $row['forum_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['forum_id']; ?>">
21                         <td width="10"><input type="radio" name="id" value="<?php echo $row['forum_id']; ?>" id="f<?php echo $row['forum_id']; ?>" /></td>
22                         <td><label for="f<?php echo $row['forum_id']; ?>"><?php echo AT_print($row['title'], 'forums.title'); ?></label></td>
23                         <td><?php echo AT_print($row['description'], 'forums.description'); ?></td>
24                         <!-- REMOVED FOR MOBILE <td>
25                                 <?php if (!$row['mins_to_edit']): ?>
26                                         <?php echo _AT('no'); ?>
27                                 <?php else: ?>
28                                         <?php echo  _AT('minutes', $row['mins_to_edit']); ?>
29                                 <?php endif; ?>
30                         </td>-->
31                 </tr>
32         <?php endforeach; ?>
33 <?php else: ?>
34         <tr>
35                 <td colspan="4"><?php echo _AT('none_found'); ?></td>
36         </tr>
37 <?php endif; ?>
38 </tbody>
39 </table>
40 </div>
41 </form>