issue13, first try of external links, this time for photo index
[phpfspot.git] / templates / photo_index.tpl
1 <!-- Image Matrix -->
2 <table>
3  <tr>
4   <td class="index_header">
5    <b>Photo Index,</b>
6    {if ! $searchfor }
7     {if $count == 1}
8      {$count} image has been found for the selected tags
9     {else}
10       {$count} images have been found for the selected tags
11     {/if}
12    {else}
13     {if $count == 1}
14      {$count} image is the result for your search about "{$searchfor}"
15     {else}
16      {$count} images are the result for your search about "{$searchfor}"
17     {/if}
18    {/if}
19   </td>
20   <td class="index_header" style="text-align: right;">
21    <a href="{$extern_link}">Extern</a>
22    <img src="resources/photo_index.png" alt="photo index" />
23   </td>
24  </tr>
25  <tr>
26   <td colspan="2">
27    <div id="matrix">
28    <table>
29    {section name="row" loop=$rows step=1}
30     <tr>
31     {section name="col" loop=$columns step=1}
32      <td class="thumb">
33       {if $images[row][col] }
34       <div id="outter">
35       <div id="inner">
36        <a href="javascript:showImage({$images[row][col]});" id="{$images[row][col]}">
37         <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]}" />
38        </a>
39       </div>
40       </div>
41       {else}
42        &nbsp;
43       {/if}
44      </td>
45     {/section}
46     </tr>
47    {/section} 
48    </table>
49    </div>
50   </td>
51  </tr>
52  <tr>
53   <td style="text-align: left; width: 33%;">
54   { if $previous_url == "" }
55    &nbsp;
56   { else }
57    <a href="{$previous_url}">
58     <img src="resources/arrow_left.png" alt="previous photo" />
59    </a>
60   { /if }
61   </td>
62   <td style="text-align: right; width: 33%;">
63   { if $next_url == "" }
64    &nbsp;
65   { else }
66    <a href="{$next_url}">
67     <img src="resources/arrow_right.png" alt="next photo" />
68    </a>
69   { /if}
70   </td>
71  </tr>
72 </table>
73 <!-- /Image Matrix -->