{include file="$gentemplates/$header_tpl"}
{strip}
	<div class="header">
		{$lang.mobile.photogallery}
	</div>
	<div id="mailbox_menu">
		<div>
			<span><a href="photogallery.php?sel=latest" class="unselected">{$lang.mobile.latest}</a></span>
			<span id="last"><a href="photogallery.php?sel=categories">{$lang.mobile.categories}</a></span>
		</div>
	</div>
	<div id="search_resulits">
	{if $uploads ne 'no_photos'}
	{foreach item=item from=$uploads}
		<div class="user_sr_block">
			<table cellpadding="0" cellspacing="0">
			<tr>
				<td valign="top"><div class="user_icon"><a href="{$item.view_link}"><img src="{$item.upload_path}" alt="" /></a></div></td>
				<td valign="top">
					<div class="photo_info">
						<div>{$lang.mobile.author}:&nbsp;<a href="viewprofile.php?id={$item.author_id}">{$item.author_login}</a></div>
						<div><b>{$lang.mobile.rating}:</b> {$item.rate}</div>
						<div><b>{$lang.mobile.views}:</b> {$item.views}</div>
						<div><a href="{$item.view_link}">{$lang.mobile.view}</a></div>
					</div>
				</td>
			</tr>
			</table>
		</div>
	{/foreach}

	{else}
	{$lang.mobile.photos_are_not_found}
	{/if}

	{if isset($gal_links)}
	<div id="pagination">
	{foreach item=item from=$gal_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>
	{/if}
	</div>
{/strip}
{include file="$gentemplates/$footer_tpl"}