		<div class="bigheader">
			<h2>{$LANG.clientareaemails}</h2>
		</div><!-- .bigheader -->

<p>{$LANG.clientareaemailsintrotext}</p>

<p>{$numproducts} {$LANG.recordsfound}, {$LANG.page} {$pagenumber} {$LANG.pageof} {$totalpages}</p>


<div class="table-responsive table-grey">
<table>
  <tr>
    <th width="30%">{$LANG.clientareaemailsdate}</th>
    <th width="70%">{$LANG.clientareaemailssubject}</th>
  </tr>
  {foreach key=num item=email from=$emails}
  <tr>
    <td>{$email.date}</td>
    <td><a href="#" onclick="window.open('viewemail.php?id={$email.id}','','width=650,height=400,scrollbars=yes');return false">{$email.subject}</a></td>
  </tr>
  {foreachelse}
  <tr>
    <td colspan="2" align="center">{$LANG.norecordsfound}</td>
  </tr>
  {/foreach}
</table>
</div>

<ul class="navsub floatleft">
	<li><a href="clientarea.php?action=emails&itemlimit=10">10</a></li>
	<li><a href="clientarea.php?action=emails&itemlimit=25">25</a></li>
	<li><a href="clientarea.php?action=emails&itemlimit=50">50</a></li>
	<li><a href="clientarea.php?action=emails&itemlimit=100">100</a></li>
	<li><a href="clientarea.php?action=emails&itemlimit=all">{$LANG.all}</a></li>
</ul>


<ul class="navsub floatright">
	{if $prevpage}<li><a href="clientarea.php?action=emails&amp;page={$prevpage}">&laquo; {$LANG.previouspage}</a></li>{/if}
	{if $nextpage}<li><a href="clientarea.php?action=emails&amp;page={$nextpage}">{$LANG.nextpage} &raquo;</a></li>{/if}
</ul>			

<div class="clear">&nbsp;</div>