affichage en rouge des fichiers 'dead' et dependances vers le haut et le
[old-projects.git] / depview / index.php
index 03502b6..1347f31 100644 (file)
@@ -6,15 +6,17 @@ require("header.inc.php");
 <table>
 <tr>
   <th>id</th>
+  <th>type</th>
   <th>path</th>
 </tr>
 
 <?php
-$res = mysql_query("select id,path from file where type='page'");
-while (list($id,$path)=mysql_fetch_row($res)) {
+$res = mysql_query("select id,path,type from file");
+while (list($id,$path,$type)=mysql_fetch_row($res)) {
 ?>
-<tr>
+<tr<?php if ($type=="dead") echo ' bgcolor="red"'; ?>>
   <td><?php echo $id; ?></td>
+  <td><?php echo $type; ?></td> 
   <td><a href="file.php?id=<?php echo $id; ?>"><?php echo $path; ?></a></td>
 </tr>
 <?php