issue50, date range _within_ not _between_
[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="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 $extern_link }
34        <a href="{$extern_link}" title="Use this link to return to the current view"><img src="resources/link.png" /></a>
35       {/if} 
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      </td>
38     </tr>
39    </table>
40   </td>
41  </tr>
42  <tr>
43   <td colspan="3">
44    <div id="adinfo"></div>
45    <div id="matrix">
46    <table>
47    {section name="row" loop=$rows step=1}
48     <tr>
49     {section name="col" loop=$columns step=1}
50      <td class="thumb">
51       {if $images[row][col] }
52       <div id="inner" onmouseover="setBackGrdColor(this, 'mouseover');" onmouseout="setBackGrdColor(this, 'mouseout');">
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       {else}
60        &nbsp;
61       {/if}
62      </td>
63     {/section}
64     </tr>
65    {/section} 
66    </table>
67    </div>
68   </td>
69  </tr>
70  <tr>
71   <td style="text-align: left; width: 33%;">
72   { if $previous_url == "" }
73    { if $count != 0 }
74     <img src="resources/arrow_left_gray.png" alt="first page reached" />
75    { /if }
76   { else }
77    <a href="{$previous_url}">
78     <img src="resources/arrow_left.png" alt="previous photo" />
79    </a>
80   { /if }
81   </td>
82   <td style="text-align: center; width: 33%;">
83   { if $page_selector == "" }
84    &nbsp;
85   { else }
86    {$page_selector}
87   { /if}
88   </td>
89   <td style="text-align: right; width: 33%;">
90   { if $next_url == "" }
91    { if $count != 0 }
92     <img src="resources/arrow_right_gray.png" alt="last page reached" />
93    { /if }
94   { else }
95    <a href="{$next_url}">
96     <img src="resources/arrow_right.png" alt="next photo" />
97    </a>
98   { /if}
99   </td>
100  </tr>
101 </table>
102 <script type="text/javascript">
103 <!--
104    preloadPhotos();
105 -->
106 </script>
107 <!-- /Photo Index -->