issue6, first implementation of paged photo index view
[phpfspot.git] / templates / photo_index.tpl
index a1e19a795bfabb619d2729c02cc596666c2143ed..36d095575297b6d652cd03591a65971febda0201 100644 (file)
@@ -18,7 +18,7 @@
    {/if}
   </td>
   <td class="index_header" style="text-align: right;">
-   <img src="resources/photo_index.png" />
+   <img src="resources/photo_index.png" alt="photo index" />
   </td>
  </tr>
  <tr>
@@ -33,7 +33,7 @@
       <div id="outter">
       <div id="inner">
        <a href="javascript:showImage({$images[row][col]});" id="{$images[row][col]}" class="bubble">
-        <img class="thumb" id="{$images[row][col]}" src="phpfspot_img.php?idx={$images[row][col]}&amp;width={$width}" />
+        <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>
       </div>
    </div>
   </td>
  </tr>
+ <tr>
+  <td style="text-align: left; width: 33%;">
+  { if $previous_url == "" }
+   &nbsp;
+  { else }
+   <a href="{$previous_url}">
+    <img src="resources/arrow_left.png" alt="previous photo" />
+   </a>
+  { /if }
+  </td>
+  <td style="text-align: right; width: 33%;">
+  { if $next_url == "" }
+   &nbsp;
+  { else }
+   <a href="{$next_url}">
+    <img src="resources/arrow_right.png" alt="next photo" />
+   </a>
+  { /if}
+  </td>
+ </tr>
 </table>
 <script type="text/javascript">
 <!--