issue52, check if phpfspot.db is writeable
[phpfspot.git] / templates / single_photo.tpl
index 527584368ef43842cc6f646981c9ce328391c587..bb8c9179e2599caa7aaf03e9504135aa08ae5904 100644 (file)
@@ -1,11 +1,22 @@
 <!-- Single photo -->
 <table>
  <tr>
-  <td class="photo_name" style="text-align: left;">
+  <td class="content_title" style="text-align: left;">
    <b>Photo {$image_name}</b><br />
-   &nbsp;{$description}<br />
+   {if $photo_count > 0}
+    {$photo_number} of {$photo_count}
+    {if $photo_count == 1}
+     Photo
+    {else}
+     Photos
+    {/if}
+    {if $description}
+     &nbsp;{$description}<br />
+    {/if}
+   {/if}
   </td>
   <td class="index_header" style="text-align: right;">
+   <a href="javascript:autoBrowse();"><img src="resources/slideshow.png" /></a>
    {if $extern_link }
     <a href="{$extern_link}" title="Use this link to return to the current view"><img src="resources/link.png" /></a>
    {/if}
@@ -48,7 +59,7 @@
       { if $next_url == "" }
        <img src="resources/arrow_right_gray.png" alt="last photo reached" />
       { else }
-      <a href="{$next_url}" onclick="click(this);"> 
+      <a href="{$next_url}" onclick="click(this);" id="next_img" 
        <img src="resources/arrow_right.png" alt="next photo" />
       </a>
       { /if}
@@ -88,7 +99,7 @@
    { /if}
    { if $next_img }
     <u><img src="resources/photo.png" alt="photo icon" />&nbsp;Next:</u><br />
-    <a href="{$next_url}" onclick="click(this);">
+    <a href="{$next_url}" onclick="click(this);" id="next_link">
      <img src="phpfspot_img.php?idx={$next_img}&amp;width={$mini_width}" /><br />
     </a>
    { /if}