issue59, remove HTML table from main skeleton
[phpfspot.git] / themes / default / templates / photo_index.tpl
1 <!-- Photo Index -->
2 <div class="content_title" style="float: left;">
3  <b>Photo Index</b>
4  {if $searchfor }
5   {if $count == 1}
6    {$count} image is the result for your search about "{$searchfor}".
7   {else}
8    {$count} images are the result for your search about "{$searchfor}".
9   {/if}
10  {elseif $tag_result}
11   {if $count == 1}
12    {$count} image has been found for the selected tags.
13   {else}
14    {$count} images have been found for the selected tags.
15   {/if}
16  {else}
17   {if $count == 1}
18    {$count} image has been found.
19   {else}
20    {$count} images have been found.
21   {/if}
22  {/if}
23  {if $from_date && $to_date }
24   Results are limited to a date within {$from_date} to {$to_date}.
25  {/if}
26 </div>
27 <div class="index_header" style="text-align: right">
28  {if $slideshow_link }
29   <a href="{$slideshow_link}" title="Slideshow" target="_blank"><img src="resources/slideshow.png" /></a>
30  {/if}
31  {if $extern_link }
32   <a href="{$extern_link}" title="Use this link to return to the current view"><img src="resources/link.png" /></a>
33  {/if} 
34  {if $export_link }
35   <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>
36  {/if}
37  {if $rss_link }
38   <a href="{$rss_link}" target="_blank" title="RSS feed"><img src="resources/rss.png" /></a>
39  {/if}
40 </div>
41
42 <div id="matrix">
43  {section name="row" loop=$rows step=1}
44   {section name="col" loop=$columns step=1}
45    {if $images[row][col] }
46     <div class="thumb" onmouseover="setBackGrdColor(this, 'mouseover');" onmouseout="setBackGrdColor(this, 'mouseout');" style="width: { $thumb_container_width }px; height: { $thumb_container_height }px;">
47      <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]}">
48       <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]}" />
49       <br />
50      {$img_name[row][col]}
51      </a>
52     </div>
53    {/if}
54   {/section}
55  {/section} 
56 </div>
57 <br class="clearboth" />
58 <div style="width: 100%; margin-top: 20px;">
59  <div style="float: left; margin: 0px; padding-left: 10px; width: 40px;">
60  { if $previous_url == "" }
61   { if $count != 0 }
62    <img src="resources/arrow_left_gray.png" alt="first page reached" />
63   { /if }
64  { else }
65   <a href="{$previous_url}">
66   <img src="resources/arrow_left.png" alt="previous photo" />
67   </a>
68  { /if }
69  </div>
70  <div style="float: left; margin: 0px;">
71  { if $page_selector != "" }
72   {$page_selector}
73  { /if}
74  </div>
75  <div style="width: 40px; margin-right: 0px; padding-right: 10px;">
76  { if $next_url == "" }
77   { if $count != 0 }
78    <img src="resources/arrow_right_gray.png" alt="last page reached" />
79   { /if }
80  { else }
81   <a href="{$next_url}">
82    <img src="resources/arrow_right.png" alt="next photo" />
83   </a>
84  { /if}
85  </div>
86 </div>
87 <br class="clearboth" />
88 <script type="text/javascript">
89 <!--
90    preloadPhotos();
91 -->
92 </script>
93 <!-- /Photo Index -->