fix spelling in welcome.tpl
[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]}" width="{$img_width[thumb]}" height="{$img_height[thumb]}" />
54      <br />
55     {$img_name[thumb]}
56     </a>
57     { if $use_lightbox }
58     <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>
59     { /if }
60    </div>
61
62   {/if}
63
64  {/section} 
65
66 </div>
67 <br class="clearboth" />
68 <div style="width: 100%; margin-top: 20px;">
69
70  <!-- the right nav arrow -->
71  <div style="float: right; width: 40px; margin-right: 0px; padding-right: 10px;">
72  { if $next_url == "" }
73   { if $count != 0 }
74    <img src="resources/arrow_right_gray.png" alt="last page reached" />
75   { /if }
76  { else }
77   <a href="{$next_url}" id="next_link" title="click for the next page (right cursor)">
78    <img src="resources/arrow_right.png" alt="next photo" />
79   </a>
80  { /if}
81  </div>
82
83  <!-- the left nav arrow -->
84  <div style="float: left; margin: 0px; padding-left: 10px; width: 40px;">
85  { if $previous_url == "" }
86   { if $count != 0 }
87    <img src="resources/arrow_left_gray.png" alt="first page reached" />
88   { /if }
89  { else }
90   <a href="{$previous_url}" id="prev_link" title="click for the previous page (left cursor)">
91   <img src="resources/arrow_left.png" alt="previous photo" />
92   </a>
93  { /if }
94  </div>
95
96  <!-- the middle page selector -->
97  <div style="text-align: center;">
98  { if $page_selector != "" }
99   {$page_selector}
100  { /if}
101  </div>
102 </div>
103 <br class="clearboth" />
104 <script type="text/javascript" language="JavaScript">
105 <!--
106    { counter start=-1 }
107
108    var current;
109    var image_urls = new Array();
110
111    {section name="thumb" loop=$thumbs step=1}
112       {if $images[thumb] }
113          image_urls[{counter}] = 'phpfspot_img.php?idx={$images[thumb]}&width={$width}';
114       {/if}
115    {/section}
116
117    preloadPhotos(image_urls);
118 -->
119 </script>
120 <!-- /Photo Index -->