summaryrefslogtreecommitdiffstats
path: root/getjson.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2012-10-16 23:32:09 -0700
committerArun Persaud <arun@nubati.net>2012-10-16 23:32:09 -0700
commitcb822f5550deb1f1a904f9b94ee6bbe569c3e056 (patch)
tree0997a3fd095c605234360ae81a0a4909f113b22c /getjson.php
parent801ba916b5b5680e10c3b63978034058f7fed840 (diff)
downloadphoto-tags-cb822f5550deb1f1a904f9b94ee6bbe569c3e056.tar.gz
photo-tags-cb822f5550deb1f1a904f9b94ee6bbe569c3e056.tar.bz2
photo-tags-cb822f5550deb1f1a904f9b94ee6bbe569c3e056.zip
more bootstrap integration, cleanup and some small bugfixes
* load local CSS after bootstrap * removed local CSS that was not needed anymore * added greyed out pagination for single page * added charset to html * only use +-3 pictures for thumbnails (so that transitions alwasy stay on 1 line) * fixed many layout issues * fixed transition
Diffstat (limited to 'getjson.php')
-rw-r--r--getjson.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/getjson.php b/getjson.php
index 3e4cf4d..432b324 100644
--- a/getjson.php
+++ b/getjson.php
@@ -25,7 +25,7 @@ if (isset($_REQUEST["S"]))
}
else if (isset($_REQUEST["NP"]))
{
- /* get +- 5 pics from ordered list to show next to a large image */
+ /* get +- 3 pics from ordered list to show next to a large image */
/* first create a temp table with all images and then use rowid to get +-5 images */
@@ -55,8 +55,8 @@ if (isset($_REQUEST["S"]))
{
$ID=intval($_REQUEST["ID"]);
$result = $DB->query("SELECT * FROM NEXTPREV".
- " WHERE rowid > (select rowid from NEXTPREV where id=$ID) -5".
- " AND rowid < (select rowid from NEXTPREV where id=$ID) +5");
+ " WHERE rowid > (select rowid from NEXTPREV where id=$ID) -3".
+ " AND rowid < (select rowid from NEXTPREV where id=$ID) +3");
}
else
{