comparison pics/common.php @ 17:5a0c2ee709f8

myrss/myrss_update.sh: allow # comments
author paulo@twcdns.fastsearch.net
date Wed, 29 Sep 2010 22:04:46 -0700
parents 561c0b0f3234
children 8314130afe1d
comparison
equal deleted inserted replaced
0:063e5d8c63ab 1:f29a608adc73
10 $files[] = $file; 10 $files[] = $file;
11 } 11 }
12 12
13 sort($files, SORT_NUMERIC); 13 sort($files, SORT_NUMERIC);
14 foreach ($files as $file) 14 foreach ($files as $file)
15 echo '<A HREF="browse.php?id=' . $file . '"><IMG SRC="' . $thumbs_dir . $file . '"></A> ' . "\n"; 15 echo '<A HREF="browse.php?id=' . $file . '" NAME="' . $file . '"><IMG SRC="' . $thumbs_dir . $file . '"></A> ' . "\n";
16 16
17 closedir($dh); 17 closedir($dh);
18 } 18 }
19 } 19 }
20 20
45 45
46 sort($files, SORT_NUMERIC); 46 sort($files, SORT_NUMERIC);
47 for ($i = 0, $size = sizeof($files); $i < $size; $i++) { 47 for ($i = 0, $size = sizeof($files); $i < $size; $i++) {
48 if ($files[$i] == $getValue) { 48 if ($files[$i] == $getValue) {
49 if ($i > 0) { 49 if ($i > 0) {
50 echo '<A HREF=browse.php?id=' . $files[$i - 1] . '>'; 50 echo '<A HREF="browse.php?id=' . $files[$i - 1] . '" accesskey="p">';
51 echo '<IMG SRC="' . $thumbs_dir . $files[$i - 1]. '">'; 51 echo '<IMG SRC="' . $thumbs_dir . $files[$i - 1] . '">';
52 echo '</A>' . "\n"; 52 echo '</A>' . "\n";
53 } 53 }
54 if ($i < $size - 1) { 54 if ($i < $size - 1) {
55 echo '<A HREF=browse.php?id=' . $files[$i + 1] . '>'; 55 echo '<A HREF="browse.php?id=' . $files[$i + 1] . '" accesskey="n">';
56 echo '<IMG SRC="' . $thumbs_dir . $files[$i + 1]. '">'; 56 echo '<IMG SRC="' . $thumbs_dir . $files[$i + 1] . '">';
57 echo '</A>' . "\n"; 57 echo '</A>' . "\n";
58 } 58 }
59 echo '<br>' . "\n"; 59 echo '<br>' . "\n";
60 echo '<A HREF="./">'; 60 echo '<A HREF="./index.php#' . $files[$i] . '">';
61 echo '<IMG SRC="' . $browse_dir . $files[$i] . '"> '; 61 echo '<IMG SRC="' . $browse_dir . $files[$i] . '"> ';
62 echo '</A>' . "\n"; 62 echo '</A>' . "\n";
63 63
64 $query = 'SELECT * FROM '. basename(getcwd()) . ' WHERE id = "' . $getValue . '"'; 64 $query = 'SELECT * FROM '. basename(getcwd()) . ' WHERE id = "' . $getValue . '"';
65 $results = mysql_query($query); 65 $results = mysql_query($query);