diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2007-06-04 19:15:18 +0000 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2007-06-04 19:15:18 +0000 |
commit | a9f2d88bd254779a0c611ee0a9d4c625357efa96 (patch) | |
tree | 4566b6fa66b2e3c90c8c972ab7738f61c4fa6413 /phpfspot.class.php | |
parent | 37091420ec57a050d936b616c1f7e03df06fdf26 (diff) |
use rpc calls for previous/next image
git-svn-id: file:///var/lib/svn/phpfspot/trunk@11 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r-- | phpfspot.class.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php index d040f13..1dd3b93 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -37,17 +37,16 @@ class PHPFSPOT { public function show() { - if(isset($this->current_photo)) { $this->tmpl->assign('image_url', 'phpfspot_img.php?idx='. $this->avail_photos[$this->current_photo] ."&width=". $this->cfg->photo_width); } if($this->current_photo > 0) { - $this->tmpl->assign('previous_url', $_SERVER['PHP_SELF'] ."?mode=showphoto&id=". $this->avail_photos[$this->current_photo-1]); + $this->tmpl->assign('previous_url', "javascript:showImage(". ($this->current_photo-1) .");"); } if($this->current_photo < count($this->avail_photos)) { - $this->tmpl->assign('next_url', $_SERVER['PHP_SELF'] ."?mode=showphoto&id=". $this->avail_photos[$this->current_photo+1]); + $this->tmpl->assign('next_url', "javascript:showImage(". ($this->current_photo+1) .");"); } $this->tmpl->assign('tags', $this->tags); @@ -120,8 +119,6 @@ class PHPFSPOT { } // translate_path - - } ?> |