Location: PHPKode > projects > Jarida > jarida_1.0/templates/default/photo.tpl
<table cellspacing="2px" cellpadding="3px" width="100%">
{if !$smarty.get.id}
{section name=photos loop=$photos}
<tr class="{cycle values="photo_title, photo_row2"}"><td colspan="2">
{$photos[photos].title|capitalize}</td></tr>
<tr class="{cycle values="photo_title, photo_row2"}"><td>
{html_image file="img/upload/`$photos[photos].thumb`" href="`$smarty.server.SCRIPT_NAME`?id=`$photos[photos].id`" border="0"}
</td>
<td>{$photos[photos].description|nl2br}</td>
</tr>
{/section}
<tr><td colspan="2" class="photo_nav">
{if $nav.prev}
{html_image file="templates/default/prev.png" border="0" href="`$nav.prev`" align="middle"}&nbsp;
{/if}
{$nav.nav}
{if $nav.next}
&nbsp;{html_image file="templates/default/next.png" border="0" href="`$nav.next`" align="middle"}
{/if}
</td></tr>
</table>
{/if}


{if $smarty.get.id}
<tr class="photo_title"><td>
{$photo.title|capitalize}
</td></tr>
<tr class="photo_pic"><td>
{html_image file="img/upload/`$photo.file`" alt="`$photo.title`" title="`$photo.title`" width="`$photo.dimensions.width`" height="`$photo.dimensions.height`"}
</td></tr>
<tr class="photo_description"><td>
{$photo.description|nl2br}
</td></tr>
<tr><td class="photo_pic">
<a href="{$smarty.server.SCRIPT_NAME}">{$lang.photo_back_to_gall}</a>
</td></tr>
<tr><td>&nbsp;</td></tr>
{section name=comments loop=$comments}
<tr><td class="comment_title">
{$comments[comments].title}
</td></tr>
<tr><td class="comment_date">
{if $comments[comments].web}
<a href="{$comments[comments].web}" target="_blank">{$comments[comments].name}</a>
{else}
{$comments[comments].name}
{/if}
&nbsp; :: &nbsp; {$comments[comments].date|date_format:"%b %e, %Y :: %T"}
</td></tr>
<tr><td class="comment_body">
{$comments[comments].body|nl2br}
</td></tr>
{/section}
<tr><td>&nbsp;</td><tr>
</table>
<div class="comment_head">{$lang.comment_head}</div>
<table width="100%">
<form name="comment_form" id="comment_form" method="post" action="./comment.php">
<tr><td class="form_label">{$lang.comment_name}</td>
<td class="form_input"><input type="text" name="name" size="50" /></td></tr>
<tr><td class="form_label">{$lang.comment_web}</td>
<td class="form_input"><input type="text" name="web" size="50" /></td></tr>
<tr><td class="form_label">{$lang.comment_title}</td>
<td class="form_input"><input type="text" name="title" size="50" /></td></tr>
<tr><td class="form_label">{$lang.comment_body}</td>
<td class="form_input"><textarea name="body" cols="50" rows="15"></textarea></td></tr>
<input type="hidden" name="id" value="{$smarty.get.id}" />
<input type="hidden" name="type" value="photo" />
<tr><td colspan="2" align="center"><input type="submit" name="submit" value="{$lang.submit}" />
<p>{section name=smilies loop=$smilies}
<img border="0" src="./img/{$smilies[smilies].file}" alt="{$smilies[smilies].code}" 
title="{$smilies[smilies].code}" onClick="writeImgTag('comment_form','{$smilies[smilies].code}')"
style="cursor:pointer " />
{/section}
</p></td></tr>
</form>
</table>

{/if}
Return current item: Jarida