2 require("config.inc.php");
3 require("header.inc.php");
6 $sql_suffix = "order by id";
9 $sql_suffix = "order by type";
13 $sql_suffix = "order by path";
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
>
26 $res = mysql_query("select id,path,type,dir from file $sql_suffix");
27 while (list($id,$path,$type,$dir)=mysql_fetch_row($res)) {
29 <tr
class="<?php echo $type; ?>">
30 <td
><?php
echo $id; ?
></td
>
31 <td
><?php
echo $type; ?
></td
>
32 <td
><a href
="file.php?id=<?php echo $id; ?>&d=<?php echo $dir; ?>"><?php
echo $path; ?
></a
></td
>
40 require("footer.inc.php");