909922bd0fbd1b527dabb245a1a933cd398fdb2f
[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  {section name="thumb" loop=$thumbs step=1}
47   {if $images[thumb] }
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[thumb]});" id="{$images[thumb]}" name="image{$img_id[thumb]}" class="thumblink" onclick="click(this);" title="{$img_title[thumb]}">
50       <img class="thumb" id="{$images[thumb]}" src="phpfspot_img.php?idx={$images[thumb]}&amp;width={$width}" alt="thumb_{$images[thumb]}" width="{$img_width[thumb]}" height="{$img_height[thumb]}" />
51       <br />
52      {$img_name[thumb]}
53      </a>
54     </div>
55    {/if}
56  {/section} 
57 </div>
58 <br class="clearboth" />
59 <div style="width: 100%; margin-top: 20px;">
60
61  <!-- the right nav arrow -->
62  <div style="float: right; width: 40px; margin-right: 0px; padding-right: 10px;">
63  { if $next_url == "" }
64   { if $count != 0 }
65    <img src="resources/arrow_right_gray.png" alt="last page reached" />
66   { /if }
67  { else }
68   <a href="{$next_url}">
69    <img src="resources/arrow_right.png" alt="next photo" />
70   </a>
71  { /if}
72  </div>
73
74  <!-- the left nav arrow -->
75  <div style="float: left; margin: 0px; padding-left: 10px; width: 40px;">
76  { if $previous_url == "" }
77   { if $count != 0 }
78    <img src="resources/arrow_left_gray.png" alt="first page reached" />
79   { /if }
80  { else }
81   <a href="{$previous_url}">
82   <img src="resources/arrow_left.png" alt="previous photo" />
83   </a>
84  { /if }
85  </div>
86
87  <!-- the middle page selector -->
88  <div style="text-align: center;">
89  { if $page_selector != "" }
90   {$page_selector}
91  { /if}
92  </div>
93 </div>
94 <br class="clearboth" />
95 <script type="text/javascript">
96 <!--
97    preloadPhotos();
98 -->
99 </script>
100 <!-- /Photo Index -->