<?php } ?> <tr> <td><a href="download.php?id=<?php echo $id; ?> &download=<?php echo $result2['id']; ?> "><?php echo $result2['file_name']; ?> </a></td> <td><?php echo coolsize($result2['file_size']); ?> </td> <td><?php echo $result2['file_desc']; ?> </td> </tr> <?php } #if(!$cnt) echo "<tr><td colspan=\"3\" align=\"center\">*** None ***</td></tr>"; sql_free_result($query2); if ($cnt) { ?> </table> </td></tr>
if ($db->num_rows($res) != 0) { echo "<table cellspacing=0 cellpadding=2 border=0>"; echo "<tr><td class=title>" . nb_downloads() . " {$strDownloads}</td></tr>"; echo "</table>"; echo "<table border=0 cellpadding=0 cellspacing=0 class=bordure1><tr><td>"; echo "<table cellspacing=1 cellpadding=2 border=0>"; echo "<tr><td class=header>{$strCategorie}</td><td class=header>{$strNom}</td><td class=header>{$strTaille}</td><td class=header>{$strHits}</td><td class=header>{$strUrl}</td></tr>"; while ($download = $db->fetch($res)) { $cat = stripslashes($download->categorie); echo "<tr>"; echo "<td class=text align=center>{$cat}</td>"; echo "<td class=text>"; echo "<div style=\"clear: both\"><div style=\"float: left\"><a href=?page=download&id={$download->id}><b>" . stripslashes($download->nom) . "</b></a></div>"; echo "<div style=\"float: right\"> <a href=\"?page=download&op=modify&id={$download->id}\">[{$strE}]</a> <a href=?page=download&op=delete&id={$download->id} onclick=\"return confirm('{$strConfirmEffacerDownload}');\">[{$strS}]</a></div>"; echo "</div></td>"; echo "<td class=text align=center>" . coolsize($download->taille) . "</td>"; echo "<td class=text align=center><b>{$download->hits}</b></td>"; echo "<td class=text><a target=_blank href=\"{$download->url}\">{$download->url}</a></td>"; echo "</tr>"; } echo "</table>"; echo "</td></tr></table>"; } else { echo "<table cellspacing=2 cellpadding=2 border=0>"; echo "<tr><td class=title>{$strPasDeDownload}</td></tr>"; echo "</table>"; } /*** ajouter un download ***/ echo "<br>"; echo "<form method=post action=?page=download&op=add>"; echo "<table border=0 cellpadding=0 cellspacing=0 class=bordure2><tr><td>";
function display_gal($galid, $start = 1) { global $s_joueur, $config; global $strGalerieInconnue, $strUploaderFichier, $strFichier, $strEnvoyer, $strUploadFichierConsignes, $strRetour, $grade; if (!is_gallery($galid)) { show_erreur($strGalerieInconnue); } else { display_gallery_dir($galid); display_thumbnails($galid, "", $start); if (($grade['a'] == 'a' || $grade['b'] == 'b' || $grade['q'] == 'q') && $galid != "") { echo "<form name=input action=\"?page=galerie&op=upload&g={$galid}\" method=post enctype=\"multipart/form-data\">"; echo "<table border=0 cellpadding=0 cellspacing=0 class=bordure2><tr><td>"; echo "<table cellspacing=1 cellpadding=0 border=0>"; echo "<tr><td class=headerfiche>{$strUploaderFichier} {$galid}</td></tr>"; echo "<tr><td>"; echo "<table cellspacing=0 cellpadding=3 border=0 width=100%>"; echo "<tr>"; echo "<td class=titlefiche>{$strFichier} <font color=red><b>*</b></font> :</td>"; echo "<td class=textfiche><input type=file name=userfile size=40 maxlength=80></td>"; echo "</tr>"; echo "<tr><td class=footerfiche align=center colspan=2><input type=submit value=\"{$strEnvoyer}\"></td></tr>"; echo "</table>"; echo "</td></tr></table>"; echo "</td></tr></table>"; echo "</form>"; show_consignes($strUploadFichierConsignes . coolsize($config['gallery_max_filesize'])); } $arraygal = explode("/", $galid); $linkgal = "{$arraygal['0']}"; // to avoid the first "/" if ($galid) { for ($i = 1; $i < count($arraygal) - 1; $i++) { $linkgal .= "/" . $arraygal[$i]; } if (count($arraygal) == 1) { $linkgal = ""; } echo "<br><img src=\"images/back.gif\" border=0 align=align=absmiddle> <a href=\"?page=galerie&g={$linkgal}\" class=action>{$strRetour}</a><br>"; } else { echo "<br><img src=\"images/back.gif\" border=0 align=align=absmiddle> <a href=\"javascript:back()\" class=action>{$strRetour}</a><br>"; } } }
$j++; } echo "{$line}"; echo "</table>"; /*** upload des fichier ***/ if ($upload == 1) { echo "<br>"; echo "<form name=input action=\"?page=matchs_browser&op=upload&header=win\" method=post enctype=\"multipart/form-data\">"; echo "<input type=\"hidden\" name=\"match\" value=\"{$match}\">"; echo "<input type=\"hidden\" name=\"directory\" value=\"{$directory}\">"; echo "<table border=0 cellpadding=0 cellspacing=0 class=bordure2><tr><td>"; echo "<table cellspacing=1 cellpadding=0 border=0>"; echo "<tr><td class=headerfiche>{$strUploaderFichier} {$directory}</td></tr>"; echo "<tr><td>"; echo "<table cellspacing=0 cellpadding=3 border=0 width=100%>"; echo "<tr>"; echo "<td class=titlefiche>{$strFichier} <font color=red><b>*</b></font> :</td>"; echo "<td class=textfiche><input type=file name=userfile size=40 maxlength=80></td>"; echo "</tr>"; echo "<tr><td class=footerfiche align=center colspan=2><input type=submit value=\"{$strEnvoyer}\"></td></tr>"; echo "</table>"; echo "</td></tr></table>"; echo "</td></tr></table>"; echo "</form>"; show_consignes($strUploadFichierConsignes . coolsize($config['download_max_filesize'])); } echo "<img src=\"images/back.gif\" border=0 align=align=absmiddle> <a href=javascript:close() class=action>{$strRetour}</a><br>"; } ?>