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);
} // translate_path
-
-
}
?>