summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-06-07 15:30:35 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-06-07 15:30:35 +0000
commit588923cbaafe421b32ec55e2dd4c4bb04df625dd (patch)
treebaecba852259a680b3379cbdfc1fd3654397f91f
parentfe544d65af90df49390155616b9c864ea60ff2e5 (diff)
some nice credit page
git-svn-id: file:///var/lib/svn/phpfspot/trunk@44 fa6a889d-dae6-447d-9e79-4ba9a3039384
-rw-r--r--phpfspot.class.php18
-rw-r--r--phpfspot.js7
-rw-r--r--phpfspot_cfg.php3
-rw-r--r--rpc.php5
-rw-r--r--templates/credits.tpl27
-rw-r--r--templates/index.tpl1
6 files changed, 57 insertions, 4 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index ab5cb9e..5df3115 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -98,9 +98,11 @@ class PHPFSPOT {
}
}
- if(isset($photo)) {
- $this->tmpl->assign('image_url', 'phpfspot_img.php?idx='. $photo ."&amp;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 ."&amp;width=". $this->cfg->photo_width);
if($previous_img) {
$this->tmpl->assign('previous_url', "javascript:showImage(". $previous_img .");");
@@ -263,7 +265,15 @@ class PHPFSPOT {
$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()
}
diff --git a/phpfspot.js b/phpfspot.js
index 23a7130..99da2ce 100644
--- a/phpfspot.js
+++ b/phpfspot.js
@@ -4,6 +4,12 @@ function showImage(id)
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") {
@@ -49,3 +55,4 @@ function showBubbleDetails(object, id, direction)
{
HTML_AJAX.replace(object, 'rpc.php?action=showbubbledetails&id=' + id + '&direction=" + direction');
}
+
diff --git a/phpfspot_cfg.php b/phpfspot_cfg.php
index f01955c..e799761 100644
--- a/phpfspot_cfg.php
+++ b/phpfspot_cfg.php
@@ -4,6 +4,9 @@ class PHPFSPOT_CFG {
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";
diff --git a/rpc.php b/rpc.php
index 48b4c40..4599e11 100644
--- a/rpc.php
+++ b/rpc.php
@@ -83,6 +83,11 @@ class PHPFSPOT_RPC {
$fspot->showBubbleDetails($_GET['id'], $_GET['direction']);
break;
+ case 'showcredits':
+
+ $fspot->showCredits();
+ break;
+
}
} // process_ajax_request();
diff --git a/templates/credits.tpl b/templates/credits.tpl
new file mode 100644
index 0000000..2bff9ee
--- /dev/null
+++ b/templates/credits.tpl
@@ -0,0 +1,27 @@
+<!-- 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 -->
diff --git a/templates/index.tpl b/templates/index.tpl
index bec381b..fad6eb5 100644
--- a/templates/index.tpl
+++ b/templates/index.tpl
@@ -11,6 +11,7 @@
<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>