{assign var="title" value=$smarty.const._TPL_AFF_STATS_TITLE} {include file="header.html"} {include file="error.inc.html"}
    #_TPL_AFF_STATS_PERIOD#        


{if $days} {foreach from=$days item=d key=dd} {/foreach}
  #_TPL_AFF_STATS_CLICKS# #_TPL_AFF_STATS_COMMISS#
#_TPL_AFF_STATS_DATE# #_TPL_AFF_STATS_RAW# #_TPL_AFF_STATS_UNIQUE# #_TPL_AFF_STATS_TRANS# #_TPL_AFF_STATS_CREDIT# #_TPL_AFF_STATS_DEBIT# #_TPL_AFF_STATS_TOTAL#
{$d.dat|amember_date_format} {$d.raw|string_format:"%d"} {$d.uniq|string_format:"%d"} {$d.trans} {if $d.debit ne ""}{$d.debit}{/if} {$d.credit} {if $d.total ne ""}{if $d.total < 0.0}{/if}{$d.total|string_format:"%.2f"}{/if}{if $d.total < 0.0}{/if}
#_TPL_AFF_STATS_TOTAL_H# {$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}

#_TPL_AFF_STATS_TOP20#

{foreach from=$refs item=r} {/foreach}
#_TPL_AFF_STATS_CLICKS# #_TPL_AFF_STATS_REFERRER#
#_TPL_AFF_STATS_RAW# #_TPL_AFF_STATS_UNIQUE#
{$r.raw|string_format:"%d"} {$r.uniq|string_format:"%d"} {$r.ref}
{/if}
#_TPL_AFF_STATS_BACK#

#_TPL_POWEREDBY||#

{include file="footer.html"}