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