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