| 1 | <?php |
| 2 | require("config.inc.php"); |
| 3 | require("header.inc.php"); |
| 4 | ?> |
| 5 | |
| 6 | <table> |
| 7 | <tr> |
| 8 | <th>id</th> |
| 9 | <th>type</th> |
| 10 | <th>path</th> |
| 11 | </tr> |
| 12 | |
| 13 | <?php |
| 14 | $res = mysql_query("select id,path,type from file"); |
| 15 | while (list($id,$path,$type)=mysql_fetch_row($res)) { |
| 16 | ?> |
| 17 | <tr<?php if ($type=="dead") echo ' bgcolor="red"'; ?>> |
| 18 | <td><?php echo $id; ?></td> |
| 19 | <td><?php echo $type; ?></td> |
| 20 | <td><a href="file.php?id=<?php echo $id; ?>"><?php echo $path; ?></a></td> |
| 21 | </tr> |
| 22 | <?php |
| 23 | } |
| 24 | ?> |
| 25 | </table> |
| 26 | |
| 27 | <?php |
| 28 | require("footer.inc.php"); |
| 29 | ?> |