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