issue59, a object 'matrix' is necessary so JS-code can find out whether photo index...
[phpfspot.git] / themes / default / templates / photo_index.tpl
1 <!-- Photo Index -->
2 <table>
3  <tr>
4   <td colspan="3">
5    <table style="width: 100%;">
6     <tr>
7      <td class="content_title">
8       <b>Photo Index</b>
9       {if $searchfor }
10        {if $count == 1}
11         {$count} image is the result for your search about "{$searchfor}".
12        {else}
13         {$count} images are the result for your search about "{$searchfor}".
14        {/if}
15       {elseif $tag_result}
16        {if $count == 1}
17         {$count} image has been found for the selected tags.
18        {else}
19         {$count} images have been found for the selected tags.
20        {/if}
21       {else}
22        {if $count == 1}
23         {$count} image has been found.
24        {else}
25         {$count} images have been found.
26        {/if}
27       {/if}
28       {if $from_date && $to_date }
29        Results are limited to a date within {$from_date} to {$to_date}.
30       {/if}
31      </td>
32      <td class="index_header" style="text-align: right">
33       {if $slideshow_link }
34        <a href="{$slideshow_link}" title="Slideshow" target="_blank"><img src="resources/slideshow.png" /></a>
35       {/if}
36       {if $extern_link }
37        <a href="{$extern_link}" title="Use this link to return to the current view"><img src="resources/link.png" /></a>
38       {/if} 
39       <a href="{$export_link}" target="_blank" title="this will open a new browser window where you can export this page in several formats"><img src="resources/export.png" /></a>
40       <a href="{$rss_link}" target="_blank" title="RSS feed"><img src="resources/rss.png" /></a>
41      </td>
42     </tr>
43    </table>
44   </td>
45  </tr>
46  <tr>
47   <td colspan="3" style="width: 100%;">
48    <div id="adinfo"></div>
49    <div id="matrix">
50    {section name="row" loop=$rows step=1}
51     {section name="col" loop=$columns step=1}
52       {if $images[row][col] }
53       <div class="thumb" onmouseover="setBackGrdColor(this, 'mouseover');" onmouseout="setBackGrdColor(this, 'mouseout');" style="width: { $thumb_container_width }px; height: { $thumb_container_height }px;">
54        <a href="javascript:showImage({$images[row][col]});" id="{$images[row][col]}" name="image{$img_id[row][col]}" class="thumblink" onclick="click(this);" title="{$img_title[row][col]}">
55         <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]}" />
56         <br />
57         {$img_name[row][col]}
58        </a>
59       </div>
60       {/if}
61     {/section}
62    {/section} 
63    </div>
64    <br class="clearboth" />
65   </td>
66  </tr>
67  <tr>
68   <td style="text-align: left; width: 33%;">
69   { if $previous_url == "" }
70    { if $count != 0 }
71     <img src="resources/arrow_left_gray.png" alt="first page reached" />
72    { /if }
73   { else }
74    <a href="{$previous_url}">
75     <img src="resources/arrow_left.png" alt="previous photo" />
76    </a>
77   { /if }
78   </td>
79   <td style="text-align: center; width: 33%;">
80   { if $page_selector == "" }
81    &nbsp;
82   { else }
83    {$page_selector}
84   { /if}
85   </td>
86   <td style="text-align: right; width: 33%;">
87   { if $next_url == "" }
88    { if $count != 0 }
89     <img src="resources/arrow_right_gray.png" alt="last page reached" />
90    { /if }
91   { else }
92    <a href="{$next_url}">
93     <img src="resources/arrow_right.png" alt="next photo" />
94    </a>
95   { /if}
96   </td>
97  </tr>
98 </table>
99 <script type="text/javascript">
100 <!--
101    preloadPhotos();
102 -->
103 </script>
104 <!-- /Photo Index -->