some nice credit page
authorAndreas Unterkircher <unki@netshadow.at>
Thu, 7 Jun 2007 15:30:35 +0000 (15:30 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Thu, 7 Jun 2007 15:30:35 +0000 (15:30 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@44 fa6a889d-dae6-447d-9e79-4ba9a3039384

phpfspot.class.php
phpfspot.js
phpfspot_cfg.php
rpc.php
templates/credits.tpl [new file with mode: 0644]
templates/index.tpl

index ab5cb9e12c165ab9b34dc3fd0349e9f216146e44..5df3115d03861c517002144fd1c141af094d3992 100644 (file)
@@ -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 .");");
 
       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");
 
       $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()
 
 }
 
 
 }
 
index 23a713055ed7ad1713aa475b92f0c508f3af8093..99da2ce29099e7319b8d836f8c1fdecceede83cd 100644 (file)
@@ -4,6 +4,12 @@ function showImage(id)
    content.innerHTML = HTML_AJAX.grab('rpc.php?action=showphoto&id=' + 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") {
 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');
 }
 {
    HTML_AJAX.replace(object, 'rpc.php?action=showbubbledetails&id=' + id + '&direction=" + direction');
 }
+
index f01955cbd68e2c0326ac4be71f9fa6910a48bf16..e7997612a97751fb839a021a976c035c88f08a3e 100644 (file)
@@ -4,6 +4,9 @@ class PHPFSPOT_CFG {
 
    var $page_title = "phpfspot - dynamic PHP gallery for F-Spot";
 
 
    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";
    var $base_path = "/var/www/images.netshadow.at/htdocs/phpfspot";
 
    var $web_path = "/phpfspot";
diff --git a/rpc.php b/rpc.php
index 48b4c40502b3c07aa6839b98c435fa221d30c7d0..4599e11c8603598614ac292111bb499abc112276 100644 (file)
--- a/rpc.php
+++ b/rpc.php
@@ -83,6 +83,11 @@ class PHPFSPOT_RPC {
             $fspot->showBubbleDetails($_GET['id'], $_GET['direction']);
             break;
 
             $fspot->showBubbleDetails($_GET['id'], $_GET['direction']);
             break;
 
+         case 'showcredits':
+
+            $fspot->showCredits();
+            break;
+
       }
 
    } // process_ajax_request();
       }
 
    } // process_ajax_request();
diff --git a/templates/credits.tpl b/templates/credits.tpl
new file mode 100644 (file)
index 0000000..2bff9ee
--- /dev/null
@@ -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 -->
index bec381b4acbdb6844ab10e80213e815b07fea253..fad6eb521b0bd141062aedc2ea91e7c38e0ff527 100644 (file)
@@ -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>
     <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>
     </td>
    </tr>
    <tr>