issue13, if user jumps into from an external link, immediatley display the photo...
[phpfspot.git] / templates / photo_index.tpl
index 28a933d808e39e1aaa67725a0007650cd37454e6..8111b1bad80719f0990cfe4ef55ebae27683e780 100644 (file)
@@ -21,7 +21,9 @@
       {/if}
      </td>
      <td class="index_header" style="text-align: right;">
-      <a href="{$extern_link}">Extern</a>
+      {if $extern_link }
+       <a href="{$extern_link}">Extern</a>
+      {/if} 
       <img src="resources/photo_index.png" alt="photo index" />
      </td>
     </tr>
@@ -39,7 +41,7 @@
       {if $images[row][col] }
       <div id="outter">
       <div id="inner">
-       <a href="javascript:showImage({$images[row][col]});" id="{$images[row][col]}">
+       <a href="javascript:showImage({$images[row][col]});" id="{$images[row][col]}" name="image{$img_id[row][col]}">
         <img class="thumb" id="{$images[row][col]}" src="phpfspot_img.php?idx={$images[row][col]}&amp;width={$width}" alt="thumb_{$images[row][col]}" width="{$img_width[row][col]}" height="{$img_height[row][col]}" />
        </a>
       </div>
@@ -58,7 +60,7 @@
  <tr>
   <td style="text-align: left; width: 32px;">
   { if $previous_url == "" }
-   &nbsp;
+    <img src="resources/arrow_left_gray.png" alt="first page reached" />
   { else }
    <a href="{$previous_url}">
     <img src="resources/arrow_left.png" alt="previous photo" />
@@ -74,7 +76,7 @@
   </td>
   <td style="text-align: right; width: 32px;">
   { if $next_url == "" }
-   &nbsp;
+    <img src="resources/arrow_right_gray.png" alt="last page reached" />
   { else }
    <a href="{$next_url}">
     <img src="resources/arrow_right.png" alt="next photo" />