Ik heb een scriptje waar ik niet meer uitkom.
Als ik 20 plaatjes heb moeten er 15 plaatjes op een pagina 1 staan en moet hij VOLGENDE aangeven. Als je dit aanklikt moet hij naar pagina 2 gaan waar de overige 5 staan, maar dit wertk niet:-(
Kan iemand mij helpen hiermee?
<?PHP
$aantalpp = "15";
$woord="test";
$path = "../upload/pic_large/";
$title = "<small>Page </small>". ($page + 1);
$header = "<br><br><B>Foto's</B>";
$clm = "5"; // Aantal kolommen
$rows = "5"; // aantal rijen
$t_w = "120";
$t_h = "90";
?>
<HTML>
<BODY bgcolor='#990000' leftmargin='0' topmargin='0'>
<div align="center">
<font face='Verdana' size='2' color='#FFFFFF'>
<?PHP
echo $header;
echo "<br><br><center><b><b>$title</b></b><br><br>";
$min = (1+($page * $aantalpp));
$max = (($page +1) * $aantalpp);
$number = $clm * $rows;
$break = (($page * $aantalpp) + $clm);
echo "<table border=0 cellpadding=0 cellspacing=0><tr>";
$d = dir("$path");
$count = -1;
while($entry=$d->read()) {
if (($count >= $min) AND ($count <= $max)){
if(eregi(".jpg|.jpeg|.gif|.bmp|.png", $entry)){
ClearStatCache();
$size = GetImageSize("$path/$entry");
$size[0] = $size[0] + 20; //Begin: 20
$size[1] = $size[1] + 25; //Begin: 25
$file_size=fileSize("$path/$entry");
$file_size = round($file_size / 1000) . "k";
echo ("<td><a href=\"#\" onmouseover=\"window.status='Vergroten';return true;\" onmouseout=\"window.status=''; return true\"
onclick=\"window.open('$path/$entry','pix$count','width=$size[0],height=$size[1],innerwidth=$size[0],innerheight=$size[1]
,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no,top=0,left=0,leftmargin=0,topmargin=0,
marginwidth=0,marginheight=0,screenX=0,screenY=0');return false\"><img src=$path/");
echo $entry." style='border:3px solid #fc5;' alt=$count height=$t_h></a> </td>\n"; // width=$t_w
}
if ($count == $break){
echo "</tr>\n<tr>\n";
$break = $count + $clm ;
}
}
$count++;
}
$d->close();
echo "</tr></table>";
$pages = ($count / $aantalpp);
$pageplus = ($page + 1);
$pagemin = ($page - 1);
if (($page + 1) < $pages){
$volgende = " | <a href=$woord.php?page=$pageplus><font face = 'Verdana' size='2' color='yellow'>Volgende $aantalpp Foto's</font></a></font> |";
}
if (($page+1) > "1"){
$vorige = "| <font face = 'Verdana' size='2' color='yellow'><a href=$woord.php?page=$pagemin>Vorige $aantalpp Foto's</a></font> |";
}
echo "<BR><BR><BR><b>MADE BY FRANKO</b><br><br>$vorige $volgende";
?>
</font>
</div>
</BODY>
</HTML>
?>
809 views