}
}
- if(isset($photo)) {
- $this->tmpl->assign('image_url', 'phpfspot_img.php?idx='. $photo ."&width=". $this->cfg->photo_width);
- }
+
+ $details = $this->get_photo_details($photo);
+
+ $this->tmpl->assign('image_name', $details['name']);
+ $this->tmpl->assign('image_url', 'phpfspot_img.php?idx='. $photo ."&width=". $this->cfg->photo_width);
if($previous_img) {
$this->tmpl->assign('previous_url', "javascript:showImage(". $previous_img .");");
$this->tmpl->assign('image_url', $image_url);
$this->tmpl->show("bubble_details.tpl");
- }
+ } // showBubbleDetails()
+
+ public function showCredits()
+ {
+ $this->tmpl->assign('version', $this->cfg->version);
+ $this->tmpl->assign('product', $this->cfg->product);
+ $this->tmpl->show("credits.tpl");
+
+ } // showCredits()
}
content.innerHTML = HTML_AJAX.grab('rpc.php?action=showphoto&id=' + id);
}
+function showCredits()
+{
+ content = document.getElementById("content");
+ content.innerHTML = HTML_AJAX.grab('rpc.php?action=showcredits');
+}
+
function Tags(mode, id)
{
if(mode == "add") {
{
HTML_AJAX.replace(object, 'rpc.php?action=showbubbledetails&id=' + id + '&direction=" + direction');
}
+
var $page_title = "phpfspot - dynamic PHP gallery for F-Spot";
+ var $product = "phpfspot";
+ var $version = "0.1";
+
var $base_path = "/var/www/images.netshadow.at/htdocs/phpfspot";
var $web_path = "/phpfspot";
$fspot->showBubbleDetails($_GET['id'], $_GET['direction']);
break;
+ case 'showcredits':
+
+ $fspot->showCredits();
+ break;
+
}
} // process_ajax_request();
--- /dev/null
+<!-- Single photo -->
+<table>
+ <tr>
+ <td class="index_header">
+ <b>{$product} {$version}</b><br />
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <div id='matrix'>
+ <table>
+ <tr>
+ <td>
+ by Andreas Unterkircher<br />
+ {mailto address="unki@netshadow.at"}
+ <hr />
+ Bubble base JavaScript by <a href="http://www.websnapr.com/index.php?action=previewbubble">WebSnapr</a>
+ <hr />
+ <a href="http://wiki.bluga.net/HTML_AJAX/HomePage">HTML_AJAX</a>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </td>
+ </tr>
+</table>
+<!-- /Single photo -->
<td colspan="2" class="menu">
<a href="javascript:showPhotoIndex();">Photo Index</a>
<a href="javascript:Tags('reset', 0);">Reset Tags</a>
+ <a href="javascript:showCredits();">Credits</a>
</td>
</tr>
<tr>