9ac74585afaf38509d3bfb99e2815eb9f0a85376
[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 has been found for the selected tags
12        {else}
13         {$count} images have been found for the selected tags
14        {/if}
15       {else}
16        {if $count == 1}
17         {$count} image is the result for your search about "{$searchfor}"
18        {else}
19         {$count} images are the result for your search about "{$searchfor}"
20        {/if}
21       {/if}
22      </td>
23      <td class="index_header" style="text-align: right">
24       <form action="" onsubmit="setViewMode(document.getElementsByName('view')[0].options[document.getElementsByName('view')[0].selectedIndex].value); return false;">
25       {if $extern_link }
26        <a href="{$extern_link}" title="Use this link to return to the current view"><img src="resources/link.png" /></a>
27       {/if} 
28        <select name="view">
29         <option value="photos" selected="selected">Photos</option>
30         <option value="html">HTML source</option>
31         <option value="moinmoin">MoinMoin markup</option>
32        </select>
33        <input type="image" src="resources/doit.png" alt="Switch View" />
34       </form>
35      </td>
36     </tr>
37    </table>
38   </td>
39  </tr>
40  <tr>
41   <td colspan="3">
42    <div id="adinfo"></div>
43    <div id="matrix">
44    <table>
45    {section name="row" loop=$rows step=1}
46     <tr>
47     {section name="col" loop=$columns step=1}
48      <td class="thumb">
49       {if $images[row][col] }
50       <div id="inner" onmouseover="setBackGrdColor(this, 'mouseover');" onmouseout="setBackGrdColor(this, 'mouseout');">
51        <a href="javascript:showImage({$images[row][col]});" id="{$images[row][col]}" name="image{$img_id[row][col]}" class="thumblink" onclick="click(this);">
52         <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]}" />
53         <br />
54         {$img_name[row][col]}
55        </a>
56       </div>
57       {else}
58        &nbsp;
59       {/if}
60      </td>
61     {/section}
62     </tr>
63    {/section} 
64    </table>
65    </div>
66   </td>
67  </tr>
68  <tr>
69   <td style="text-align: left; width: 32px;">
70   { if $previous_url == "" }
71     <img src="resources/arrow_left_gray.png" alt="first page reached" />
72   { else }
73    <a href="{$previous_url}">
74     <img src="resources/arrow_left.png" alt="previous photo" />
75    </a>
76   { /if }
77   </td>
78   <td style="text-align: center;">
79   { if $page_selector == "" }
80    &nbsp;
81   { else }
82    {$page_selector}
83   { /if}
84   </td>
85   <td style="text-align: right; width: 32px;">
86   { if $next_url == "" }
87     <img src="resources/arrow_right_gray.png" alt="last page reached" />
88   { else }
89    <a href="{$next_url}">
90     <img src="resources/arrow_right.png" alt="next photo" />
91    </a>
92   { /if}
93   </td>
94  </tr>
95 </table>
96 <!-- /Photo Index -->