1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
<?
include('../../image.php');
echo '<link href="images.css" rel="stylesheet" type="text/css">';
echo '<script language="JavaScript" src="../../ClicDroit.js">';
echo '</script>';
//affichage d'une photo en grand //############################################################################################################################################################################
$back = $_GET['page'] - 1;
//$next = $_GET['page'] + 1;
$last = count_files('thumbnail');
$titre = $_GET['titre'];
echo ' <table border="0" width="100%">';
echo ' <!--DWLayoutTable-->';
//Affichage du titre
//#####################################################################################################################################################
echo ' <tr> ';
echo ' <td width="100%" height="25" valign="top"><p align="center">';
echo ' <strong><font face="Verdana" color="#000000">'.$_GET['titre'].' : Image N° '.$_GET['page'].'</strong></td>';
echo ' </tr>';
//#####################################################################################################################################################
//Affichage des thumbnails
echo ' <table width="100%" cellpadding="0" cellspacing="0" border="0">';
echo ' <tr>';
if ($back == 0)
{
echo ' <td><a href="thumbnail.php?titre='.$titre.'" title="Page précédente"><img src="back.png" width="13" height="15" border="0"></a></td>';
echo ' <td width="100%" align="center" valign="middle">';
$id=1;
$repertoire = opendir(".");
$list = array(".","..","comments","thumbnail","gal.gif","conf.php","index.php","index2.php","next.png","back.png","top.png","Thumbs.db","home.gif");
while ($entree = readdir($repertoire))
{
if (!in_array($entree,$list))
{
if ( $id == $_GET['page'] )
{
echo ('<img src="'.$entree.'"></td>');
}
$id++;
}
}
closedir($repertoire);
$next = $_GET['page'] + 1;
if ($next == ($last+1))
{
echo ' <td><a href="thumbnail.php?titre='.$titre.'" title="Page suivante"><img src="next.png" width="13" height="15" border="0"></a></td>';
}
else
{
echo ' <td><a href="affiche.php?page='.$next.'&titre='.$titre.'" title="Page suivante"><img src="next.png" width="13" height="15" border="0"></a></td>';
}
}
else
{
echo ' <td><a href="affiche.php?page='.$back.'&titre='.$titre.'" title="Page précédente"><img src="back.png" width="13" height="15" border="0"></a></td>';
echo ' <td width="100%" align="center" valign="middle">';
$id=1;
$repertoire = opendir(".");
$list = array(".","..","comments","thumbnail","gal.gif","conf.php","index.php","index2.php","next.png","back.png","top.png","Thumbs.db","home.gif");
while ($entree = readdir($repertoire))
{
if (!in_array($entree,$list))
{
if ( $id == $_GET['page'] )
{
echo ('<img src="'.$entree.'"></td>');
}
$id++;
}
}
closedir($repertoire);
$next = $_GET['page'] + 1;
if ($next == ($last+1))
{
echo ' <td><a href="thumbnail.php?titre='.$titre.'" title="Page suivante"><img src="next.png" width="13" height="15" border="0"></a></td>';
}
else
{
echo ' <td><a href="affiche.php?page='.$next.'&titre='.$titre.'" title="Page suivante"><img src="next.png" width="13" height="15" border="0"></a></td>';
}
}
echo ' </tr>';
echo ' </table>';
echo ' <tr width="100%" align="center" valign="middle">';
echo ' <td><a href="thumbnail.php?titre='.$titre.'" title="Retour à l\'index"><img src="home.gif" width="16" height="16" border="0"></a></td>';
echo ' </tr>';
echo ' </table>';
?>
</body>
</html> |
Partager