{assign var="title" value="Affiliate stats"} {include file="admin/header.inc.html"}

{$title|escape} / Affiliate Clicks

  {if $error}
{foreach from=$error item=e}
  • {$e|escape} {/foreach}
  • {/if}
        Period        

    {if $days}

    Stats for period

    {foreach from=$days item=d key=dd} {/foreach}
      CLICKS COMMISSIONS
    Date Raw Unique Transactions Credit Debit Total
    {$d.dat|amember_date_format} {$d.raw|string_format:"%d"} {$d.uniq|string_format:"%d"} {$d.trans|escape} {if $d.debit ne ""}{$d.debit|escape}{/if} {$d.credit|escape} {if $d.total ne ""}{if $d.total < 0.0}{/if}{$d.total|string_format:"%.2f"}{/if}{if $d.total < 0.0}{/if}
    TOTAL {$total.raw|string_format:"%d"} {$total.uniq|string_format:"%d"} {$total.trans|string_format:"%d"} {if $total.debit ne ""}{$total.debit|string_format:"%.2f"}{/if} {$total.credit|string_format:"%.2f"} {if $total.total < 0.0}{/if}{$total.total|string_format:"%.2f"}{if $total.total < 0.0}{/if}
    {/if} {if $refs}

    Top 20 Referrers

    {foreach from=$refs item=r} {/foreach}
    CLICKS REFERRER
    Raw Unique
    {$r.raw|string_format:"%d"} {$r.uniq|string_format:"%d"} {$r.ref|escape}
    {/if}
    {include file="admin/footer.inc.html"}