3 <!-- Header - displays count of matched photos and some link's -->
6 <div class="header_title">
10 {$count} image is the result for your search about "{$searchfor}".
12 {$count} images are the result for your search about "{$searchfor}".
16 {$count} image has been found for the selected tags.
18 {$count} images have been found for the selected tags.
22 {$count} image has been found.
24 {$count} images have been found.
27 {if $from_date && $to_date }
29 Results are limited to a date within {$from_date} to {$to_date}.
32 <div class="header_menu">
34 <a href="{$slideshow_link}" title="Slideshow" target="_blank"><img src="{$web_path}/resources/slideshow.png" /> Slideshow</a>
37 <a href="{$extern_link}" title="Use this link to return to the current view"><img src="{$web_path}/resources/link.png" /> External Link</a>
40 <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="{$web_path}/resources/export.png" /> Export</a>
43 <a href="{$rss_link}" target="_blank" title="RSS feed"><img src="{$web_path}/resources/rss.png" /> RSS-Feed</a>
48 <!-- if result of a tag-search is displayed, show the selected tags
49 with some small pictures in a bar. -->
53 <div class="tagresult"></div>
55 <div class="tagresulttags" style="float: left;">
58 <div class="tagresulttags">
63 <!-- the photo matrix itself -->
67 {section name="thumb" loop=$thumbs step=1}
71 <div class="thumb" onmouseover="setBackGrdColor(this, 'mouseover');" onmouseout="setBackGrdColor(this, 'mouseout');" style="width: { $thumb_container_width }px; height: { $thumb_container_height }px;">
72 { if $user_friendly_url }
73 <a href="{$web_path}/photoview/{$images[thumb]}" onclick="showPhoto({$images[thumb]}, 'scrollup'); return false;" id="thumblink{$images[thumb]}" name="image{$img_id[thumb]}" class="thumblink" onfocus="click(this);" title="{$img_title[thumb]}">
75 <a href="{$web_path}/index.php?mode=showp&id={$images[thumb]}" onclick="showPhoto({$images[thumb]}, 'scrollup'); return false;" id="thumblink{$images[thumb]}" name="image{$img_id[thumb]}" class="thumblink" onfocus="click(this);" title="{$img_title[thumb]}">
77 <img class="thumb" id="thumbimg{$images[thumb]}" width="{$img_width[thumb]}" height="{$img_height[thumb]}" src="{$web_path}/phpfspot_img.php?idx={$images[thumb]}&width={$width}" />
81 <!-- show lightbox eyes, if enabled -->
83 <a href="{$web_path}/phpfspot_img.php?idx={$images[thumb]}&width={$preview_width}" alt="thumb_{$images[thumb]}" rel="lightbox[photoidx]" title="Preview of {$img_fullname[thumb]}"><img src="{$web_path}/resources/eyes.png" /></a>
85 <!-- show F-Spot photo rating value, if available -->
86 { if $img_rating[thumb] }
88 {section name="rating" loop=$img_rating[thumb] step=1}
89 <img src="{$web_path}/resources/star.png" />
100 <div class="indexnavigation">
102 <!-- the right nav arrow -->
103 <div class="indexnavigationright">
104 { if $next_url == "" }
106 <img src="{$web_path}/resources/arrow_right_gray.png" alt="last page reached" />
109 <a href="{$next_url}" id="next_link" title="click for the next page (right cursor)">
110 <img src="{$web_path}/resources/arrow_right.png" alt="next photo" />
115 <!-- the left nav arrow -->
116 <div class="indexnavigationleft">
117 { if $previous_url == "" }
119 <img src="{$web_path}/resources/arrow_left_gray.png" alt="first page reached" />
122 <a href="{$previous_url}" id="prev_link" title="click for the previous page (left cursor)">
123 <img src="{$web_path}/resources/arrow_left.png" alt="previous photo" />
128 <!-- the middle page selector -->
129 <div class="indexnavigationcenter">
130 { if $page_selector != "" }
136 <script type="text/javascript" language="JavaScript">
140 // these few javascript lines will try to speed up loading all the photo
141 // thumbnails. An array of all photos to display will be built written
142 // by the smarty-template. The js-code will then loop through this array
143 // and invoke loading of each photo. Sadly this does not work good on all
148 var image_urls = new Array();
151 {section name="thumb" loop=$thumbs step=1}
153 image_urls[{counter}] = '{$web_path}/phpfspot_img.php?idx={$images[thumb]}&width={$width}';
154 last_thumb = {$images[thumb]};
158 preloadPhotos(image_urls);
162 // if browser is to far down the page, that he can't see the photo at all
163 // scroll it up so that at least the last photo becomes visisble.
168 // check where we are with the browser
169 if (window.pageYOffset) {
170 ywnd = window.pageYOffset;
171 } else if (document.body && document.body.scrollTop) {
172 ywnd = document.body.scrollTop;
174 // check the y-pos of the last thumbnail
175 if(thumbimg = document.getElementById('thumbimg' + last_thumb)) {
176 yimg = findPos(thumbimg,'top');
178 // if the browser-window is scrolled further then the last_thumb, scroll back
180 window.scrollTo(0, yimg-100);
188 <!-- /Photo Index -->