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 94 95 96 97 98
|
<body>
<script type="text/javascript" src="http://www.luminate.com/widget/fdc910164a/"></script>
<div class="globale">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="141" colspan="2" align="left" valign="top">
<div class="ads1">
<?php include 'ads1.php'; ?>
</div>
<img src="img/header.png" />
<!-- <h4>THE</h4>
<h3>BEST</h3>
<h2>PICTURES</h2>-->
</td>
</tr>
<tr>
<td colspan="2" align="left" valign="top"> </td>
</tr>
<tr>
<td colspan="2" align="left" valign="top">
<div class="ads2">
<?php include 'ads2.php'; ?>
</div>
</td>
</tr>
<tr>
<td colspan="2" align="left" valign="top">
<div class="ads3">
<?php include 'ads3.php'; ?>
</div>
</td>
</tr>
<tr>
<td align="left" valign="top"> </td>
<td align="left" valign="top"><?php include 'menu_top.php'; ?></td>
</tr>
<tr>
<td width="15%" align="left" valign="top"><?php include 'menu_left.php'; ?></td>
<td width="85%" align="left" valign="top"><br />
<?php
$dir="img/bebe";
if ($dh = @opendir("$dir")){
$files = array();
while (($file = @readdir($dh)) !== false){
if ($file == "." or $file == ".." or $file == "Thumbs.db")
{continue;}
$files[] = $file;
}
$photosPerPage = 21;
$pageNum = 1;
if(isset($_GET['page']))
{
$pageNum = $_GET['page'];
}
$files_num = count($files);
$counter = ($pageNum - 1) * $photosPerPage;
$lastphotoinpage = ($pageNum * $photosPerPage) - 1;
echo "<table width=\"614\" border=\"0\">";
while($counter<=$lastphotoinpage){
if ($counter == $files_num)
{break;}
echo"<tr>";
$tdcounter = 1;
$imagesperrow = 3;
while($tdcounter <= $imagesperrow){
echo"<td width=\"250\"><a href='$dir/$files[$counter]' target='_blank'><img class=\"im\" alt=\"photos pictures\" src='$dir/$files[$counter]' border='0' width='250' height='250'></td>";
$tdcounter++;
$counter++;
if ($counter == $files_num)
{ break;}
}
echo"</tr>";
}
echo "</table><br>";
$maxPage = ceil($files_num/$photosPerPage);
$self = $_SERVER['PHP_SELF'];
echo "<hr><table border=\"0\" align=\"center\"><tr>";
for($i=1;$i<$maxPage+1;$i++){
echo "<td width=\"20\"><a href=$self?page=$i>$i</a></td>\n";
}
}
else{
echo "Directory not found";
}
?>
</td>
</tr>
<tr>
<td colspan="2" align="left" valign="top" bgcolor="#0000FF"><p dir="ltr" align="center"><font color="#FFFFFF"><b>PIED DE PAGE</b></font></p>
</td>
</tr>
</table>
</body> |
Partager