move code up one directory
[atutor.git] / themes / default / admin / system_preferences / index.tmpl.php
1
2 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" name="form">
3
4 <table class="data" summary="Title and URL of News feeds" rules="cols">
5 <thead>
6 <tr>
7         <th scope="col">&nbsp;</th>
8         <th scope="col"><?php echo _AT('title'); ?></th>
9         <th scope="col"><?php echo _AT('url'); ?></th>
10 </tr>
11 </thead>
12 <tfoot>
13 <tr>
14         <td colspan="3">
15                 <input type="submit" name="preview" value="<?php echo _AT('preview'); ?>" />
16                 <input type="submit" name="edit"    value="<?php echo _AT('edit'); ?>" />
17                 <input type="submit" name="delete"  value="<?php echo _AT('delete'); ?>" />
18         </td>
19 </tr>
20 </tfoot>
21 <tbody>
22 <?php 
23
24
25 if (!($row = mysql_fetch_assoc($this->result))) { 
26 ?>
27
28         <tr>
29                 <td colspan="3"><?php echo _AT('none_found'); ?></td>
30         </tr>
31 <?php } else { ?>
32         <?php do { 
33                 $title_file = AT_CONTENT_DIR.'feeds/'.$row['feed_id'].'_rss_title.cache'; ?>
34                 <tr onkeydown="document.form['f_<?php echo $row['feed_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['f_<?php echo $row['feed_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['feed_id']; ?>">
35                         <td valign="top"><input type="radio" id="f_<?php echo $row['feed_id']; ?>" name="fid" value="<?php echo $row['feed_id']; ?>" /></td>
36                         <td><label for="f_<?php echo $row['feed_id']; ?>"><?php if (file_exists($title_file)) { readfile($title_file); } ?></label></td>
37                         <td><?php echo $row['url']; ?></td>
38                 </tr>
39         <?php } while ($row = mysql_fetch_assoc($this->result)); ?>
40
41 <?php } ?>
42 </tbody>
43 </table>
44 </form>