5b5c7ac27b2a791212b9a0020b417b67220f3acd
[phpfspot.git] / templates / single_photo.tpl
1 <!-- Single photo -->
2 <table>
3  <tr>
4   <td class="index_header" style="text-align: left;">
5    <b>Photo {$image_name}</b><br />
6    &nbsp;{$description}<br />
7   </td>
8   <td class="index_header" style="text-align: right;">
9    <a href="{$image_url_full}" target="_blank" onclick="click(this);">
10     <img src="resources/original.png" alt="original resolution" />
11    </a>
12    <img src="resources/information.png" alt="additional informations" />
13   </td>
14  </tr>
15  <tr>
16   <td>
17    <div id='single'>
18    <table>
19     <tr>
20      <td colspan="3">
21      { if $next_url == "" }
22       <a href="javascript:showPhotoIndex();" onclick="click(this);">
23      { else }
24       <a href="{$next_url}" onclick="click(this);"> 
25      { /if }
26        <img src="{$image_url}" width="{$width}" height="{$height}" alt="photo" />
27       </a>
28      </td>
29     </tr>
30     <tr>
31      <td style="text-align: left; width: 33%;">
32       { if $previous_url == "" }
33        <img src="resources/arrow_left_gray.png" alt="first photo reached" />
34       { else }
35       <a href="{$previous_url}" onclick="click(this);">
36        <img src="resources/arrow_left.png" alt="previous photo" />
37       </a>
38       { /if }
39      </td>
40      <td style="text-align: center; width: 33%;">
41       <a href="javascript:showPhotoIndex({$current});" onclick="click(this);">
42        <img src="resources/arrow_up.png" alt="photo index" />
43       </a>
44      </td>
45      <td style="text-align: right; width: 33%;">
46       { if $next_url == "" }
47        <img src="resources/arrow_right_gray.png" alt="last photo reached" />
48       { else }
49       <a href="{$next_url}" onclick="click(this);"> 
50        <img src="resources/arrow_right.png" alt="next photo" />
51       </a>
52       { /if}
53      </td>
54     </tr>
55    </table>
56    </div>
57   </td>
58   <td style="width: 150px; padding-top: 20px;">
59    <div id="photo_details">
60    { if $ExifMadeWith }
61    <u><img src="resources/camera.png" alt="camera icon" />&nbsp;Image taken with:</u><br />
62    {$ExifMadeWith}<br />
63    { /if }
64    { if $ExifMadeOn }
65    <u><img src="resources/date.png" alt="calendar icon" />&nbsp;Image made on:</u><br />
66    {$ExifMadeOn}<br />
67    { /if }
68    { if $ExifOrigResolution }
69    <u><img src="resources/image.png" alt="resolution icon" />&nbsp;Original resolution:</u><br />
70    {$ExifOrigResolution}<br />
71    { /if }
72    <u>Size:</u>&nbsp;{$ExifFileSize}<br />
73    { if $tags }
74     <br />
75     <u><img src="resources/small_available_tags.png" alt="available tags" />&nbsp;Tagged with:</u><br />
76     { foreach from=$tags key=id item=name }
77     <a class="smalltag" href="javascript:Tags('add', '{$id}');" onclick="click(this);" onclick="click(this);">{$name}</a><br />
78     { /foreach }
79    { /if }
80    <br />
81    { if $prev_img }
82     <u>Previous:</u><br />
83     <a href="{$previous_url}" onclick="click(this);">
84      <img src="phpfspot_img.php?idx={$prev_img}&amp;width={$mini_width}" /><br />
85     </a>
86    { /if}
87    { if $next_img }
88     <u>Next:</u><br />
89     <a href="{$next_url}" onclick="click(this);">
90      <img src="phpfspot_img.php?idx={$next_img}&amp;width={$mini_width}" /><br />
91     </a>
92    { /if}
93    </div>
94   </td>
95  </tr>
96 </table>
97 <!-- /Single photo -->