issue59, thumbnail matrix is now also free off HTML tables
[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    {section name="row" loop=$rows step=1}
50     {section name="col" loop=$columns step=1}
51       {if $images[row][col] }
52       <div class="thumb" onmouseover="setBackGrdColor(this, 'mouseover');" onmouseout="setBackGrdColor(this, 'mouseout');" style="width: { $thumb_container_width }px; height: { $thumb_container_height }px;">
53        <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]}">
54         <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]}" />
55         <br />
56         {$img_name[row][col]}
57        </a>
58       </div>
59       {/if}
60     {/section}
61    {/section} 
62    <br class="clearboth" />
63   </td>
64  </tr>
65  <tr>
66   <td style="text-align: left; width: 33%;">
67   { if $previous_url == "" }
68    { if $count != 0 }
69     <img src="resources/arrow_left_gray.png" alt="first page reached" />
70    { /if }
71   { else }
72    <a href="{$previous_url}">
73     <img src="resources/arrow_left.png" alt="previous photo" />
74    </a>
75   { /if }
76   </td>
77   <td style="text-align: center; width: 33%;">
78   { if $page_selector == "" }
79    &nbsp;
80   { else }
81    {$page_selector}
82   { /if}
83   </td>
84   <td style="text-align: right; width: 33%;">
85   { if $next_url == "" }
86    { if $count != 0 }
87     <img src="resources/arrow_right_gray.png" alt="last page reached" />
88    { /if }
89   { else }
90    <a href="{$next_url}">
91     <img src="resources/arrow_right.png" alt="next photo" />
92    </a>
93   { /if}
94   </td>
95  </tr>
96 </table>
97 <script type="text/javascript">
98 <!--
99    preloadPhotos();
100 -->
101 </script>
102 <!-- /Photo Index -->