From 415e90a2e059ea32f6851dfb9b3c018b0a731a81 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 6 Oct 2008 18:13:56 +0000 Subject: Put the webpages in. --- pages/gallery.php | 135 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 pages/gallery.php (limited to 'pages/gallery.php') diff --git a/pages/gallery.php b/pages/gallery.php new file mode 100644 index 0000000..cf7e052 --- /dev/null +++ b/pages/gallery.php @@ -0,0 +1,135 @@ +
+ +
+\n"; + echo "
\n"; + echo " album . "\">\n"; + echo " \""title . "\" src=\"" . + thumbnail($albumdir, $album->icon, 100, 75) . "\"/>\n"; + echo " \n"; + echo "
\n"; + echo "
" . $album->title . "
\n"; + echo " \n"; + } + } + + echo "
Select the group of images you want to see.
\n"; +} + +/************* + View photo +*************/ +else { + function image($album, $file) { + global $ALBUMS_DIR; + echo $ALBUMS_DIR . "/" . $album . "/" . $file; + } + + if($album) { + $a = new Album($album); + + if($image) { + $photo = new Photo("", ""); + $prev = ""; + $next = ""; + + foreach($a->photos as $p) { + if($image == $p->file) { + $photo = $p; + } + if($image == $last->file) { + $next = $p; + break; + } + $prev = $last; + $last = $p; + } +?> + +" . $a->title . "\n"; + echo "
\n"; + foreach($a->photos as $photo) { +?> + +\n"; + echo "
". $a->title . "
\n"; + } +} +} +?> + + -- cgit v1.2.3