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

<table width="80%" align="center"><tr><td width="50%">
<table width="100%" height="125" class="clientareatable" cellspacing="1"><tr class="clientareatableactive"><td style="padding:10px;">
<strong>{$clientsdetails.firstname} {$clientsdetails.lastname} {if $clientsdetails.companyname}({$clientsdetails.companyname}){/if}</strong><br />
{$clientsdetails.address1}, {$clientsdetails.address2}<br />
{$clientsdetails.city}, {$clientsdetails.state}, {$clientsdetails.postcode}<br />
{$clientsdetails.countryname}<br />
{$clientsdetails.email}<br /><br />
<a href="clientarea.php?action=details"><img src="images/details.gif" border="0" hspace="5" align="absmiddle" alt="" />{$LANG.clientareaupdateyourdetails}</a>{if $addfundsenabled} <a href="clientarea.php?action=addfunds"><img src="images/affiliates.gif" border="0" align="absmiddle" alt="" /> {$LANG.addfunds}</a>{/if}
</td></tr></table>
</td><td width="50%" align="center">
<table width="100%" height="125" class="clientareatable" cellspacing="1"><tr class="clientareatableactive"><td style="padding:10px;">
<strong>{$LANG.accountstats}</strong><br />
{$LANG.statsnumproducts}: <strong>{$clientsstats.productsnumactive}</strong> ({$clientsstats.productsnumtotal})<br />
{$LANG.statsnumdomains}: <strong>{$clientsstats.numactivedomains}</strong> ({$clientsstats.numdomains})<br />
{$LANG.statsnumtickets}: <strong>{$clientsstats.numtickets}</strong><br />
{$LANG.statsnumreferredsignups}: <strong>{$clientsstats.numaffiliatesignups}</strong><br />
{$LANG.statscreditbalance}: <strong>{$clientsstats.creditbalance}</strong><br />
{$LANG.statsdueinvoicesbalance}: <strong>{if $clientsstats.numdueinvoices>0}<font color="#cc0000">{/if}{$clientsstats.dueinvoicesbalance}{if $clientsstats.numdueinvoices>0}</font>{/if}</strong><br />
</td></tr></table>
</td></tr></table>

<p class="heading2"><img src="images/supporttickets.gif" border="0" hspace="5" align="absmiddle" alt="" />{$stats.numactivetickets} {$LANG.supportticketsopentickets} (<a href="submitticket.php">{$LANG.supportticketssubmitticket}</a>)</p>

<table align="center" style="width:90%" class="clientareatable" cellspacing="1">
<tr class="clientareatableheading"><td>{$LANG.supportticketsdate}</td><td>{$LANG.supportticketssubject}</td><td>{$LANG.supportticketsstatus}</td><td>{$LANG.supportticketsticketurgency}</td></tr>
{foreach key=num item=ticket from=$tickets}
<tr class="clientareatableactive"><td>{$ticket.date}</td><td><div align="left"><img src="images/article.gif" hspace="5" align="middle" alt="" /><a href="viewticket.php?tid={$ticket.tid}&amp;c={$ticket.c}">{if $ticket.unread}<strong>{/if}#{$ticket.tid} - {$ticket.subject}{if $ticket.unread}</strong>{/if}</a></div></td><td width="120">{$ticket.status}</td><td width="80">{$ticket.urgency}</td></tr>
{foreachelse}
<tr class="clientareatableactive"><td colspan="4">{$LANG.norecordsfound}</td></tr>
{/foreach}
</table>

<p class="heading2"><img src="images/invoices.gif" border="0" hspace="5" align="absmiddle" alt="" />{$stats.numdueinvoices} {$LANG.invoicesdue}</p>

<table align="center" style="width:90%" class="clientareatable" cellspacing="1">
<tr class="clientareatableheading"><td>{$LANG.invoicenumber}</td><td>{$LANG.invoicesdatecreated}</td><td>{$LANG.invoicesdatedue}</td><td>{$LANG.invoicestotal}</td><td>{$LANG.invoicesstatus}</td><td></td></tr>
{foreach key=num item=invoice from=$invoices}
<tr class="clientareatableactive"><td>{$invoice.invoicenum}</td><td>{$invoice.datecreated}</td><td>{$invoice.datedue}</td><td>{$currencysymbol}{$invoice.total} {$currency}</td><td>{$invoice.status}</td><td><a href="viewinvoice.php?id={$invoice.id}" target="_blank">{$LANG.invoicesview}</a></td></tr>
{foreachelse}
<tr class="clientareatableactive"><td colspan="6">{$LANG.norecordsfound}</td></tr>
{/foreach}
</table>