remove old readme
[atutor.git] / themes / simplified-desktop / instructor / content / index.tmpl.php
1 <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
2 <div class="input-form">
3         <div class="row">
4                 <h3><label for="ctid"><?php echo _AT('select_parent_topic'); ?></label></h3>
5         </div>
6
7         <div class="row">
8                 <select name="ctid" id="ctid">
9                         <option value="0"><?php echo _AT('top_level'); ?></option>
10                         <?php
11                                 print_select(0, 1);
12                         ?>
13                 </select>
14         </div>
15
16         <div class="row buttons">
17                 <input type="submit" name="sub_content" value="<?php echo _AT('view_sub_topics'); ?>" />
18         </div>
19 </div>
20 </form>
21
22 <form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
23 <div class="table-surround">
24 <table class="data" summary="Parent topics and subtopics">
25 <thead>
26 <tr>
27         <th scope="col">&nbsp;</th>
28         <th scope="col">#</th>
29         <th scope="col"><?php echo _AT('title'); ?></th>
30         <th scope="col"><?php echo _AT('num_pages'); ?></th>
31 </tr>
32 </thead>
33 <tfoot>
34 <tr>
35         <td colspan="5">
36                 <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> 
37                 <input type="submit" name="view" value="<?php echo _AT('view'); ?>" />
38                 <input type="submit" name="usage" value="<?php echo _AT('usage'); ?>" />
39                 <input type="submit" name="sub_content" value="<?php echo _AT('sub_topics'); ?>" />
40                 <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />
41         </td>
42 </tr>
43 </tfoot>
44 <tbody>
45         <?php if (!empty($this->content)): ?>
46                 <?php foreach ($this->content as $row): ?>
47                         <tr onkeydown="document.form['c<?php echo $row['content_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['c<?php echo $row['content_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['content_id']; ?>">
48                                 <td><input type="radio" name="ctid" value="<?php echo $row['content_id']; ?>" id="c<?php echo $row['content_id']; ?>" /></td>
49                                 <td><?php echo $row['ordering']; ?></td>
50                                 <td><label for="c<?php echo $row['content_id']; ?>"><?php echo AT_print($row['title'], 'content.title'); ?></label></td>
51                                 <td><?php echo count($this->all_content[$row['content_id']]); ?></td>
52                         </tr>
53                 <?php endforeach; ?>
54         <?php else: ?>
55                 <tr>
56                         <td colspan="5"><?php echo _AT('none_found'); ?></td>
57                 </tr>
58         <?php endif; ?>
59 </tbody>
60 </table>
61 </div>
62 </form>