d83456803e30aa560b29ec397c2c23f975477e09
[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     <a href="phpfspot_img.php?idx={$images[thumb]}&amp;width={$preview_width}" alt="thumb_{$images[thumb]}" rel="lightbox[photoidx]" title="Preview of {$img_fullname[thumb]}"><img src="resources/eyes.png" /></a>
58    </div>
59
60   {/if}
61
62  {/section} 
63
64 </div>
65 <br class="clearboth" />
66 <div style="width: 100%; margin-top: 20px;">
67
68  <!-- the right nav arrow -->
69  <div style="float: right; width: 40px; margin-right: 0px; padding-right: 10px;">
70  { if $next_url == "" }
71   { if $count != 0 }
72    <img src="resources/arrow_right_gray.png" alt="last page reached" />
73   { /if }
74  { else }
75   <a href="{$next_url}" id="next_link" title="click for the next page (right cursor)">
76    <img src="resources/arrow_right.png" alt="next photo" />
77   </a>
78  { /if}
79  </div>
80
81  <!-- the left nav arrow -->
82  <div style="float: left; margin: 0px; padding-left: 10px; width: 40px;">
83  { if $previous_url == "" }
84   { if $count != 0 }
85    <img src="resources/arrow_left_gray.png" alt="first page reached" />
86   { /if }
87  { else }
88   <a href="{$previous_url}" id="prev_link" title="click for the previous page (left cursor)">
89   <img src="resources/arrow_left.png" alt="previous photo" />
90   </a>
91  { /if }
92  </div>
93
94  <!-- the middle page selector -->
95  <div style="text-align: center;">
96  { if $page_selector != "" }
97   {$page_selector}
98  { /if}
99  </div>
100 </div>
101 <br class="clearboth" />
102 <script type="text/javascript">
103 <!--
104    preloadPhotos();
105 -->
106 </script>
107 <!-- /Photo Index -->