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