f8fdcc4846803025c60b18dc897373b78f0fe9d3
[atutor.git] / docs / themes / default / instructor / glossary / index.tmpl.php
1
2
3 <form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
4
5 <table class="data" summary="" rules="cols" style="width: 90%;">
6 <thead>
7 <tr>
8         <th scope="col">&nbsp;</th>
9         <th scope="col"><?php echo _AT('glossary_term'); ?></th>
10         <th scope="col"><?php echo _AT('glossary_definition'); ?></th>
11         <th scope="col"><?php echo _AT('glossary_related'); ?></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 </tfoot>
19 <tbody>
20
21 <?php if(!empty($this->gloss_results_row)):?>
22         <?php foreach($this->gloss_results_row as $row): ?>
23                 <tr onmousedown="document.form['m<?php echo $row['word_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['word_id']; ?>">
24                         <td valign="top" width="10"><input type="radio" name="word_id" value="<?php echo $row['word_id']; ?>" id="m<?php echo $row['word_id']; ?>" /></td>
25                         <td valign="top"><label for="m<?php echo $row['word_id']; ?>"><?php echo AT_print($row['word'], 'glossary.word'); ?></label></td>
26                         <td style="whitespace:nowrap;"><?php echo AT_print($this->def_trunc, 'glossary.definition'); ?></td>            
27                         <td valign="top"><?php echo AT_print($this->related_word, 'glossary.word'); ?></td>
28                 </tr>
29         
30         <?php endforeach;?>
31 <?php endif; ?>
32
33 </tbody>
34 </table>
35 </form>
36