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