{include file="$gentemplates/$header_tpl"}
{strip}
	<div class="header">
	{$data.login}&nbsp;{$lang.mobile.user_photos}&nbsp;:&nbsp;{$data.num_items}&nbsp;{$lang.mobile.total}
	</div>
	<div id="search_resulits">
	{if $data.photo ne 'no_photos'}
	{foreach item=item from=$data.photo}
		<div class="user_sr_block">
			<table cellpadding="0" cellspacing="0">
			<tr>
				<td valign="top"><div class="user_icon"><a href="viewprofile.php?sel=viewphoto&id={$id}&photo_id={$item.id}&page={$data.page}"><img src="{$item.thumb_file}" alt="" /></a></div></td>
				<td valign="top">
					<div class="photo_info">
						<div><b>{$lang.mobile.rating}:</b> {$item.gallery_rate}</div>
						<div><b>{$lang.mobile.views}:</b> {$item.views}</div>
						<div>{if $item.user_comment ne ''}<b>{$lang.mobile.comments}:</b> {$item.user_comment}{/if}</div>
						<div><a href="viewprofile.php?sel=viewphoto&id={$id}&photo_id={$item.id}&page={$data.page}">{$lang.mobile.view}</a></div>
					</div>
				</td>
			</tr>
			</table>
		</div>
	{/foreach}
	{if isset($photos_links)}
	<div id="pagination">
	{foreach item=item from=$photos_links}
		<div class="link">{if $item.selected}<span>{else}<a href="{$item.link}">{/if}{$item.name}{if $item.selected}</span>{else}</a>{/if}</div>
	{/foreach}
		<div style="clear: both;"></div>
	</div>
	{/if}
	{else}
	{$lang.mobile.photos_are_not_found}
	{/if}
	<br>
	<input type="button" class="button" onclick="location.href='viewprofile.php?id={$id}'" value="{$lang.mobile.back_to_user_homepage}">
	</div>
{/strip}
{include file="$gentemplates/$footer_tpl"}