ae0c62cc1a69bb99fd3b1920babdb9aba8b2f208
[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    <br />
26    Results are limited to a date within {$from_date} to {$to_date}.
27   {/if}
28  </div>
29  <div style="text-align: right">
30   {if $slideshow_link }
31    <a href="{$slideshow_link}" title="Slideshow" target="_blank"><img src="resources/slideshow.png" /></a>
32   {/if}
33   {if $extern_link }
34    <a href="{$extern_link}" title="Use this link to return to the current view"><img src="resources/link.png" /></a>
35   {/if} 
36   {if $export_link }
37    <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>
38   {/if}
39   {if $rss_link }
40    <a href="{$rss_link}" target="_blank" title="RSS feed"><img src="resources/rss.png" /></a>
41   {/if}
42  </div>
43 </div>
44
45 <div id="index">
46
47  {section name="thumb" loop=$thumbs step=1}
48
49   {if $images[thumb] }
50
51    <div class="thumb" onmouseover="setBackGrdColor(this, 'mouseover');" onmouseout="setBackGrdColor(this, 'mouseout');" style="width: { $thumb_container_width }px; height: { $thumb_container_height }px;">
52     <a href="javascript:showImage({$images[thumb]}, 'scrollup');" id="thumblink{$images[thumb]}" name="image{$img_id[thumb]}" class="thumblink" onclick="click(this);" title="{$img_title[thumb]}">
53      <img class="thumb" id="thumbimg{$images[thumb]}" src="phpfspot_img.php?idx={$images[thumb]}&amp;width={$width}" alt="thumb_{$images[thumb]}" width="{$img_width[thumb]}" height="{$img_height[thumb]}" />
54      <br />
55     {$img_name[thumb]}
56     </a>
57    </div>
58
59   {/if}
60
61  {/section} 
62
63 </div>
64 <br class="clearboth" />
65 <div style="width: 100%; margin-top: 20px;">
66
67  <!-- the right nav arrow -->
68  <div style="float: right; width: 40px; margin-right: 0px; padding-right: 10px;">
69  { if $next_url == "" }
70   { if $count != 0 }
71    <img src="resources/arrow_right_gray.png" alt="last page reached" />
72   { /if }
73  { else }
74   <a href="{$next_url}" id="next_link" title="click for the next page (right cursor)">
75    <img src="resources/arrow_right.png" alt="next photo" />
76   </a>
77  { /if}
78  </div>
79
80  <!-- the left nav arrow -->
81  <div style="float: left; margin: 0px; padding-left: 10px; width: 40px;">
82  { if $previous_url == "" }
83   { if $count != 0 }
84    <img src="resources/arrow_left_gray.png" alt="first page reached" />
85   { /if }
86  { else }
87   <a href="{$previous_url}" id="prev_link" title="click for the previous page (left cursor)">
88   <img src="resources/arrow_left.png" alt="previous photo" />
89   </a>
90  { /if }
91  </div>
92
93  <!-- the middle page selector -->
94  <div style="text-align: center;">
95  { if $page_selector != "" }
96   {$page_selector}
97  { /if}
98  </div>
99 </div>
100 <br class="clearboth" />
101 <script type="text/javascript">
102 <!--
103    preloadPhotos();
104 -->
105 </script>
106 <!-- /Photo Index -->