use rpc calls for previous/next image
authorAndreas Unterkircher <unki@netshadow.at>
Mon, 4 Jun 2007 19:15:18 +0000 (19:15 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Mon, 4 Jun 2007 19:15:18 +0000 (19:15 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@11 fa6a889d-dae6-447d-9e79-4ba9a3039384

phpfspot.class.php

index d040f13476e4f930970eaa53c1c999384dea0dfe..1dd3b9369e33f87d377c83fb2a624fd863ce1072 100644 (file)
@@ -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] ."&amp;width=". $this->cfg->photo_width);
       }
 
       if($this->current_photo > 0) {
-         $this->tmpl->assign('previous_url', $_SERVER['PHP_SELF'] ."?mode=showphoto&amp;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&amp;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
 
-   
-
 }
 
 ?>