{assign var=meth value=':'|explode:$VAR._page} {$method->exe($meth.0,$meth.1)} {if ($method->result == false)} {$block->display('core:method_error')} {else} {include file='file:../core/view_pre.tpl'} {if $form_validation} {$block->display('core:alert_fields')} {/if}
{osb f=tt}
{foreach from=$record.static_var item=rrecord} {/foreach}
{osb f=tf field=id} {$record.id} Email
{osb f=tf field=date_orig} {$list->date_time($record.date_orig)}
{osb f=tf field=date_last} {$list->date_time($record.date_last)}
{osb f=tf field=status} {$list->bool('affiliate_status',$record.status,'" onchange="submit()')}
{osb f=tf field=account_id} {osb f=html_select_account name='affiliate_account_id' default=$record.account_id}
{osb f=tf field=parent_affiliate_id} {osb f=html_select_account name='affiliate_parent_affiliate_id' default=$record.parent_affiliate_id}
{osb f=tf field=avail_campaign_id} {$list->menu_multi($record.avail_campaign_id,'affiliate_avail_campaign_id','campaign','name','','2','form_menu')}
{osb f=tf field=max_tiers}
{osb f=tf field=commission_minimum}
{osb f=tf field=recurr_max_commission_periods}
{osb f=tf field=new_commission_type} {$list->menu_staticlist('commissiontype','affiliate_new_commission_type','affiliate_new_commission_type',$record.new_commission_type,'form_menu" onchange="document.getElementById(\'view\').submit()')}
{osb f=tf field=recurr_commission_type} {$list->menu_staticlist('commissiontype','affiliate_recurr_commission_type','affiliate_recurr_commission_type',$record.recurr_commission_type,'form_menu" onchange="document.getElementById(\'view\').submit()')}
{$rrecord.name} {$rrecord.html}
{osb f=tf field=affiliate_plugin} {$list->menu_files('','affiliate_affiliate_plugin',$record.affiliate_plugin,'affiliate_plugin','','.php','" onchange="document.getElementById(\'view\').submit()')}
{assign var="afile" value=$record.affiliate_plugin} {assign var="ablock" value='affiliate:plugin_'} {assign var="blockfile" value="$ablock$afile"} {if $afile != 'ACCOUNT_DISCOUNT'} {$block->display($blockfile)} {/if}
{include file='file:../core/view_tr_submit_delete.tpl'}
{section name=i start=0 loop=100 step=1} {/section}
{include file='file:../core/view_post.tpl'}

{t}Affiliate Statistics{/t}
{t}Sessions{/t} {$record.stats_sessions}
{t}Accounts{/t} {$record.stats_accounts}
{t}Invoices{/t} {$list->format_currency($record.stats_invoices_amt,'')} ({$record.stats_invoices})
{t}commissions{/t} {$list->format_currency($record.stats_commissions,'')}
{t}commissions_due{/t} {$list->format_currency($record.commissions_due,'')}

{/if}