diff pics/common.php @ 5:2ede1c948f35

pics/common.php: add next and prev accesskeys; fix missing quotation marks around next and prev links URL; add anchor names
author paulo@twcdns.fastsearch.net
date Thu, 02 Sep 2010 00:33:01 -0700
parents 561c0b0f3234
children 8314130afe1d
line diff
     1.1 --- a/pics/common.php	Mon Aug 23 23:21:48 2010 -0700
     1.2 +++ b/pics/common.php	Thu Sep 02 00:33:01 2010 -0700
     1.3 @@ -12,7 +12,7 @@
     1.4  			
     1.5  			sort($files, SORT_NUMERIC);
     1.6  			foreach ($files as $file)
     1.7 -			   echo '<A HREF="browse.php?id=' . $file . '"><IMG SRC="' . $thumbs_dir . $file . '"></A> ' . "\n";
     1.8 +			   echo '<A HREF="browse.php?id=' . $file . '" NAME="' . $file . '"><IMG SRC="' . $thumbs_dir . $file . '"></A> ' . "\n";
     1.9  			
    1.10  			closedir($dh);
    1.11  		}
    1.12 @@ -47,17 +47,17 @@
    1.13  				for ($i = 0, $size = sizeof($files); $i < $size; $i++) {
    1.14  					if ($files[$i] == $getValue) {
    1.15  						if ($i > 0) {
    1.16 -							echo '<A HREF=browse.php?id=' . $files[$i - 1] . '>';
    1.17 -							echo '<IMG SRC="' . $thumbs_dir . $files[$i - 1]. '">';
    1.18 +							echo '<A HREF="browse.php?id=' . $files[$i - 1] . '" accesskey="p">';
    1.19 +							echo '<IMG SRC="' . $thumbs_dir . $files[$i - 1] . '">';
    1.20  							echo '</A>' . "\n";
    1.21  						}
    1.22  						if ($i < $size - 1) {
    1.23 -							echo '<A HREF=browse.php?id=' . $files[$i + 1] . '>';
    1.24 -							echo '<IMG SRC="' . $thumbs_dir . $files[$i + 1]. '">';
    1.25 +							echo '<A HREF="browse.php?id=' . $files[$i + 1] . '" accesskey="n">';
    1.26 +							echo '<IMG SRC="' . $thumbs_dir . $files[$i + 1] . '">';
    1.27  							echo '</A>' . "\n";
    1.28  						}
    1.29  						echo '<br>' . "\n";
    1.30 -						echo '<A HREF="./">';
    1.31 +						echo '<A HREF="./index.php#' . $files[$i] . '">';
    1.32  						echo '<IMG SRC="' . $browse_dir . $files[$i] . '"> ';
    1.33  						echo '</A>' . "\n";
    1.34