Nats wmref list (NATS3)

From TMM Wiki
Jump to navigationJump to search
NATS 3
  Template Functions
nats_apache_note
nats_convert_bytes
nats_decode
nats_encode
nats_fhg
nats_helper_row_fill
nats_get_gateway_token
nats_list_campaigns
nats_list_programs
nats_list_sites
nats_my_decode_entities
nats_my_encode_entities
nats_smarty_function_ajax_box
nats_smarty_function_amount_owed
nats_smarty_function_gateway_xsell
nats_smarty_function_getbonus
nats_smarty_function_get_paid_date
nats_smarty_rebuild_link
nats_smarty_rebuild_query
nats_smarty_function_reseller_ajax_box
nats_tooltip
nats_tour_report
nats_wmref_list
Template Shortcuts
ajax_box
amount_owed
apache_note
convert_bytes
fhg
gateway_xsell
get_loginid_from_campaignid
get_gateway_token
get_paid_date
list_campaigns
list_programs
list_sites
new_gateway_xsell
rebuild_link
rebuild_query
reseller_ajax_box
reward_points
tooltip
tour_report
wmref_list
Common Parameters
assign
assign_prefix
count
data_only
display_on_assign
start
tpl

nats_wmref_list

Gets webmaster (affiliate) referral program statistics.

Alias: wmref_list

Parameters

(Required parameters in bold)

Parameter Description Possible Values Default Value Example
referrer The referer's account I.D. number Any valid account I.D. number None. referrer="123"
stats Print statistics 1 None. stats="1"
period Period to get statistics for Any valid period number 9 period="1"
period_start Start of the period Any date Beginning of current period period_start="26 August 2008"
period_end End of the period Any date End of current period period_end="10 September 2008"
skip_programs Don't generate output using these programs Any valid program I.D. number None. skip_programs="123"

Output

Stores webmaster (affiliate) referral program statistics in the Smarty array, {$referred_wm}.

Account Reps

{wmref_list referrer=$loginid account_rep=1 period_start=$period_start period_end=$period_end stats=2}
Account rep
<table>
<tr>
<td>username</td><td>initials</td><td>active</td><td>rebills</td><td>initial amount</td><td>rebill_amount</td><td>active amount</td></tr>
{foreach from=$referred_wm item=wm}
<tr>
<td>{$wm.username}</td>
<td>{$wm.initials}</td>
<td>{$wm.active}</td>
<td>{$wm.rebills}</td>
<td>{$wm.initial_amount}</td>
<td>{$wm.rebill_amount}</td>
<td>{$wm.active_amount}</td>
</tr>
{/foreach}

Notes

None.