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