modification de la regexp dans le cas ou il n'ay a pas de parenthèses
[old-projects.git] / depview / list.php
CommitLineData
ecf0462b
JL
1<?php
2require("config.inc.php");
3require("header.inc.php");
4switch ($order) {
5 case "i":
6 $sql_suffix = "order by id";
7 break;
8 case "t":
9 $sql_suffix = "order by type";
10 break;
11 case "p":
12 default:
13 $sql_suffix = "order by path";
14 break;
15}
16?>
17
18<table>
19<tr>
20 <th><a href="<?php echo $PHP_SELF; ?>?order=i">id</a></th>
21 <th><a href="<?php echo $PHP_SELF; ?>?order=t">type</a></th>
22 <th><a href="<?php echo $PHP_SELF; ?>?order=p">path</a></th>
23</tr>
24
25<?php
4d16103e
WP
26$res = mysql_query("select id,path,type,dir from file $sql_suffix");
27while (list($id,$path,$type,$dir)=mysql_fetch_row($res)) {
ecf0462b
JL
28?>
29<tr class="<?php echo $type; ?>">
30 <td><?php echo $id; ?></td>
31 <td><?php echo $type; ?></td>
4d16103e 32 <td><a href="file.php?id=<?php echo $id; ?>&d=<?php echo $dir; ?>"><?php echo $path; ?></a></td>
ecf0462b
JL
33</tr>
34<?php
35}
36?>
37</table>
38
39<?php
40require("footer.inc.php");
41?>