{include file="$gentemplates/$header_tpl"}
{strip}
	<div class="header">{$lang.mobile.my_mailbox}</div>
	{if $error}
	<div class="error_msg">*&nbsp;{$error}</div>
	{/if}
	<div id="mailbox_menu">
		<div>
			<span><a href="{$form.inbox_link}" {if $mailbox_menu_sel ne 'inbox'}class="unselected"{/if}>{$lang.mobile.inbox}</a></span>
			<span><a href="{$form.outbox_link}" {if $mailbox_menu_sel ne 'outbox'}class="unselected"{/if}>{$lang.mobile.sent}</a></span>
			<span id="last"><a href="{$form.write_link}" {if $mailbox_menu_sel ne 'new'}class="unselected"{/if}>{$lang.mobile.new_message}</a></span>
		</div>
	</div>
	<div id="maillist">
	{section loop=$maillist name=m}
	<div class="mail_row{if $is_iphone ne 1}{$maillist[m].type}{/if}" id="">
		<div class="mail_row_wrap">
		<table cellpadding="0" cellspacing="0" width="100%">
		<tr>
			<td width="36"><img src="{$site_root}{$template_root}/images/mobile/{if $is_iphone eq 1}iphone/mailbox_{/if}mail_{$maillist[m].new}.png" alt="" /></td>
			<td width="120" style="padding-left: 5px;"><span class="maillist_read_weight{$maillist[m].new}">{$maillist[m].from}</span></td>
			<td style="padding-left: 5px;"><a href="{$maillist[m].read_link}" class="maillist_read_weight{$maillist[m].new}">{$maillist[m].subject}</a></td>
			{if $is_iphone eq 1}
			<td width="11"><img src="{$site_root}{$template_root}/images/mobile/iphone/mailbox_list_btn.png" alt=""/></td>
			{/if}
		</tr>
		</table>
		</div>
	</div>
	{/section}
	{if $links}
	<div id="pagination">
	{foreach item=item from=$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}
	</div>
{/strip}
{include file="$gentemplates/$footer_tpl"}