$f, 'imgWidth'=>$imgWidth, 'imgHeight'=>$imgHeight); } } closedir($dh); if ($imgCount > 0) sort ($imgArr); } //GET desired view // One can switch between fotoview and overview or between fotoview and showview. // There is no switching between overview and showview directly. if (!isset($_GET["vw"])) $view="foto"; //default value else $view = strtolower($_GET["vw"]); if ($view == "ovvw") { $altview = "foto"; }elseif ($view == "foto") { $altview = "ovvw"; } elseif ($view == "show") { $altview = "foto"; }else{ die ('Fout : ongeldig view gevraagd'); } //GET desired foto number $no = max ($_GET["no"], 1); if ($imgCount > 0) { $no = min($no, $imgCount); } ?> Vane - Fotoalbum '); echo ("\n >
    
Fotoalbum verlaten

terug naar site'); ?>
0) { if ($view == "ovvw") { // thumbs page asked $firstImg = ($no-1) - (($no-1) % $thumbs_per_page); $lastImg = min($firstImg+$thumbs_per_page,$imgCount)-1; $images = ($lastImg - $firstImg) + 1; $rowCnt = ceil($images / $thumb_cols); $colCnt = $thumb_cols; $cellwidth = " width=".$thumb_cellsz; $imgsize = $thumb_size; }else{ //single photo asked $firstImg = $no-1; $lastImg = $firstImg; $images = 1; $rowCnt = 1; $colCnt = 1; $cellwidth = ""; $imgsize = $spcY; } //prepare link to alternative view $linkstr = $_SERVER["PHP_SELF"].'?fd='.$_GET["fd"].'&res='.$_GET["res"].'&vw='.$altview.'&no='; //actual display $i = $firstImg; echo ("\n"); for ($r=1; $r<=$rowCnt; $r++) { echo ("\n"); for ($c=1; $c<=$colCnt; $c++) { echo (""); if ($i <= $lastImg) { if ($view == "foto") { // Single picture with link to alternative view: overview // Use actual picture in stead of php file to allow "save picture as" echo (''); echo ('Foto#'.($i+1).''); echo (""); } elseif ($view == "ovvw") { // thumbnail view with link to alternative view: fotoview echo (''); echo ('Foto#'.($i+1).''); echo (""); } elseif ($view == "show") { // Showview: single picture without link echo ('Foto#'.($i+1).''); } }else{ echo (" "); } echo ("\n"); $i++; } echo ("\n"); } echo ("
\n"); } else { echo ("

 

  Helaas (nog) geen foto's beschikbaar.

"); $firstImg = $lastImg = $imgCount; } ?>
Foto's
".($firstImg+1)." tot ".($lastImg+1)."
van
".$imgCount."

"); $delta = $thumbs_per_page; $altstr = " pagina"; } else { //Single picture in foto or show view echo ("

Foto
".($firstImg+1)."
van
".$imgCount."

"); $delta = 1; $altstr = " foto"; } ?>

diashow

stop show

diashow
0) && ($view=="foto")) { ?>
overzicht

overzicht




0) && ($lastImg != ($imgCount-1))) { ?>

0) && ($lastImg != ($imgCount-1))) { ?>