Mensen ik heb het volgende probleempje. Ik heb een scriptje voor een thumbnail fotogallerij. Deze werkt goed, alleen ik krijg de "Volgende en Vorige" link niet aan de praat.
Er moet waarschijnlijk iets gedaan worden in de eerste 3 variabelen en in et pad, maar wat??
Iemand die mij een zetje in de goede richting kan geven?
Er moet waarschijnlijk iets gedaan worden in de eerste 3 variabelen en in et pad, maar wat??
Iemand die mij een zetje in de goede richting kan geven?
PHP:
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
| <?php $page="foto.php"; $woord="foto.php"; // naam vd php file $path = "uploads"; // dir waar foto's in staan // Configuratie $clm = "5"; // Aantal kolommen $rows = "5"; // aantal rijen $t_w = "105"; $t_h = "100"; ?> <div align="center"><font face='Arial, Helvetica, sans-serif' size='4' align='center'> <?php $min = (1+($page * 25)); $max = (($page +1) * 25); $number = $clm * $rows; $break = (($page * 25) + $clm); echo "<table border=1 bordercolor=000000 cellpadding=0 cellspacing=2><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; $size[1] = $size[1] + 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." border=0 alt=$count width=$t_w height=$t_h></a> </td>\n"; // } if ($count == $break){ echo "</tr>\n<tr>\n"; $break = $count + $clm ; } } $count++; } $d->close(); echo "</tr></table>"; $pages = ($count / 25); $pageplus = ($page + 1); $pagemin = ($page - 1); if (($page + 1) < $pages){ echo "<a href=Foto.php?pagina=$woord&page=$pageplus>Volgende 25 >></a>"; } if (($page+1) > "1"){ echo "<a href=Foto.php?pagina=$woord&pagemin><< Vorige 25</a>"; } ?> </font> </div> |