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