38106b0de2807d80bd3e70a9c4f12f75e363b9ff
2 require("config.inc.php");
3 require("header.inc.php");
5 $order = isset($_REQUEST['order']) ?
$_REQUEST['order'] : "p";
8 $sql_suffix = "order by id";
11 $sql_suffix = "order by type";
14 $sql_suffix = "order by path";
21 <th
><a href
="<?php echo $_SERVER['PHP_SELF']; ?>?order=i">id
</a
></th
>
22 <th
><a href
="<?php echo $_SERVER['PHP_SELF']; ?>?order=t">type
</a
></th
>
23 <th
><a href
="<?php echo $_SERVER['PHP_SELF']; ?>?order=p">path
</a
></th
>
27 $res = mysql_query("select id,path,type,dir from file $sql_suffix");
28 while (list($id,$path,$type,$dir)=mysql_fetch_row($res)) {
30 <tr
class="<?php echo $type; ?>">
31 <td
><?php
echo $id; ?
></td
>
32 <td
><?php
echo $type; ?
></td
>
33 <td
><a href
="file.php?id=<?php echo $id; ?>&d=<?php echo $dir; ?>"><?php
echo $path; ?
></a
></td
>
41 require("footer.inc.php");