0byt3m1n1
Path:
/
home
/
kassiope
/
www
/
administrer
/
[
Home
]
File: exportdpd.php
<?php $menu=11; include("../configuration.inc.php"); necessite_identification(); necessite_priv("admin"); $DOC_TITLE = "Export DPD"; include("modeles/haut.php"); affiche_liste_dpd($start); include("modeles/bas.php"); /****************************************************************************** * FONCTIONS *****************************************************************************/ function affiche_liste_dpd($start){ global $dirroot, $wwwroot; $directory = $dirroot.'/dpd/'; $scanned_directory = array_diff(scandir($directory), array('..', '.')); rsort($scanned_directory); ?> <table border="0" class="tablespace" cellpadding="0" cellspacing="0" width="100%"> <tr> <th class="entete" colspan="11">Télécharger les fichiers DPD</th> </tr> <?php if (count($scanned_directory) == 0) {echo "<tr><td class=normal colspan=\"3\"><b>Aucun fichier enregistré.</b></td></tr>"; } else { ?> <tr> <td class="menu">Action</td> <td class="menu">Fichier</td> <td class="menu">Date</td> </tr> <tbody id="sortable"> <? foreach($scanned_directory as $v) { $date = explode('_',str_replace('.dat','',$v)); ?> <tr> <td style="width:50px; text-align: center"> <a title="Télécharger" rel="tooltip" download href="<?=$wwwroot?>/dpd/<?=$v ?>" target="_blank"><i class="ti-download"></i></a> </td> <td><?=$v ?></td> <td ><?=$date[1] ?></td> </tr> <? } echo '</tbody>'; } echo "</table>"; } ?>