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_commission/view.tpl
2011-05-03 09:49:01 +10:00

116 lines
4.4 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/view_pre.tpl'}
<!-- Display the field validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- Display each record -->
<form id="view" method="post" action="" enctype="multipart/form-data">
<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&amp;_escape=1&amp;do[]=affiliate_commission:export&amp;id={$affiliate_commission.id}&amp;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>
{/if}