{assign var=meth value=':'|explode:$VAR._page} {if $form_validation} {$block->display('core:alert_fields')} {/if}
{osb f=tt}
{osb f=tf field=id} {$affiliate.id}
{osb f=tf field=date_orig} {$list->date_time($affiliate.date_orig)}
{osb f=tf field=date_last} {$list->date_time($affiliate.date_last)}
{osb f=tf field=status} {$list->bool('',$affiliate.status,'')}
{osb f=tf field=max_tiers} {$affiliate.max_tiers}
{osb f=tf field=commission_minimum} {$list->format_currency($affiliate.commission_minimum,'')}
{osb f=tf field=recurr_max_commission_periods} {$affiliate.recurr_max_commission_periods}
{osb f=tf field=new_commission_type} {$list->menu_staticlist('commissiontype','','',$affiliate.new_commission_type,'')}
{osb f=tf field=recurr_commission_type} {$list->menu_staticlist('commissiontype','','',$affiliate.recurr_commission_type,'')}
{foreach from=$static_var item=record} {/foreach}
{$record.name} {$record.html}
{osb f=tf field=affiliate_plugin} {$list->menu_files('','affiliate_affiliate_plugin',$affiliate.affiliate_plugin,'affiliate_plugin','','.php','')}
{assign var='afile' value=$affiliate.affiliate_plugin} {assign var='ablock' value='affiliate:plugin_'} {assign var='blockfile' value="$ablock$afile"} {$block->display($blockfile)}
 

{t}Affiliate Statistics{/t}
{t}Sessions{/t} {$affiliate_stats.stats_sessions}
{t}Accounts{/t} {$affiliate_stats.stats_accounts}
{t}Invoices{/t} {$list->format_currency($affiliate_stats.stats_invoices_amt,'')} ({$affiliate_stats.stats_invoices})
{t}Commission{/t} {$list->format_currency($affiliate_stats.stats_commissions,'')}
{t}Commissions Due{/t} {$list->format_currency($affiliate_stats.commissions_due,'')}
{if $affiliate_campaign != ''}
{t}Affiliate Links & Banners{/t}
{foreach from=$affiliate_campaign item=affiliate_campaign} {/foreach}
{$affiliate_campaign.name} {translate module=affiliate}campaign_code{/translate}
{/if}

{osb f=tt method=new_tier_iframe}
{$list->unserial($affiliate.new_commission_rate,'new_commission_rate')} {foreach key=key item=item from=$new_commission_rate} {if $item} {/if} {/foreach}
{t}Tier{/t} {math equation="x+y" x=$key y=1} {if $affiliate.new_commission_type == '0'} {elseif $affiliate.new_commission_type == '1'} {math equation="x*y" x=$item y=100}% {elseif $affiliate.new_commission_type == '2'} {$list->format_currency($item,'')} {/if}
{osb f=tt method=recurr_tier_iframe}
{$list->unserial($affiliate.recurr_commission_rate,'recurr_commission_rate')} {foreach key=key item=item from=$recurr_commission_rate} {if $item} {/if} {/foreach}
{t}Tier{/t} {math equation="x+y" x=$key y=1} {if $affiliate.recurr_commission_type == '0'} {elseif $affiliate.recurr_commission_type == '1'} {math equation="x*y" x=$item y=100}% {elseif $affiliate.recurr_commission_type == '2'} {$list->format_currency($item, '')} {/if}