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