2009-08-03 04:10:16 +00:00
|
|
|
{assign var=meth value=':'|explode:$VAR._page}
|
|
|
|
<!-- {$meth.0}:{$meth.1} -->
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
{$method->exe($meth.0,$meth.1)}
|
|
|
|
{if ($method->result == false)}
|
|
|
|
{$block->display('core:method_error')}
|
|
|
|
{else}
|
|
|
|
{include file='file:../core/view_pre.tpl'}
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
<!-- Display the field validation -->
|
|
|
|
{if $form_validation}
|
|
|
|
{$block->display('core:alert_fields')}
|
|
|
|
{/if}
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
<!-- Display each record -->
|
|
|
|
<form id="view" method="post" action="" enctype="multipart/form-data">
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
|
|
|
<tr valign="top">
|
|
|
|
<td class="table_heading">{osb f=tt}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="65%" class="row1">
|
|
|
|
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="35%">{translate module=affiliate_commission}field_date_orig{/translate}</td>
|
|
|
|
<td width="65%">{$list->date_time($affiliate_commission.date_orig)}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="35%">{translate module=affiliate_commission}field_date_begin{/translate}</td>
|
|
|
|
<td width="65%">
|
|
|
|
{if $affiliate_commission.date_begin > 0}
|
|
|
|
{$list->date($affiliate_commission.date_begin)}
|
|
|
|
{else}
|
|
|
|
---
|
|
|
|
{/if}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="35%">{translate module=affiliate_commission}field_date_end{/translate}</td>
|
|
|
|
<td width="65%">{$list->date($affiliate_commission.date_end)}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="35%">{translate module=affiliate_commission}field_commissions{/translate}</td>
|
|
|
|
<td width="65%">
|
|
|
|
{if $affiliate_commission.commissions > 0}
|
|
|
|
{$list->format_currency($affiliate_commission.commissions,'')}
|
|
|
|
{else}
|
|
|
|
0
|
|
|
|
{/if}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="35%">{translate module=affiliate_commission}field_status{/translate}</td>
|
|
|
|
<td width="65%">{$list->bool('affiliate_commission_status',$affiliate_commission.status,'form_menu')}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="35%">{translate module=affiliate_commission}field_notes_admin{/translate}</td>
|
|
|
|
<td width="65%"><textarea name="affiliate_commission_notes_admin" cols="40" rows="5" >{$affiliate_commission.notes_admin}</textarea></td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="35%">{translate module=affiliate_commission}field_notes_affiliate{/translate}</td>
|
|
|
|
<td width="65%"><textarea name="affiliate_commission_notes_affiliate" cols="40" rows="5" >{$affiliate_commission.notes_affiliate}</textarea></td>
|
|
|
|
</tr>
|
|
|
|
<tr class="row1" valign="middle" align="left">
|
|
|
|
<td width="65%">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
|
{include file='file:../core/view_tr_submit_delete.tpl'}
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<div><br/></div>
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
|
|
|
<tr valign="top">
|
|
|
|
<td class="table_heading">{osb f=tt}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td class="row1">
|
|
|
|
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
|
|
|
<!-- Loop through each affiliate plugin -->
|
|
|
|
{foreach from=$plugindata item=plugin}
|
|
|
|
<tr valign="top">
|
|
|
|
<td style="width: 35%;">{$plugin.name}</td>
|
|
|
|
<td style="width: 25%;">{$plugin.count} {translate module=affiliate_commission}commissions{/translate}</td>
|
|
|
|
<td style="width: 40%;">
|
|
|
|
{if $plugin.count > 0}
|
|
|
|
<a href="?_page=core:blank&_escape=1&do[]=affiliate_commission:export&id={$affiliate_commission.id}&plugin={$plugin.plugin}" onclick="target='_blank';"><b>{t}Run commission payment tool{/t}</b></a>
|
|
|
|
{else}
|
|
|
|
{t}Nothing to do{/t}
|
|
|
|
{/if}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{/foreach}
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
2008-11-26 22:50:40 +00:00
|
|
|
{/if}
|