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