e4ed521e114de66baca32d3817c999dc47c33081
[phpfspot.git] / 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="index_header">
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 $from_date }
16        {if $count == 1}
17         {$count} image is the result for your search between {$from_date} to {$to_date}
18        {else}
19         {$count} images are the result for your search between {$from_date} to {$to_date}
20        {/if}
21       {elseif $tag_result}
22        {if $count == 1}
23         {$count} image has been found for the selected tags
24        {else}
25         {$count} images have been found for the selected tags
26        {/if}
27       {else}
28        {if $count == 1}
29         {$count} image has been found
30        {else}
31         {$count} images have been found
32        {/if}
33       {/if}
34      </td>
35      <td class="index_header" style="text-align: right">
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      </td>
41     </tr>
42    </table>
43   </td>
44  </tr>
45  <tr>
46   <td colspan="3">
47    <div id="adinfo"></div>
48    <div id="matrix">
49    <table>
50    {section name="row" loop=$rows step=1}
51     <tr>
52     {section name="col" loop=$columns step=1}
53      <td class="thumb">
54       {if $images[row][col] }
55       <div id="inner" onmouseover="setBackGrdColor(this, 'mouseover');" onmouseout="setBackGrdColor(this, 'mouseout');">
56        <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]}">
57         <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]}" />
58         <br />
59         {$img_name[row][col]}
60        </a>
61       </div>
62       {else}
63        &nbsp;
64       {/if}
65      </td>
66     {/section}
67     </tr>
68    {/section} 
69    </table>
70    </div>
71   </td>
72  </tr>
73  <tr>
74   <td style="text-align: left; width: 33%;">
75   { if $previous_url == "" }
76    { if $count != 0 }
77     <img src="resources/arrow_left_gray.png" alt="first page reached" />
78    { /if }
79   { else }
80    <a href="{$previous_url}">
81     <img src="resources/arrow_left.png" alt="previous photo" />
82    </a>
83   { /if }
84   </td>
85   <td style="text-align: center; width: 33%;">
86   { if $page_selector == "" }
87    &nbsp;
88   { else }
89    {$page_selector}
90   { /if}
91   </td>
92   <td style="text-align: right; width: 33%;">
93   { if $next_url == "" }
94    { if $count != 0 }
95     <img src="resources/arrow_right_gray.png" alt="last page reached" />
96    { /if }
97   { else }
98    <a href="{$next_url}">
99     <img src="resources/arrow_right.png" alt="next photo" />
100    </a>
101   { /if}
102   </td>
103  </tr>
104 </table>
105 <!-- /Photo Index -->