0x1998 - MANAGER
Edit File: aj_listfiles.php
<script> $(document).ready(function(){ }); </script> <?php include "config/auth-config.php"; include "config/authcheck.php"; include "config/garde.php"; $type= isset($_GET['type'])? $_GET['type']:""; $action= isset($_GET['action'])? $_GET['action']:"read"; $requete="select id, ordre,realname, nom, comment as 'Commentaire' from fichiers where type='".$type."' and actif='Y' order by ordre"; $sql=mysqli_query($link,$requete) or die($requete); echo " <table id=\"tableau\" class=\"table table-bordered\" style=\"font-size:12px;\"> <thead><tr>"; for ($i=3;$i<5;$i++) { echo "<th>".strtoupper(mysqli_field_name($sql,$i))."</th>"; } if ($action=="write") {echo " <th>ORDRE</th>";} else {echo " <th>TELECHARGER</th>";} echo " </thead></tr></tbody>"; while ($corps=mysqli_fetch_array($sql)) { echo " <tr>"; for ($i=3;$i<5;$i++) { echo " <td>".$corps[$i]."</span></td>"; } echo " <td>"; if ($action=="write") { if ($corps[1]>1) echo"<span style=\"font-size:10px;cursor: pointer;\" class=\"glyphicon glyphicon-arrow-up\" aria-hidden=\"true\" onclick=\"up('".$corps[0]."')\"></span>"; echo" <span style=\"font-size:10px;cursor: pointer;\" class=\"glyphicon glyphicon-arrow-down\" aria-hidden=\"true\" onclick=\"down('".$corps[0]."')\"></span> <span style=\"font-size:10px;cursor: pointer;\" class=\"glyphicon glyphicon-remove\" aria-hidden=\"true\" onclick=\"drop('".$corps[0]."')\"></span>"; } else { echo"<a href=\"".$corps['realname']."\" target=\"_blank\"><span style=\"font-size:10px;cursor: pointer;\" class=\"glyphicon glyphicon-download-alt\" aria-hidden=\"true\"/></a>"; } echo " </td> </tr>"; } echo " </tbody></table> "; ?>