This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/themes/default/blocks/affiliate/search_show.tpl
2011-05-03 09:49:01 +10:00

38 lines
2.0 KiB
Smarty

{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/search_show_pre.tpl'}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
{$method->exe_noauth($meth.0,'tpl_search_show')}
{foreach from=$search_show item=record}
{include file='file:../core/search_show_tr_record.tpl'}
<td><b>{$record.id}</b> <a href="?_page=account:view&amp;id={$record.account_id}">{$record.first_name} {$record.last_name}</a></td>
<td>{$record.stats_sessions}</td>
<td>{$record.stats_accounts}</td>
<td>{$list->format_currency($record.stats_invoices_amt,'')} ({$record.stats_invoices})</td>
<td>{$list->format_currency($record.stats_commissions,'')}</td>
<td>{$list->bool('',$record.status,'')}</td>
<td style="text-align: center;">
<a href="?_page=account:mail_one&amp;mail_account_id={$record.account_id}"><img src="themes/{$THEME_NAME}/images/icons/mail_16.gif" alt="Email Affiliate" title="{t}E-mail Affiliate{/t}" width="16" height="16" style="border: 0px;"/></a>
<a href="?_page=core:search&amp;module=account&amp;account_affiliate_id={$record.id}"><img src="themes/{$THEME_NAME}/images/icons/user_16.gif" alt="Referred Sessions" title="{t}Referred Sessions{/t}" width="16" height="16" style="border: 0px;"/></a>
<a href="?_page=core:search&amp;module=invoice&amp;invoice_affiliate_id={$record.id}"><img src="themes/{$THEME_NAME}/images/icons/calc_16.gif" alt="Referred Invoices" title="{t}Referred Invoices{/t}" width="16" height="16" style="border: 0px;"/></a>
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl' mail=true}
{/if}