Initial Commit of AgileBill Open Source
This commit is contained in:
59
themes/default/blocks/affiliate/add.tpl
Normal file
59
themes/default/blocks/affiliate/add.tpl
Normal file
@@ -0,0 +1,59 @@
|
||||
<!-- Display the form to collect the input values -->
|
||||
<form id="affiliate_add" name="affiliate_add" method="post" action="">
|
||||
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=affiliate}title_add{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=affiliate}
|
||||
field_account_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{html_select_account name="affiliate_account_id" default=$VAR.affiliate_account_id}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=affiliate}
|
||||
affiliate_template
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{if $VAR.affiliate_affiliate_plugin_id == "" }
|
||||
{ $list->menu("", "affiliate_template_id", "affiliate_template", "name", $smarty.const.DEFAULT_AFFILIATE_TEMPLATE, "form_menu") }
|
||||
{else}
|
||||
{ $list->menu("", "affiliate_template_id", "affiliate_template", "name", $VAR.affiliate_affiliate_plugin_id, "form_menu") }
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%"></td>
|
||||
<td width="65%">
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
<input type="hidden" name="_page" value="affiliate:view">
|
||||
<input type="hidden" name="_page_current" value="affiliate:add">
|
||||
<input type="hidden" name="do[]" value="affiliate:add">
|
||||
<input type="hidden" name="affiliate_date_orig" value="{$smarty.now}">
|
||||
<input type="hidden" name="affiliate_date_last" value="{$smarty.now}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
19
themes/default/blocks/affiliate/affiliate.tpl
Normal file
19
themes/default/blocks/affiliate/affiliate.tpl
Normal file
@@ -0,0 +1,19 @@
|
||||
{if $SESS_LOGGED == "1" }
|
||||
|
||||
{ $method->exe("affiliate","user_view") }
|
||||
{ if ($affiliate_user_view == false) }
|
||||
|
||||
<!-- signup for an affiliate account -->
|
||||
{ $block->display("affiliate:user_add") }
|
||||
|
||||
{else}
|
||||
|
||||
<!-- display the affiliate account -->
|
||||
{ $block->display("affiliate:user_view") }
|
||||
|
||||
{/if}
|
||||
{else}
|
||||
|
||||
<!-- login/register for an account -->
|
||||
{ $block->display("account:login") }
|
||||
{/if}
|
94
themes/default/blocks/affiliate/mail_multi.tpl
Normal file
94
themes/default/blocks/affiliate/mail_multi.tpl
Normal file
@@ -0,0 +1,94 @@
|
||||
{ $method->exe("affiliate","search_form") } { if ($method->result == FALSE) }
|
||||
{ $block->display("core:method_error") } {else}
|
||||
<form name="account_admin_mail" method="post" action="">
|
||||
|
||||
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<div align="center">
|
||||
{translate module=account_admin}
|
||||
title_mail
|
||||
{/translate}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=account_admin}
|
||||
mail_from
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{if $VAR.mail_email_id != ""}
|
||||
{ $list->menu("", "mail_email_id", "setup_email", "name", $smarty.const.DEFAULT_SETUP_EMAIL, "form_menu") }
|
||||
{else}
|
||||
{ $list->menu("", "mail_email_id", "setup_email", "name", $setup.mail_email_id, "form_menu") }
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=account_admin}
|
||||
mail_to
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%"><a href="?_page=affiliate:search_show&search_id={$VAR.search_id}">{translate
|
||||
module=account_admin} mail_multi {/translate} </a></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=account_admin}
|
||||
mail_subject
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="mail_subject" value="{$VAR.mail_subject}" {if $mail_subject == true}class="form_field_error"{/if} size="50">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=account_admin}
|
||||
mail_message
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<textarea name="mail_message" {if $mail_message == true}class="form_field_error" {/if} cols="55" rows="6">{$VAR.mail_message}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=account_admin}
|
||||
mail_priority
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<select name="mail_priority" >
|
||||
<option value="0">{translate}false{/translate}</option>
|
||||
<option value="1">{translate}true{/translate}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%"> </td>
|
||||
<td width="65%">
|
||||
<input type="image" border="0" name="imageField" src="themes/{$THEME_NAME}/images/icons/mail_32.gif" alt="{translate}submit{/translate}">
|
||||
<input type="hidden" name="_page" value="affiliate:mail_multi">
|
||||
<input type="hidden" name="do[]" value="affiliate:mail_multi">
|
||||
<input type="hidden" name="search_id" value="{$VAR.search_id}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{/if}
|
62
themes/default/blocks/affiliate/new_tier_iframe.tpl
Normal file
62
themes/default/blocks/affiliate/new_tier_iframe.tpl
Normal file
@@ -0,0 +1,62 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>{$smarty.const.SITE_NAME}</TITLE>
|
||||
<link rel="stylesheet" href="themes/{$THEME_NAME}/style.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body style="background-color: transparent" ALLOWTRANSPARENCY="true">
|
||||
<form name="form1" method="post">
|
||||
|
||||
<table width="215" border="0" cellspacing="0" cellpadding="0" class="table_background" align="left">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<div align="center">
|
||||
{translate module=affiliate}
|
||||
field_new_commission_rate
|
||||
{/translate}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
|
||||
|
||||
{literal}<SCRIPT LANGUAGE="JavaScript">
|
||||
<!-- START
|
||||
{/literal}
|
||||
var tiers = {$VAR.tiers};
|
||||
{literal}
|
||||
function gval(i) { return document.getElementById(i).value; }
|
||||
for (i=0; i<tiers; i++)
|
||||
{
|
||||
var ii = i + 1;
|
||||
|
||||
document.write('<table width="275" border="0" cellspacing="1" cellpadding="1" class="row1" align="center">');
|
||||
document.write('<tr valign="top"> ');
|
||||
document.write('<td width="70%"> Tier '+ii+':</td>');
|
||||
document.write('<td width="30%">');
|
||||
document.write('<input type="text" id="'+i+'" name="'+i+'" value="'+parent.GetTierValueNew(i)+'" ');
|
||||
document.write(' onChange="parent.UpdateTierValueNew('+i+',gval('+i+'));" size="8">');
|
||||
document.write('</td>');
|
||||
document.write('</tr>');
|
||||
document.write(' </table>');
|
||||
|
||||
}
|
||||
// END -->
|
||||
</SCRIPT>
|
||||
{/literal}
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
@@ -0,0 +1 @@
|
||||
{if $VAR._page == ''}{/if}
|
13
themes/default/blocks/affiliate/plugin_EBULLION.tpl
Normal file
13
themes/default/blocks/affiliate/plugin_EBULLION.tpl
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
plugin_ebullion_acct
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="affiliate_plugin_data[ebullion]" value="{$plugin_data.ebullion}" >
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
63
themes/default/blocks/affiliate/plugin_MAIL_CHECK.tpl
Normal file
63
themes/default/blocks/affiliate/plugin_MAIL_CHECK.tpl
Normal file
@@ -0,0 +1,63 @@
|
||||
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
plugin_mail_check_payee
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="affiliate_plugin_data[payee]" value="{$plugin_data.payee}" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
plugin_mail_check_address
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="affiliate_plugin_data[address]" value="{$plugin_data.address}" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
plugin_mail_check_city
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="affiliate_plugin_data[city]" value="{$plugin_data.city}" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
plugin_mail_check_state
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="affiliate_plugin_data[state]" value="{$plugin_data.state}" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
plugin_mail_check_zip
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="affiliate_plugin_data[zip]" value="{$plugin_data.zip}" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
plugin_mail_check_email
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="affiliate_plugin_data[email]" value="{$plugin_data.email}" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
13
themes/default/blocks/affiliate/plugin_MONEYBOOKERS.tpl
Normal file
13
themes/default/blocks/affiliate/plugin_MONEYBOOKERS.tpl
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
plugin_moneybookers_email
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="affiliate_plugin_data[email]" value="{$plugin_data.email}" >
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
13
themes/default/blocks/affiliate/plugin_PAYPAL.tpl
Normal file
13
themes/default/blocks/affiliate/plugin_PAYPAL.tpl
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
plugin_paypal_email
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="affiliate_plugin_data[email]" value="{$plugin_data.email}" >
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
63
themes/default/blocks/affiliate/recurr_tier_iframe.tpl
Normal file
63
themes/default/blocks/affiliate/recurr_tier_iframe.tpl
Normal file
@@ -0,0 +1,63 @@
|
||||
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>{$smarty.const.SITE_NAME}</TITLE>
|
||||
<link rel="stylesheet" href="themes/{$THEME_NAME}/style.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body style="background-color: transparent" ALLOWTRANSPARENCY="true">
|
||||
<form name="form1" method="post">
|
||||
|
||||
<table width="215" border="0" cellspacing="0" cellpadding="0" class="table_background" align="right">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<div align="center">
|
||||
{translate module=affiliate}
|
||||
field_recurr_commission_rate
|
||||
{/translate}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
|
||||
|
||||
{literal}<SCRIPT LANGUAGE="JavaScript">
|
||||
<!-- START
|
||||
{/literal}
|
||||
var tiers = {$VAR.tiers};
|
||||
{literal}
|
||||
function gval(i) { return document.getElementById(i).value; }
|
||||
for (i=0; i<tiers; i++)
|
||||
{
|
||||
var ii = i + 1;
|
||||
|
||||
document.write('<table width="275" border="0" cellspacing="1" cellpadding="1" class="row1" align="center">');
|
||||
document.write('<tr valign="top"> ');
|
||||
document.write('<td width="70%"> Tier '+ii+':</td>');
|
||||
document.write('<td width="30%">');
|
||||
document.write('<input type="text" id="'+i+'" name="'+i+'" value="'+parent.GetTierValueRecur(i)+'" ');
|
||||
document.write(' onChange="parent.UpdateTierValueRecur('+i+',gval('+i+'));" size="8">');
|
||||
document.write('</td>');
|
||||
document.write('</tr>');
|
||||
document.write(' </table>');
|
||||
|
||||
}
|
||||
// END -->
|
||||
</SCRIPT>
|
||||
{/literal}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
149
themes/default/blocks/affiliate/search_form.tpl
Normal file
149
themes/default/blocks/affiliate/search_form.tpl
Normal file
@@ -0,0 +1,149 @@
|
||||
{ $method->exe("affiliate","search_form") }
|
||||
{ if ($method->result == FALSE) }
|
||||
{ $block->display("core:method_error") }
|
||||
{else}
|
||||
<form name="affiliate_search" method="post" action="">
|
||||
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=affiliate}title_search{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="affiliate_id" value="{$VAR.affiliate_id}" {if $affiliate_id == true}class="form_field_error"{/if}>
|
||||
|
||||
{translate}
|
||||
search_partial
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_date_orig
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->calender_search("affiliate_date_orig", $VAR.affiliate_date_orig, "form_field", "") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_status
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->bool("affiliate_status", "all", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_account_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{html_select_account name="affiliate_account_id" default=$VAR.affiliate_account_id}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_parent_affiliate_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{html_select_affiliate name="affiliate_parent_affiliate_id" default=$VAR.affiliate_parent_affiliate_id}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_recurr_max_commission_periods
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="affiliate_recurr_max_commission_periods" value="{$VAR.affiliate_recurr_max_commission_periods}" {if $affiliate_recurr_max_commission_periods == true}class="form_field_error"{/if}>
|
||||
|
||||
{translate}
|
||||
search_partial
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{ $method->exe("affiliate","static_var")}
|
||||
{foreach from=$static_var item=record}
|
||||
<tr valign="top">
|
||||
<td width="50%" height="18">
|
||||
{$record.name}
|
||||
</td>
|
||||
<td width="65%" height="18">
|
||||
{$record.html}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
|
||||
<!-- Define the results per page -->
|
||||
<tr class="row1" valign="top">
|
||||
<td width="50%">
|
||||
{translate}
|
||||
search_results_per
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="limit" size="5" value="{$affiliate_limit}">
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Define the order by field per page -->
|
||||
<tr class="row1" valign="top">
|
||||
<td width="50%">
|
||||
{translate}
|
||||
search_order_by
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<select name="order_by">
|
||||
{foreach from=$affiliate item=record}
|
||||
<option value="{$record.field}">
|
||||
{$record.translate}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="top">
|
||||
<td width="50%"></td>
|
||||
<td width="65%">
|
||||
<input type="submit" name="Submit" value="{translate}search{/translate}" class="form_button">
|
||||
<input type="hidden" name="_page" value="core:search">
|
||||
<input type="hidden" name="_escape" value="Y">
|
||||
<input type="hidden" name="module" value="affiliate">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{ $block->display("core:saved_searches") }
|
||||
{ $block->display("core:recent_searches") }
|
||||
{/if}
|
158
themes/default/blocks/affiliate/search_show.tpl
Normal file
158
themes/default/blocks/affiliate/search_show.tpl
Normal file
@@ -0,0 +1,158 @@
|
||||
|
||||
|
||||
{$method->exe("affiliate","search_show")}
|
||||
{if ($method->result == FALSE)}
|
||||
{$block->display("core:method_error")}
|
||||
{else}
|
||||
{if $results == 1}
|
||||
{translate results=$results}search_result_count{/translate}
|
||||
{else}
|
||||
{translate results=$results}search_results_count{/translate}
|
||||
{/if}
|
||||
<BR>
|
||||
|
||||
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
<!-- START
|
||||
var module = 'affiliate';
|
||||
{/literal}
|
||||
{if $VAR._print == TRUE}
|
||||
var p = '&_escape=y&_print=y';
|
||||
{else}
|
||||
var p = '';
|
||||
{/if}{literal}
|
||||
var IMAGE = '{/literal}{$NONSSL_IMAGE}{literal}';
|
||||
var order = '{/literal}{$order}{literal}';
|
||||
var sort1 = '{/literal}{$sort}{literal}';
|
||||
var search_id = '{/literal}{$search_id}{literal}';
|
||||
var page = {/literal}{$page}{literal};
|
||||
var pages = '{/literal}{$pages}{literal}';
|
||||
var results = '{/literal}{$results}{literal}';
|
||||
var limit = '{/literal}{$limit}{literal}';
|
||||
record_arr = new Array ({/literal}{$limit}{literal});
|
||||
var i = 0;
|
||||
// END -->
|
||||
</script>
|
||||
<SCRIPT SRC="themes/{/literal}{$THEME_NAME}{literal}/search.js"></SCRIPT>
|
||||
{/literal}
|
||||
|
||||
<!-- SHOW THE SEARCH NAVIGATION MENU -->
|
||||
<center><script language="JavaScript">document.write(search_nav_top());</script></center>
|
||||
|
||||
<!-- BEGIN THE RESULTS CONTENT AREA -->
|
||||
<div id="search_results" onKeyPress="key_handler(event);">
|
||||
<table id="main1" width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<form id="form1" name="form1" method="post" action="">
|
||||
<tr>
|
||||
<td>
|
||||
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
|
||||
<!-- DISPLAY THE SEARCH HEADING -->
|
||||
<tr valign="middle" align="center" class="table_heading">
|
||||
<td width="38" class="table_heading"> </td>
|
||||
<td width="182" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=affiliate}field_id{/translate}{literal}','id'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="87" class="table_heading">
|
||||
{translate module=affiliate}
|
||||
sessions
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="82" class="table_heading">
|
||||
{translate module=affiliate}
|
||||
accounts
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="165" class="table_heading">
|
||||
{translate module=affiliate}
|
||||
invoices
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="111" class="table_heading">
|
||||
{translate module=affiliate}
|
||||
commissions
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="86" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=affiliate}field_status{/translate}{literal}','status'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="100" class="table_heading"> </td>
|
||||
<!-- LOOP THROUGH EACH RECORD -->
|
||||
{foreach from=$affiliate item=record}
|
||||
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=affiliate:view&id={$record.id},';" onMouseOver="row_mouseover('{$record.id}', 'row_mouse_over_select', 'row_mouse_over');" onMouseOut="row_mouseout('{$record.id}', '{$record._C}', 'row_select');" class="{$record._C}">
|
||||
<td align="center" width="38">
|
||||
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
|
||||
</td>
|
||||
<td width="182"> <b>
|
||||
{$record.id}
|
||||
</b> <a href="?_page=account_admin:view&id={$record.account_id}">{$record.first_name}
|
||||
{$record.last_name}</a></td>
|
||||
<td width="87">
|
||||
{$record.stats_sessions}
|
||||
</td>
|
||||
<td width="82">
|
||||
{$record.stats_accounts}
|
||||
</td>
|
||||
<td width="165">
|
||||
{$list->format_currency($record.stats_invoices_amt,'')}
|
||||
({$record.stats_invoices})</td>
|
||||
<td width="111">
|
||||
{$list->format_currency($record.stats_commissions,'')}
|
||||
</td>
|
||||
<td width="86">
|
||||
{if $record.status == "1"}
|
||||
{translate}
|
||||
true
|
||||
{/translate}
|
||||
{else}
|
||||
{translate}
|
||||
false
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
<td width="100" align="center"><a href="?_page=account_admin:mail_one&mail_account_id={$record.account_id}"><img title="E-mail Affiliate" src="themes/{$THEME_NAME}/images/icons/mail_16.gif" border="0" width="16" height="16"></a>
|
||||
<a href="?_page=core:search&module=account_admin&account_admin_affiliate_id={$record.id}">
|
||||
<img title="Referred Sessions" src="themes/{$THEME_NAME}/images/icons/user_16.gif" border="0" width="16" height="16"></a>
|
||||
<a href="?_page=core:search&module=invoice&invoice_affiliate_id={$record.id}">
|
||||
<img title="Referred Invoices" src="themes/{$THEME_NAME}/images/icons/calc_16.gif" border="0" width="16" height="16"></a></td>
|
||||
</tr>
|
||||
{literal}
|
||||
<script language="JavaScript">row_sel('{/literal}{$record.id}{literal}', 0, '{/literal}{$record._C}{literal}'); record_arr[i] = '{/literal}{$record.id}{literal}'; i++; </script>
|
||||
{/literal}
|
||||
{/foreach}
|
||||
<!-- END OF RESULT LOOP -->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
{if $VAR._print != TRUE}<br>
|
||||
<center>
|
||||
<p>
|
||||
<input type="submit" name="Submit" value="{translate}view_edit{/translate}" onClick="mass_do('', module+':view', limit, module);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}delete{/translate}" onClick="mass_do('delete', module+':search_show&search_id={$search_id}&page={$page}&order_by={$order}&{$sort}', limit, module);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}select_all{/translate}" onClick="all_select(record_arr);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}deselect_all{/translate}" onClick="all_deselect(record_arr);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}range_select{/translate}" onClick="all_range_select(record_arr,limit);" class="form_button">
|
||||
</p>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5" align="center">
|
||||
<tr>
|
||||
<td valign="middle" align="center"> <a href="#" onClick="NewWindow('ExportWin','toolbar=no,status=no,width=300,height=300','?_page=core:export_search&module=affiliate&_escape=1&search_id={$search_id}&page={$page}&order={$order}&sort={$sort}');"><img src="themes/{$THEME_NAME}/images/icons/exp_32.gif" alt="{translate}search_export_image{/translate}" border="0">
|
||||
</a> <a href="?_page=affiliate:mail_multi&search_id={$search_id}"><img src="themes/{$THEME_NAME}/images/icons/mail_32.gif" border="0"></a>
|
||||
<a href="?_page=affiliate:search_show&_print=true&order_by={$order}&search_id={$search_id}&limit={$limit}&page={$page}">
|
||||
<img src="themes/{$THEME_NAME}/images//icons/print_32.gif" border="0" alt="{translate}search_print_image{/translate}">
|
||||
</a> <a href="?_page=affiliate:search_form"><img src="themes/{$THEME_NAME}/images/icons/srch_32.gif" border="0" alt="{translate}search_new_image{/translate}">
|
||||
</a> <a href="?_page=affiliate:add"><img src="themes/{$THEME_NAME}/images/icons/add_32.gif" border="0" alt="{translate module=affiliate}title_add{/translate}"></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
{/if} {/if} </div>
|
212
themes/default/blocks/affiliate/user_add.tpl
Normal file
212
themes/default/blocks/affiliate/user_add.tpl
Normal file
@@ -0,0 +1,212 @@
|
||||
<!-- Display the field validation -->
|
||||
{if $form_validation}
|
||||
{ $block->display("core:alert_fields") }
|
||||
{/if}
|
||||
|
||||
<!-- Display the form to collect the input values -->
|
||||
<form id="affiliate_add" name="affiliate_add" method="post" action="">
|
||||
|
||||
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=affiliate}
|
||||
title_user_add
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=affiliate}
|
||||
user_add_instruct
|
||||
{/translate}
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="55%">
|
||||
{translate module=affiliate}
|
||||
field_max_tiers
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="45%">
|
||||
{$affiliate_template.max_tiers}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="55%">
|
||||
{translate module=affiliate}
|
||||
field_commission_minimum
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="45%">
|
||||
{ $list->format_currency($affiliate_template.commission_minimum,"") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="55%" height="20">
|
||||
{translate module=affiliate}
|
||||
field_new_commission_type
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="45%" height="20">
|
||||
{if $affiliate_template.new_commission_type == "0"}
|
||||
{translate module=affiliate}
|
||||
none
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $affiliate_template.new_commission_type == "1"}
|
||||
{translate module=affiliate}
|
||||
percent
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $affiliate_template.new_commission_type == "2"}
|
||||
{translate module=affiliate}
|
||||
flat
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="55%">
|
||||
{translate module=affiliate}
|
||||
field_recurr_commission_type
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="45%">
|
||||
{if $affiliate_template.recurr_commission_type == "0"}
|
||||
{translate module=affiliate}
|
||||
none
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $affiliate_template.recurr_commission_type == "1"}
|
||||
{translate module=affiliate}
|
||||
percent
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $affiliate_template.recurr_commission_type == "2"}
|
||||
{translate module=affiliate}
|
||||
flat
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="55%">
|
||||
{translate module=affiliate}
|
||||
field_affiliate_plugin
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="45%">
|
||||
{ $list->menu_files("", "affiliate_affiliate_plugin", $VAR.affiliate_affiliate_plugin, "affiliate_plugin", "", ".php", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
{foreach from=$static_var item=record}
|
||||
<tr valign="top">
|
||||
<td width="29%">
|
||||
{$record.name}
|
||||
</td>
|
||||
<td width="71%">
|
||||
{$record.html}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr valign="top">
|
||||
<td width="55%"></td>
|
||||
<td width="45%">
|
||||
<div align="right">
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
<input type="hidden" name="_page" value="affiliate:affiliate">
|
||||
<input type="hidden" name="_page_current" value="affiliate:affiliate">
|
||||
<input type="hidden" name="do[]" value="affiliate:user_add">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="left"> <iframe name="iframeNewTier" id="iframeNewTier" style="border:0px; width:0px; height:0px;" scrolling="auto" ALLOWTRANSPARENCY="true" frameborder="0" SRC="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe>
|
||||
</td>
|
||||
<td align="right"> <iframe name="iframeRecTier" id="iframeRecTier" style="border:0px; width:0px; height:0px;" scrolling="auto" ALLOWTRANSPARENCY="true" frameborder="0" SRC="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{literal}
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
<!-- START
|
||||
|
||||
var new_array = new Array(99);
|
||||
var rec_array = new Array(99);
|
||||
|
||||
// create the hidden fields for the tier rates
|
||||
for(i=0; i<99; i++)
|
||||
{
|
||||
new_array[i] = '';
|
||||
rec_array[i] = '';
|
||||
}
|
||||
{/literal}
|
||||
|
||||
|
||||
{ $list->unserial($affiliate_template.new_commission_rate,"new_commission_rate") }
|
||||
{foreach key=key item=item from=$new_commission_rate}
|
||||
var key = {$key};
|
||||
{literal}if (key <= 10)
|
||||
{ {/literal}
|
||||
new_array[key] = '{$item}';
|
||||
}
|
||||
{/foreach}
|
||||
|
||||
{ $list->unserial($affiliate_template.recurr_commission_rate,"recurr_commission_rate") }
|
||||
{foreach key=key item=item from=$recurr_commission_rate}
|
||||
var key = {$key};
|
||||
{literal}if (key <= 10)
|
||||
{ {/literal}
|
||||
rec_array[key] = '{$item}';
|
||||
}
|
||||
{/foreach}
|
||||
|
||||
{literal}
|
||||
function UpdateTierValueNew(id,value) { new_array[id] = value; document.getElementById('new_'+id).value = value; }
|
||||
function UpdateTierValueRecur(id,value) { rec_array[id] = value; document.getElementById('rec_'+id).value = value; }
|
||||
function GetTierValueNew(id) { return new_array[id]; }
|
||||
function GetTierValueRecur(id) { return rec_array[id]; }
|
||||
function TierUpdate()
|
||||
{
|
||||
var tiers = "{/literal}{$affiliate_template.max_tiers}{literal}";
|
||||
var newc = "{/literal}{$affiliate_template.new_commission_type}{literal}";
|
||||
var recc = "{/literal}{$affiliate_template.recurr_commission_type}{literal}";
|
||||
|
||||
if(tiers > 99)
|
||||
{
|
||||
tiers = 99;
|
||||
document.getElementById('affiliate_max_tiers').value = 99;
|
||||
}
|
||||
if(newc != "0")
|
||||
showIFrame('iframeNewTier',250,255,'?_page=affiliate:user_new_tier_iframe&_escape=1&tiers='+tiers);
|
||||
if(recc != "0")
|
||||
showIFrame('iframeRecTier',250,255,'?_page=affiliate:user_recurr_tier_iframe&_escape=1&tiers='+tiers);
|
||||
}
|
||||
TierUpdate();
|
||||
// END -->
|
||||
</SCRIPT>{/literal}
|
||||
|
||||
</form>
|
62
themes/default/blocks/affiliate/user_new_tier_iframe.tpl
Normal file
62
themes/default/blocks/affiliate/user_new_tier_iframe.tpl
Normal file
@@ -0,0 +1,62 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>{$smarty.const.SITE_NAME}</TITLE>
|
||||
<link rel="stylesheet" href="themes/{$THEME_NAME}/style.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body style="background-color: transparent" ALLOWTRANSPARENCY="true">
|
||||
<form name="form1" method="post">
|
||||
|
||||
<table width="200" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<div align="center">
|
||||
{translate module=affiliate}
|
||||
field_new_commission_rate
|
||||
{/translate}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
|
||||
|
||||
{literal}<SCRIPT LANGUAGE="JavaScript">
|
||||
<!-- START
|
||||
{/literal}
|
||||
var tiers = {$VAR.tiers};
|
||||
{literal}
|
||||
function gval(i) { return document.getElementById(i).value; }
|
||||
for (i=0; i<tiers; i++)
|
||||
{
|
||||
var ii = i + 1;
|
||||
|
||||
document.write('<table width="225" border="0" cellspacing="1" cellpadding="1" class="row1" align="center">');
|
||||
document.write('<tr valign="top"> ');
|
||||
document.write('<td width="70%"> Tier '+ii+':</td>');
|
||||
document.write('<td width="30%">');
|
||||
document.write('<input type="text" id="'+i+'" name="'+i+'" value="'+parent.GetTierValueNew(i)+'" ');
|
||||
document.write(' onChange="parent.UpdateTierValueNew('+i+',gval('+i+'));" size="8" disabled>');
|
||||
document.write('</td>');
|
||||
document.write('</tr>');
|
||||
document.write(' </table>');
|
||||
|
||||
}
|
||||
// END -->
|
||||
</SCRIPT>
|
||||
{/literal}
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
62
themes/default/blocks/affiliate/user_recurr_tier_iframe.tpl
Normal file
62
themes/default/blocks/affiliate/user_recurr_tier_iframe.tpl
Normal file
@@ -0,0 +1,62 @@
|
||||
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>{$smarty.const.SITE_NAME}</TITLE>
|
||||
<link rel="stylesheet" href="themes/{$THEME_NAME}/style.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body style="background-color: transparent" ALLOWTRANSPARENCY="true">
|
||||
<form name="form1" method="post">
|
||||
<table width="225" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<div align="center">
|
||||
{translate module=affiliate}
|
||||
field_recurr_commission_rate
|
||||
{/translate}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
|
||||
|
||||
{literal}<SCRIPT LANGUAGE="JavaScript">
|
||||
<!-- START
|
||||
{/literal}
|
||||
var tiers = {$VAR.tiers};
|
||||
{literal}
|
||||
function gval(i) { return document.getElementById(i).value; }
|
||||
for (i=0; i<tiers; i++)
|
||||
{
|
||||
var ii = i + 1;
|
||||
|
||||
document.write('<table width="225" border="0" cellspacing="1" cellpadding="1" class="row1" align="center">');
|
||||
document.write('<tr valign="top"> ');
|
||||
document.write('<td width="70%"> Tier '+ii+':</td>');
|
||||
document.write('<td width="30%">');
|
||||
document.write('<input type="text" id="'+i+'" name="'+i+'" value="'+parent.GetTierValueRecur(i)+'" ');
|
||||
document.write(' onChange="parent.UpdateTierValueRecur('+i+',gval('+i+'));" size="8" disabled>');
|
||||
document.write('</td>');
|
||||
document.write('</tr>');
|
||||
document.write(' </table>');
|
||||
|
||||
}
|
||||
// END -->
|
||||
</SCRIPT>
|
||||
{/literal}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
429
themes/default/blocks/affiliate/user_view.tpl
Normal file
429
themes/default/blocks/affiliate/user_view.tpl
Normal file
@@ -0,0 +1,429 @@
|
||||
|
||||
<!-- Display the field validation -->
|
||||
{if $form_validation}
|
||||
{ $block->display("core:alert_fields") }
|
||||
{/if}
|
||||
|
||||
<!-- Display each record -->
|
||||
<form name="affiliate_view" method="post" action="">
|
||||
|
||||
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=affiliate}
|
||||
title_view
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="3" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%"> <b>
|
||||
{$affiliate.id}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_date_orig
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{$list->date_time($affiliate.date_orig)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_date_last
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{$list->date_time("")}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_status
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{if $affiliate.status == "1"}
|
||||
{translate}
|
||||
true
|
||||
{/translate}
|
||||
{else}
|
||||
{translate}
|
||||
false
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_max_tiers
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{$affiliate.max_tiers}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_commission_minimum
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->format_currency($affiliate.commission_minimum, "") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_recurr_max_commission_periods
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">{$affiliate.recurr_max_commission_periods} </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_new_commission_type
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{if $affiliate.new_commission_type == "0"}
|
||||
{translate module=affiliate}
|
||||
none
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $affiliate.new_commission_type == "1"}
|
||||
{translate module=affiliate}
|
||||
percent
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $affiliate.new_commission_type == "2"}
|
||||
{translate module=affiliate}
|
||||
flat
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_recurr_commission_type
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{if $affiliate.recurr_commission_type == "0"}
|
||||
{translate module=affiliate}
|
||||
none
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $affiliate.recurr_commission_type == "1"}
|
||||
{translate module=affiliate}
|
||||
percent
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $affiliate.recurr_commission_type == "2"}
|
||||
{translate module=affiliate}
|
||||
flat
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="3" class="row1">
|
||||
{foreach from=$static_var item=record}
|
||||
<tr valign="top">
|
||||
<td width="50%" valign="top">
|
||||
{$record.name}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{$record.html}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="3" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="50%" valign="top">
|
||||
{translate module=affiliate}
|
||||
field_affiliate_plugin
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->menu_files("", "affiliate_affiliate_plugin", $affiliate.affiliate_plugin, "affiliate_plugin", "", ".php", "") }
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{assign var="afile" value=$affiliate.affiliate_plugin}
|
||||
{assign var="ablock" value="affiliate:plugin_"}
|
||||
{assign var="blockfile" value="$ablock$afile"}
|
||||
{ $block->display($blockfile) }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="50%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td align="right">
|
||||
<input type="hidden" name="_page" value="affiliate:affiliate">
|
||||
<input type="hidden" name="_page_current" value="affiliate:affiliate">
|
||||
<input type="hidden" name="do[]" value="affiliate:user_update">
|
||||
<input type="hidden" name="affiliate_date_last" value="{$smarty.now}">
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=affiliate}
|
||||
title_statistics
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
sessions
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%"> <b>
|
||||
{$affiliate_stats.stats_sessions}
|
||||
</b> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
accounts
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%"><b>
|
||||
{$affiliate_stats.stats_accounts}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
invoices
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{$list->format_currency($affiliate_stats.stats_invoices_amt, '')}
|
||||
(
|
||||
{$affiliate_stats.stats_invoices}
|
||||
) </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
commissions
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{$list->format_currency($affiliate_stats.stats_commissions, '')}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
commissions_due
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%"><b>
|
||||
{$list->format_currency($affiliate_stats.commissions_due, '')}
|
||||
</b></td>
|
||||
</tr>
|
||||
{foreach from=$affiliate.static_var item=record}
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{if $affiliate_campaign != ""}
|
||||
<br>
|
||||
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=affiliate}
|
||||
title_campaigns
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
|
||||
<!-- Loop through each record -->
|
||||
{foreach from=$affiliate_campaign item=affiliate_campaign}
|
||||
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{$affiliate_campaign.name}
|
||||
</td>
|
||||
<td width="50%"> <a href="?_page=campaign:affiliate&id={$affiliate_campaign.id}&curr_aid={$affiliate.id}">
|
||||
{translate module=affiliate}
|
||||
campaign_code
|
||||
{/translate}
|
||||
</a> </td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
</form>
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="97%" border="0" cellspacing="1" cellpadding="0" class="table_background">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<div align="center">
|
||||
{translate module=affiliate}
|
||||
field_new_commission_rate
|
||||
{/translate}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="row1">
|
||||
{ $list->unserial($affiliate.new_commission_rate,"new_commission_rate") }
|
||||
{foreach key=key item=item from=$new_commission_rate}
|
||||
{if $item}
|
||||
<tr>
|
||||
<td width="50%">
|
||||
{translate module=affiliate}tier{/translate} {math equation="x+y" x=$key y=1}
|
||||
</td>
|
||||
<td width="50%" align="right">
|
||||
{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}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="50%" align="right">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="right">
|
||||
<table width="97%" border="0" cellspacing="1" cellpadding="0" class="table_background">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<div align="center">
|
||||
{translate module=affiliate}
|
||||
field_recurr_commission_rate
|
||||
{/translate}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="row1">
|
||||
{ $list->unserial($affiliate.recurr_commission_rate,"recurr_commission_rate") }
|
||||
{foreach key=key item=item from=$recurr_commission_rate}
|
||||
{if $item}
|
||||
<tr>
|
||||
<td width="50%">
|
||||
{translate module=affiliate}tier{/translate} {math equation="x+y" x=$key y=1}
|
||||
</td>
|
||||
<td width="50%" align="right">
|
||||
{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}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}{/foreach}
|
||||
</table>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
631
themes/default/blocks/affiliate/view.tpl
Normal file
631
themes/default/blocks/affiliate/view.tpl
Normal file
@@ -0,0 +1,631 @@
|
||||
{ $method->exe("affiliate","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
|
||||
|
||||
{literal}
|
||||
<script src="themes/{/literal}{$THEME_NAME}{literal}/view.js"></script>
|
||||
<script language="JavaScript">
|
||||
var module = 'affiliate';
|
||||
var locations = '{/literal}{$VAR.module_id}{literal}';
|
||||
var id = '{/literal}{$VAR.id}{literal}';
|
||||
var ids = '{/literal}{$VAR.ids}{literal}';
|
||||
var array_id = id.split(",");
|
||||
var array_ids = ids.split(",");
|
||||
var num=0;
|
||||
if(array_id.length > 2) {
|
||||
document.location = '?_page='+module+':view&id='+array_id[0]+'&ids='+id;
|
||||
}else if (array_ids.length > 2) {
|
||||
document.write(view_nav_top(array_ids,id,ids));
|
||||
}
|
||||
|
||||
// Mass update, view, and delete controller
|
||||
function delete_record(id,ids)
|
||||
{
|
||||
temp = window.confirm("{/literal}{translate}alert_delete{/translate}{literal}");
|
||||
if(temp == false) return;
|
||||
|
||||
var replace_id = id + ",";
|
||||
ids = ids.replace(replace_id, '');
|
||||
if(ids == '') {
|
||||
var url = '?_page=core:search&module=' + module + '&do[]=' + module + ':delete&delete_id=' + id + COOKIE_URL;
|
||||
window.location = url;
|
||||
return;
|
||||
} else {
|
||||
var page = 'view&id=' +ids;
|
||||
}
|
||||
|
||||
var doit = 'delete';
|
||||
var url = '?_page='+ module +':'+ page +'&do[]=' + module + ':' + doit + '&delete_id=' + id + COOKIE_URL;
|
||||
window.location = url;
|
||||
}
|
||||
// END -->
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
<!-- Loop through each record -->
|
||||
{foreach from=$affiliate item=affiliate}
|
||||
|
||||
<!-- Display the field validation -->
|
||||
{if $form_validation}
|
||||
{ $block->display("core:alert_fields") }
|
||||
{/if}
|
||||
|
||||
<!-- Display each record -->
|
||||
<form id="affiliate_view" name="affiliate_view" method="post" action="">
|
||||
|
||||
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=affiliate}
|
||||
title_view
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%"> <b> {$affiliate.id} <a href="?_page=account_admin:mail_one&mail_account_id={$affiliate.account_id}"><img src="themes/{$THEME_NAME}/images/icons/mail_16.gif" border="0" width="16" height="16"></a></b></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_date_orig
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{$list->date_time($affiliate.date_orig)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_date_last
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{$list->date_time("")}
|
||||
<input type="hidden" name="affiliate_date_last" value="{$smarty.now}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_status
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->bool("affiliate_status", $affiliate.status, "onChange=\"submit()\"") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_account_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{html_select_account name="affiliate_account_id" default=$affiliate.account_id}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_parent_affiliate_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{html_select_affiliate name="affiliate_parent_affiliate_id" default=$affiliate.parent_affiliate_id}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_avail_campaign_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->menu_multi($affiliate.avail_campaign_id, "affiliate_avail_campaign_id", "campaign", "name", "", "2", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_max_tiers
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" id="affiliate_max_tiers" name="affiliate_max_tiers" value="{$affiliate.max_tiers}" size="5" onChange="TierUpdate();">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_commission_minimum
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="affiliate_commission_minimum" value="{$affiliate.commission_minimum}" size="5">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_recurr_max_commission_periods
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="affiliate_recurr_max_commission_periods" value="{$affiliate.recurr_max_commission_periods}" size="5">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_new_commission_type
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<select name="affiliate_new_commission_type" onChange="document.getElementById('affiliate_view').submit()">
|
||||
<option value="0"{if $affiliate.new_commission_type == "0"} selected{/if}>
|
||||
{translate module=affiliate}
|
||||
none
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="1"{if $affiliate.new_commission_type == "1"} selected{/if}>
|
||||
{translate module=affiliate}
|
||||
percent
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="2"{if $affiliate.new_commission_type == "2"} selected{/if}>
|
||||
{translate module=affiliate}
|
||||
flat
|
||||
{/translate}
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
field_recurr_commission_type
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<select name="affiliate_recurr_commission_type" onChange="document.getElementById('affiliate_view').submit()">
|
||||
<option value="0"{if $affiliate.recurr_commission_type == "0"} selected{/if}>
|
||||
{translate module=affiliate}
|
||||
none
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="1"{if $affiliate.recurr_commission_type == "1"} selected{/if}>
|
||||
{translate module=affiliate}
|
||||
percent
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="2"{if $affiliate.recurr_commission_type == "2"} selected{/if}>
|
||||
{translate module=affiliate}
|
||||
flat
|
||||
{/translate}
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{foreach from=$affiliate.static_var item=record}
|
||||
<tr valign="top">
|
||||
<td width="37%" valign="top">
|
||||
{$record.name}
|
||||
</td>
|
||||
<td width="63%">
|
||||
{$record.html}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
<tr valign="top">
|
||||
<td width="37%" valign="top">
|
||||
{translate module=affiliate}
|
||||
field_affiliate_plugin
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="63%">
|
||||
{ $list->menu_files("", "affiliate_affiliate_plugin", $affiliate.affiliate_plugin, "affiliate_plugin", "", ".php", "\" onChange=\"document.getElementById('affiliate_view').submit()") }
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{assign var="afile" value=$affiliate.affiliate_plugin}
|
||||
{assign var="ablock" value="affiliate:plugin_"}
|
||||
{assign var="blockfile" value="$ablock$afile"}
|
||||
{if $afile != 'ACCOUNT_DISCOUNT'}
|
||||
|
||||
{ $block->display($blockfile) }
|
||||
{/if}
|
||||
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="50%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
</td>
|
||||
<td align="right">
|
||||
<input type="button" name="delete" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$affiliate.id}','{$VAR.id}');">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" id="new_0" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_1" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_2" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_3" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_4" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_5" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_6" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_7" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_8" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_9" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_10" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_11" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_12" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_13" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_14" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_15" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_16" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_17" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_18" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_19" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_20" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_21" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_22" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_23" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_24" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_25" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_26" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_27" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_28" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_29" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_30" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_31" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_32" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_33" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_34" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_35" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_36" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_37" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_38" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_39" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_40" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_41" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_42" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_43" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_44" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_45" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_46" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_47" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_48" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_49" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_50" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_51" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_52" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_53" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_54" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_55" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_56" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_57" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_58" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_59" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_60" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_61" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_62" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_63" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_64" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_65" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_66" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_67" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_68" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_69" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_70" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_71" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_72" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_73" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_74" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_75" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_76" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_77" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_78" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_79" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_80" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_81" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_82" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_83" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_84" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_85" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_86" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_87" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_88" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_89" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_90" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_91" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_92" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_93" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_94" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_95" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_96" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_97" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_98" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="new_99" name="affiliate_new_commission_rate[]">
|
||||
<input type="hidden" id="rec_0" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_1" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_2" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_3" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_4" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_5" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_6" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_7" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_8" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_9" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_10" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_11" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_12" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_13" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_14" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_15" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_16" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_17" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_18" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_19" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_20" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_21" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_22" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_23" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_24" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_25" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_26" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_27" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_28" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_29" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_30" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_31" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_32" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_33" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_34" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_35" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_36" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_37" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_38" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_39" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_40" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_41" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_42" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_43" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_44" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_45" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_46" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_47" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_48" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_49" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_50" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_51" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_52" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_53" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_54" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_55" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_56" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_57" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_58" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_59" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_60" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_61" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_62" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_63" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_64" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_65" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_66" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_67" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_68" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_69" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_70" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_71" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_72" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_73" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_74" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_75" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_76" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_77" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_78" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_79" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_80" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_81" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_82" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_83" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_84" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_85" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_86" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_87" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_88" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_89" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_90" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_91" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_92" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_93" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_94" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_95" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_96" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_97" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_98" name="affiliate_recurr_commission_rate[]">
|
||||
<input type="hidden" id="rec_99" name="affiliate_recurr_commission_rate[]">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
<input type="hidden" name="_page" value="affiliate:view">
|
||||
<input type="hidden" name="_page_current" value="affiliate:view">
|
||||
<input type="hidden" name="affiliate_id" value="{$affiliate.id}">
|
||||
<input type="hidden" name="do[]" value="affiliate:update">
|
||||
<input type="hidden" name="id" value="{$VAR.id}">
|
||||
|
||||
</p>
|
||||
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=affiliate}
|
||||
title_statistics
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="50%"> <a href="?_page=core:search&module=session&session_affiliate_id={$affiliate.id}&_escape=1">
|
||||
{translate module=affiliate}
|
||||
sessions
|
||||
{/translate}
|
||||
</a> </td>
|
||||
<td width="50%"> <b>
|
||||
{$affiliate.stats_sessions}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%"> <a href="?_page=core:search&module=account_admin&account_admin_affiliate_id={$affiliate.id}&_escape=1">
|
||||
{translate module=affiliate}
|
||||
accounts
|
||||
{/translate}
|
||||
</a> </td>
|
||||
<td width="50%"><b>
|
||||
{$affiliate.stats_accounts}
|
||||
</b> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%"> <a href="?_page=core:search&module=invoice&invoice_affiliate_id={$affiliate.id}&_escape=1">
|
||||
{translate module=affiliate}
|
||||
invoices
|
||||
{/translate}
|
||||
</a> </td>
|
||||
<td width="50%"><b>
|
||||
{$list->format_currency($affiliate.stats_invoices_amt, '')}
|
||||
(
|
||||
{$affiliate.stats_invoices}
|
||||
)</b> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
commissions
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%"><b>
|
||||
{$list->format_currency($affiliate.stats_commissions, '')}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=affiliate}
|
||||
commissions_due
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%"><b>
|
||||
{$list->format_currency($affiliate.commissions_due, '')}
|
||||
</b></td>
|
||||
</tr>
|
||||
{foreach from=$affiliate.static_var item=record}
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="50%"><iframe name="iframeNewTier" id="iframeNewTier" style="border:0px; width:0px; height:0px;" scrolling="auto" ALLOWTRANSPARENCY="true" frameborder="0" SRC="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe></td>
|
||||
<td align="right" width="50%"><iframe name="iframeRecTier" id="iframeRecTier" style="border:0px; width:0px; height:0px;" scrolling="auto" ALLOWTRANSPARENCY="true" frameborder="0" SRC="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe></td>
|
||||
</tr>
|
||||
</table>
|
||||
{literal}
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
<!-- START
|
||||
|
||||
var new_array = new Array(99);
|
||||
var rec_array = new Array(99);
|
||||
|
||||
// create the hidden fields for the tier rates
|
||||
for(i=0; i<99; i++)
|
||||
{
|
||||
new_array[i] = '';
|
||||
rec_array[i] = '';
|
||||
}
|
||||
{/literal}
|
||||
|
||||
|
||||
{ $list->unserial($affiliate.new_commission_rate,"new_commission_rate") }
|
||||
{foreach key=key item=item from=$new_commission_rate}
|
||||
var key = {$key};
|
||||
{literal}if (key <= 10)
|
||||
{ {/literal}
|
||||
new_array[key] = '{$item}';
|
||||
UpdateTierValueNew(key,"{$item}") ;
|
||||
}
|
||||
{/foreach}
|
||||
|
||||
{ $list->unserial($affiliate.recurr_commission_rate,"recurr_commission_rate") }
|
||||
{foreach key=key item=item from=$recurr_commission_rate}
|
||||
var key = {$key};
|
||||
{literal}if (key <= 10)
|
||||
{ {/literal}
|
||||
rec_array[key] = '{$item}';
|
||||
UpdateTierValueRecur(key,"{$item}");
|
||||
}
|
||||
{/foreach}
|
||||
|
||||
{literal}
|
||||
function UpdateTierValueNew(id,value) { new_array[id] = value; document.getElementById('new_'+id).value = value; }
|
||||
function UpdateTierValueRecur(id,value) { rec_array[id] = value; document.getElementById('rec_'+id).value = value; }
|
||||
function GetTierValueNew(id) { return new_array[id]; }
|
||||
function GetTierValueRecur(id) { return rec_array[id]; }
|
||||
function TierUpdate()
|
||||
{
|
||||
var tiers = document.getElementById('affiliate_max_tiers').value;
|
||||
|
||||
if(tiers > 99)
|
||||
{
|
||||
tiers = 99;
|
||||
document.getElementById('affiliate_max_tiers').value = 99;
|
||||
}
|
||||
showIFrame('iframeNewTier',300,300,'?_page=affiliate:new_tier_iframe&_escape=1&tiers='+tiers);
|
||||
showIFrame('iframeRecTier',300,300,'?_page=affiliate:recurr_tier_iframe&_escape=1&tiers='+tiers);
|
||||
}
|
||||
TierUpdate();
|
||||
// END -->
|
||||
</SCRIPT>{/literal}
|
||||
</form>
|
||||
{/foreach}
|
||||
{/if}
|
Reference in New Issue
Block a user