function Addimage($path, $img, $thm, $showbig) { if ($showbig) { //echo " "; echo " \r\n"; } else { echo " \r\n"; } } function AddBackDir($dir) { if ($dir == "") $diraddon = ""; else $diraddon = "?dir=$dir"; echo " \r\n"; } function AddSubDir($dir) { if ($dir == "") $diraddon = ""; else $diraddon = "?dir=$dir"; $bUpdated = false; $imclass = 'imgset_block'; if (file_exists($dir."/index.upd")) { // directory updated $imclass = 'imgset_hotblock'; $bUpdated = true; } echo "
";
if ($dirscnt > 0) {
echo "
"; } if ($photoscnt > 50) { echo "
";
AddBackDir($updir);
echo " ";
}
}
echo " |
\r\n";
// head buttons...
echo " \r\n";
if (0) {
// first
echo "First ";
// prev
if ($currphoto > 0) {
echo "[[ Prev ]]";
}
echo " ";
// top
echo "Top";
echo " ";
// next
if ($photoscnt > 1 && $currphoto < $photoscnt - 1) {
echo "[[ Next ]]";
}
// last
echo " Last\r\n";
echo " \r\n"; } $cols = 1; // main image echo " "; echo " |
\r\n"; // tbumbs $a = $currphoto - $iconscnt; $b = $currphoto + $iconscnt; if ($a < 0) { $b = $b - $a; $a = 0; } if ($b >= $photoscnt) { $a = $a - ($b - $photoscnt + 1); } if ($a < 0) $a = 0; $b = $a + 2*$iconscnt; if ($b >= $photoscnt) $b = $photoscnt - 1; //echo "$a ... $b "; echo " ";
echo "the first  ";
for ($i = $a; $i <= $b; $i++) {
Addimage($dir, $photos[$i], $photosthumb[$i], false);
}
echo " all ";
echo " the last ";
echo " \r\n";
echo "\r\n";
echo " |
\r\n";
echo " by martin bujnak copyright 2005-2008 \r\n";
echo " |