Initial Commit of AgileBill Open Source

This commit is contained in:
unknown
2008-11-26 14:50:40 -08:00
parent ae5a0fc25e
commit 02306ccc47
2954 changed files with 410976 additions and 0 deletions

View File

@@ -0,0 +1,262 @@
{if $smarty.const.SESS_LOGGED != true }
{ $block->display("account:login") }
{else}
{if $list->is_installed('radius') }
{$block->display('radius:user')}
{/if}
{$method->exe("invoice","has_unpaid")}
{if $has_unpaid}
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0" class="body">
<tr>
<td valign="top" align="center" width="35%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<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="row1">
<table width="100%" border="0" cellspacing="5" cellpadding="1" class="row1">
<tr>
<td width="74%"> <div align="center">{translate module=invoice total=$has_unpaid}due_invoices_notice{/translate}</div></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>&nbsp;</p>
{/if}
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0" class="body">
<tr>
<td valign="top" align="center" width="35%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<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="row1">
<table width="100%" border="0" cellspacing="5" cellpadding="1" class="row1">
<tr>
<td width="74%">
<div align="center">
<a href="{$SSL_URL}?_page=account:view">{translate module=account}account_link{/translate}</a><br>
<a href="{$SSL_URL}?_page=core:user_search&module=account_billing&_next_page=user_search_show&_next_page_one=user_view">{translate module=account}billing_link{/translate}</a><br>
<a href="{$SSL_URL}?_page=core:user_search&module=discount&_next_page=user_search_show">{translate module=account}discount_link{/translate}</a> <br>
{if $smarty.const.SHOW_CONTACT_LINK}
<a href="?_page=staff:staff">{translate}contact{/translate}</a><br>
{/if}
{if $smarty.const.SHOW_NEWSLETTER_LINK}
<a href="?_page=newsletter:newsletter">{translate module=account}newsletter_link{/translate}</a> <br>
{/if}
{if $list->is_installed('affiliate') && $smarty.const.SHOW_AFFILIATE_LINK == 1 }
<a href="{$SSL_URL}?_page=affiliate:affiliate">{translate module=account}affiliate_link{/translate}</a>
{/if}
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>&nbsp;</p>
<table width="600" border="0" cellpadding="0" class="body" cellspacing="0" align="center">
<tr>
<td align="center" valign="top">
<table width="200" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td valign="top" align="center" width="35%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<form name="form1" method="post" action="">
<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=invoice}
menu
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="5" cellpadding="1" class="row1">
<tr>
<td width="74%">
{translate module=invoice}
{/translate}
Due Invoices</td>
<td width="26%" align="right"> <a href="{$SSL_URL}?_page=core:user_search&module=invoice&_next_page=user_search_show&invoice_billing_status=0&_next_page_one=user_view">
{translate module=invoice}
menu_view
{/translate}
</a> </td>
</tr>
<tr>
<td width="74%">
{translate module=invoice}
{/translate}
Paid Invoices</td>
<td width="26%" align="right"> <a href="{$SSL_URL}?_page=core:user_search&module=invoice&_next_page=user_search_show&invoice_billing_status=1&_next_page_one=user_view">
{translate module=invoice}
menu_view
{/translate}
</a></td>
</tr>
<tr>
<td width="74%">
{translate module=invoice}
{/translate}
All Invoices</td>
<td width="26%" align="right"> <a href="{$SSL_URL}?_page=core:user_search&module=invoice&_next_page=user_search_show&_next_page_one=user_view">
{translate module=invoice}
menu_view
{/translate}
</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td align="center" valign="top">
<table width="200" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td valign="top" align="center" width="35%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<form name="form1" method="post" action="">
<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=service}
menu
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="5" cellpadding="1" class="row1">
<tr>
<td width="74%"> Active Services</td>
<td width="26%" align="right"> <a href="{$SSL_URL}?_page=core:user_search&module=service&_next_page=user_search_show&service_active=1&_next_page_one=user_view">
{translate module=invoice}
menu_view
{/translate}
</a> </td>
</tr>
<tr>
<td width="74%"> Inactive Services</td>
<td width="26%" align="right"> <a href="{$SSL_URL}?_page=core:user_search&module=service&_next_page=user_search_show&service_active=0&_next_page_one=user_view">
{translate module=invoice}
menu_view
{/translate}
</a></td>
</tr>
<tr>
<td width="74%"> All Services</td>
<td width="26%" align="right"> <a href="{$SSL_URL}?_page=core:user_search&module=service&_next_page=user_search_show&_next_page_one=user_view">
{translate module=invoice}
menu_view
{/translate}
</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<br>
<table width="600" align="center">
<tr align="center">
{if $list->is_installed('ticket') && $smarty.const.SHOW_TICKET_LINK == 1 }
<td valign="top">
{$block->display('ticket:user')}
</td>
{/if}
{if $list->is_installed('file') }
<td valign="top">
{$block->display('file:file')}
</td>
{/if}
{if $list->is_installed('htaccess') }
<td valign="top">
{$block->display('htaccess:htaccess')}
</td>
{/if}
</table>
<!-- custom tracking code -->
{ $method->exe("invoice","custom_tracking") }
{/if}

View File

@@ -0,0 +1,317 @@
<!-- Make sure user is logged out -->
{if $smarty.const.SESS_LOGGED}
{literal}<script language="javascript">document.location='?_page=account:account';</script>{/literal}
{else}
<!-- Load the JSCalender code -->
<link rel="stylesheet" type="text/css" media="all" href="includes/jscalendar/calendar-blue.css" title="win2k-1" />
<script type="text/javascript" src="includes/jscalendar/calendar_stripped.js"></script>
<script type="text/javascript" src="includes/jscalendar/lang/calendar-{$smarty.const.LANG}.js"></script>
<script type="text/javascript" src="includes/jscalendar/calendar-setup_stripped.js"></script>
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display the form to collect the input values -->
<form id="account_add" name="account_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">
<div align="center">
{translate module=account}
title_add
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" >
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1" >
<tr valign="top" >
<td width="43%">
{translate module=account}
field_username
{/translate}
</td>
<td width="57%">
<input type="text" name="account_username" value="{$VAR.account_username}" {if $account_username == true}class="form_field_error"{else}{/if}>
</td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_password
{/translate}
</td>
<td width="57%">
<input type="password" name="account_password" {if $account_password == true}class="form_field_error"{/if} value="{$confirm_account_password}">
</td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_confirm_password
{/translate}
</td>
<td width="57%">
<input type="password" name="confirm_password" {if $account_password == true}class="form_field_error"{/if} value="{$confirm_account_password}">
</td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_email
{/translate}
</td>
<td width="57%">
<input type="text" name="account_email" value="{$VAR.account_email}" {if $account_email == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_company
{/translate}
</td>
<td width="57%">
<input type="text" name="account_company" value="{$VAR.account_company}" {if $account_company == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_first_name
{/translate}
</td>
<td width="57%">
<input type="text" name="account_first_name" value="{$VAR.account_first_name}" {if $account_first_name == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_middle_name
{/translate}
</td>
<td width="57%">
<input type="text" name="account_middle_name" value="{$VAR.account_middle_name}" {if $account_middle_name == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_last_name
{/translate}
</td>
<td width="57%">
<input type="text" name="account_last_name" value="{$VAR.account_last_name}" {if $account_last_name == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_title
{/translate}
</td>
<td width="57%">
<select name="account_title">
<option value="Mr"{if $VAR.account_title == "Mr"} selected{/if}>
{translate module=account}
mr
{/translate}
</option>
<option value="Ms"{if $VAR.account_title == "Ms"} selected{/if}>
{translate module=account}
ms
{/translate}
</option>
<option value="Mrs"{if $VAR.account_title == "Mrs"} selected{/if}>
{translate module=account}
mrs
{/translate}
</option>
<option value="Miss"{if $VAR.account_title == "Miss"} selected{/if}>
{translate module=account}
miss
{/translate}
</option>
<option value="Dr"{if $VAR.account_title == "Dr"} selected{/if}>
{translate module=account}
dr
{/translate}
</option>
<option value="Prof"{if $VAR.account_title == "Prof"} selected{/if}>
{translate module=account}
prof
{/translate}
</option>
</select>
</td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_address1
{/translate}
</td>
<td width="57%">
<input type="text" name="account_address1" value="{$VAR.account_address1}" {if $account_address1 == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_address2
{/translate}
</td>
<td width="57%">
<input type="text" name="account_address2" value="{$VAR.account_address2}" {if $account_address2 == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_city
{/translate}
</td>
<td width="57%">
<input type="text" name="account_city" value="{$VAR.account_city}" {if $account_city == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_state
{/translate}
</td>
<td width="57%">
<input type="text" name="account_state" value="{$VAR.account_state}" {if $account_state == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_zip
{/translate}
</td>
<td width="57%">
<input type="text" name="account_zip" value="{$VAR.account_zip}" {if $account_zip == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_country_id
{/translate}
</td>
<td width="57%">
{if $VAR.account_country_id != ""}
{ $list->menu("no", "account_country_id", "country", "name", $VAR.account_country_id, "form_field\" onChange=\"taxIdsDisplay(this.value)") }
{else}
{ $list->menu("no", "account_country_id", "country", "name", $smarty.const.DEFAULT_COUNTRY, "form_field\" onChange=\"taxIdsDisplay(this.value)") }
{/if}
</td>
</tr>
{ $method->exe_noauth("tax","get_tax_ids")}
{if $tax_ids}
<script language="javascript">
{if $VAR.account_country_id != ""}
var countryId='{$VAR.account_country_id}';
{else}
var countryId='{$smarty.const.DEFAULT_COUNTRY}';
{/if}
{literal}
function taxIdsDisplay(id) {
try{ document.getElementById('tax_country_id_'+id).style.display='block'; } catch(e) {}
try{ document.getElementById('tax_country_id_'+countryId).style.display='none'; } catch(e) {}
countryId=id;
}
{/literal}
</script>
{foreach from=$tax_ids item=tax}
<tr valign="top" id="tax_country_id_{$tax.country_id}" {if $VAR.account_country_id !=''}{if $VAR.account_country_id!=$tax.country_id}{style_hide}{/if}{else}{if $smarty.const.DEFAULT_COUNTRY!=$tax.country_id}{style_hide}{/if}{/if}>
<td width="29%">
{$tax.tax_id_name}
</td>
<td width="71%">
<input type="text" name="account_tax_id[{$tax.country_id}]" value="{$VAR.account_tax_id}" {if $account_tax_id == true}class="form_field_error"{/if}>
<!-- {if $tax.tax_id_exempt}
(or) exempt
<input type="checkbox" name="account_tax_id_exempt[{$tax.country_id}]" value="1"> -->
{/if}
</td>
</tr>
{/foreach}
{/if}
{ $method->exe("account","static_var")}
{foreach from=$static_var item=record}
<tr valign="top">
<td width="29%">
{$record.name}
</td>
<td width="71%">
{$record.html}
</td>
</tr>
{/foreach}
{ if $smarty.const.NEWSLETTER_REGISTRATION == "1"}
<tr valign="top" >
<td width="43%">
{translate module=account}
subscribe_newsletters
{/translate}
</td>
<td width="57%">
{ $method->exe("newsletter", "check_list_registration") }
</td>
{/if}
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_email_html
{/translate}
</td>
<td width="57%">
{ $list->bool("account_email_type", $VAR.account_email_type, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="43%">&nbsp;</td>
<td width="57%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="{$VAR._page}">
{if $VAR._page == ""}
<input type="hidden" name="_page_current" value="account:account">
{else}
<input type="hidden" name="_page_current" value="{$VAR._page}">
{/if}
<input type="hidden" name="do[]" value="account:add">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}

View File

@@ -0,0 +1,107 @@
{if $smarty.const.SESS_LOGGED == true }
{ $block->display("account:account") }
{else}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td valign="top" align="center" width="35%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<form name="form1" method="post" action="">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<div align="center">
{translate}
account_login
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="5" cellpadding="1" class="row1">
<tr>
<td width="25%">
{translate}
username
{/translate}
</td>
<td width="75%">
<input type="text" name="_username" id="loginUsername" value="{$VAR._username}" size="12">
</td>
</tr>
<tr>
<td width="25%">
{translate}
password
{/translate}
</td>
<td width="75%">
<input type="password" name="_password" size="12">
</td>
</tr>
<tr>
<td width="25%">
<input type="hidden" name="_login" value="Y">
{if $VAR._page != ""}
<input type="hidden" name="_page" value="{$VAR._page}">
{else}
<input type="hidden" name="_page" value="account:account">
{/if}
{if $VAR._htaccess_id != "" || $VAR._htaccess_dir_id != ""}
<input type="hidden" name="_htaccess_id" value="{$VAR._htaccess_id}">
<input type="hidden" name="_htaccess_dir_id" value="{$VAR._htaccess_dir_id}">
{/if}
</td>
<td width="75%">
<input type="submit" name="_login2" value="{translate}login{/translate}" class="form_button">
</td>
</tr>
<tr align="right">
<td colspan="2"><a href="?_page=account:password">
{translate}
reset_password
{/translate}
</a></td>
</tr>
{if $smarty.const.DEFAULT_ACCOUNT_STATUS == "1"}
<tr align="right">
<td colspan="2"><a href="?_page=account:verify">
{translate}
verify
{/translate}
</a></td>
</tr>
{/if}
</table>
</td>
</tr>
</table>
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<script language="javascript">document.getElementById('loginUsername').focus()</script>
</td>
<td width="1" height="1"><img src="themes/{$THEME_NAME}/images/invisible.gif" width="15" height="1"></td>
<td align="center" valign="top" width="65%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
{ $block->display("account:add") }
</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}

View File

@@ -0,0 +1,40 @@
{if $SESS_LOGGED != "1"} {translate}login_required{/translate}<br>
<br>
{ $block->display("account:login")}
{else}
<br>
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="5">
<tr valign="top">
<td width="65%" class="row1">
{ $method->exe("htaccess","check_smarty") }
{if $htaccess_auth == "1" }
{translate module=htaccess}
success_login
{/translate}
<a href="{$VAR._next_page}"><br>
<br>
{$VAR._next_page}
</a>
<script language="JavaScript">
var module= "";
var delay = 3;
var url = '{$VAR._next_page}';
refresh(delay,url);
</script>
<br>
{else}
{translate module=htaccess}
failed_login
{/translate}
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
{/if}

View File

@@ -0,0 +1,40 @@
{if $SESS_LOGGED != "1"} {translate}login_required{/translate}<br>
<br>
{ $block->display("account:login_small")}
{else}
<br>
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="5">
<tr valign="top">
<td width="65%" class="row1">
{ $method->exe("htaccess","check_smarty") }
{if $htaccess_auth == "1" }
{translate module=htaccess}
success_login
{/translate}
<a href="{$htaccess_url}"><br>
<br>
{$htaccess_url}
</a>
<script language="JavaScript">
var module= "";
var delay = 5;
var url = '{$htaccess_url}';
refresh(delay,url);
</script>
<br>
{else}
{translate module=htaccess}
failed_login
{/translate}
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
{/if}

View File

@@ -0,0 +1,61 @@
<form name="form1" method="post" action="">
<table width="140" border="0" cellspacing="3" cellpadding="3" align="center" class="body" bordercolor="#FFFFE1">
<tr>
<td width="48%"> <b>
{translate}
username
{/translate}
</b><br>
<input type="text" name="_username" value="{$VAR._username}" size="10" />
</td>
</tr>
<tr>
<td width="48%"> <b>
{translate}
password
{/translate}
</b><br>
<input type="password" name="_password" size="10">
</td>
</tr>
<tr>
<td width="48%">
<input type="hidden" name="_login" value="Y">
{if $VAR._page == ""}
<input type="hidden" name="_page" value="account:account">
{else}
<input type="hidden" name="_page" value="{$VAR._page}">
{/if}
{if $VAR._htaccess_id != "" || $VAR._htaccess_dir_id != ""}
<input type="hidden" name="_htaccess_id" value="{$VAR._htaccess_id}">
<input type="hidden" name="_htaccess_dir_id" value="{$VAR._htaccess_dir_id}">
{/if}
<input type="submit" name="_login" value="{translate}login{/translate}" class="form_button">
</td>
</tr>
<tr>
<td width="48%"><a href="{$SSL_URL}?_page=account:add">
{translate}
register
{/translate}
</a></td>
</tr>
<tr>
<td width="48%"> <a href="{$SSL_URL}?_page=account:password">
{translate}
reset_password
{/translate}
</a></td>
</tr>
{if $smarty.const.DEFAULT_ACCOUNT_STATUS == "1"}
<tr>
<td width="48%"> <a href="{$SSL_URL}?_page=account:verify">
{translate}
verify
{/translate}
</a> </td>
</tr>
{/if}
</table>
</form>

View File

@@ -0,0 +1,73 @@
<form name="update_form" 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}
title_password_reset
{/translate}
</div>
</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="31%">
{translate module=account}
password_reset
{/translate}
<br>
<br>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="middle" align="left">
<td width="29%">
{translate module=account}
field_email
{/translate}
</td>
<td width="71%">
<input type="text" name="account_email" value="{$VAR.account_email}" size="22">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="29%">
{translate module=account}
field_username
{/translate}
</td>
<td width="71%">
<input type="text" name="account_username" value="{$VAR.account_username}" size="22">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="29%"></td>
<td width="71%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
</td>
</tr>
</table>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="account:password">
<input type="hidden" name="do[]" value="account:password">
</form>

View File

@@ -0,0 +1,90 @@
{if $VAR.validate == ""} {translate module=account here="test"}password_reset_bad_url
{/translate}
<br>
<br>
<a href="?_page=account:password">{translate}submit{/translate}</a><br>
{elseif $pw_changed != true}
{if $VAR.type == 'expired'}
<p><b>Your current password has expired. Please select a new password below in order to login.</b></p>
{/if}
<form name="update_form" 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}
title_password_new
{/translate}
</div>
</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="31%">
{translate module=account}
password_reset_instructions
{/translate}
<br>
<br>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="middle" align="left">
<td width="29%">
{translate module=account}
field_update_password
{/translate}
</td>
<td width="71%">
<input type="password" name="account_password" value="" size="32">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="29%">
{translate module=account}
field_confirm_password
{/translate}
</td>
<td width="71%">
<input type="password" name="confirm_password" value="" size="32">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="29%"></td>
<td width="71%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
</td>
</tr>
</table>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="account:password_reset">
<input type="hidden" name="do[]" value="account:password_reset">
<input type="hidden" name="validate" value="{$VAR.validate}">
</form>
{else}
{html_button name=account action="document.location='?_page=account:account'"}
{/if}

View File

@@ -0,0 +1,29 @@
<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"> {translate module=account}title_view_sub_account{/translate} </td>
</tr>
<tr valign="top">
<td width="65%" class="row1"><table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row4" valign="top">
<td colspan="2">&nbsp;</td>
<td colspan="2"><div align="right"><a href="?_page=account:sub_account_add&account_company={$account.company}">Add a Sub Account</a></div> </td>
</tr>
{foreach from=$subaccount item=sub}
<tr valign="top">
<td width="25%">{$sub.first_name} {$sub.last_name}</td>
<td width="18%">{$sub.username}</td>
<td width="28%">{$sub.email}</td>
<td width="29%"><div align="right"><a href="?_page=account:view&id={$sub.id}">Sub-Account Management</a></div></td>
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

View File

@@ -0,0 +1,280 @@
<!-- Make sure user is logged out -->
{if !$smarty.const.SESS_LOGGED}
{literal}<script language="javascript">document.location='?_page=account:login';</script>{/literal}
{else}
<!-- Load the JSCalender code -->
<link rel="stylesheet" type="text/css" media="all" href="includes/jscalendar/calendar-blue.css" title="win2k-1" />
<script type="text/javascript" src="includes/jscalendar/calendar_stripped.js"></script>
<script type="text/javascript" src="includes/jscalendar/lang/calendar-{$smarty.const.LANG}.js"></script>
<script type="text/javascript" src="includes/jscalendar/calendar-setup_stripped.js"></script>
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display the form to collect the input values -->
<form id="account_add" name="account_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">
<div align="center">
{translate module=account}
title_add_sub_account
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" >
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1" >
<tr valign="top" >
<td width="43%">
{translate module=account}
field_username
{/translate} </td>
<td width="57%">
<input type="text" name="account_username" value="{$VAR.account_username}" {if $account_username == true}class="form_field_error"{else}{/if}> </td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_password
{/translate} </td>
<td width="57%">
<input type="password" name="account_password" {if $account_password == true}class="form_field_error"{/if} value="{$confirm_account_password}"> </td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_confirm_password
{/translate} </td>
<td width="57%">
<input type="password" name="confirm_password" {if $account_password == true}class="form_field_error"{/if} value="{$confirm_account_password}"> </td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_email
{/translate} </td>
<td width="57%">
<input type="text" name="account_email" value="{$VAR.account_email}" {if $account_email == true}class="form_field_error"{/if}> </td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_company
{/translate} </td>
<td width="57%">
<input type="text" name="account_company" value="{$VAR.account_company}" {if $account_company == true}class="form_field_error"{/if}> </td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_first_name
{/translate} </td>
<td width="57%">
<input type="text" name="account_first_name" value="{$VAR.account_first_name}" {if $account_first_name == true}class="form_field_error"{/if}> </td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_middle_name
{/translate} </td>
<td width="57%">
<input type="text" name="account_middle_name" value="{$VAR.account_middle_name}" {if $account_middle_name == true}class="form_field_error"{/if}> </td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_last_name
{/translate} </td>
<td width="57%">
<input type="text" name="account_last_name" value="{$VAR.account_last_name}" {if $account_last_name == true}class="form_field_error"{/if}> </td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_title
{/translate} </td>
<td width="57%">
<select name="account_title">
<option value="Mr"{if $VAR.account_title == "Mr"} selected{/if}>
{translate module=account}
mr
{/translate} </option>
<option value="Ms"{if $VAR.account_title == "Ms"} selected{/if}>
{translate module=account}
ms
{/translate} </option>
<option value="Mrs"{if $VAR.account_title == "Mrs"} selected{/if}>
{translate module=account}
mrs
{/translate} </option>
<option value="Miss"{if $VAR.account_title == "Miss"} selected{/if}>
{translate module=account}
miss
{/translate} </option>
<option value="Dr"{if $VAR.account_title == "Dr"} selected{/if}>
{translate module=account}
dr
{/translate} </option>
<option value="Prof"{if $VAR.account_title == "Prof"} selected{/if}>
{translate module=account}
prof
{/translate} </option>
</select> </td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_address1
{/translate} </td>
<td width="57%">
<input type="text" name="account_address1" value="{$VAR.account_address1}" {if $account_address1 == true}class="form_field_error"{/if}> </td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_address2
{/translate} </td>
<td width="57%">
<input type="text" name="account_address2" value="{$VAR.account_address2}" {if $account_address2 == true}class="form_field_error"{/if}> </td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_city
{/translate} </td>
<td width="57%">
<input type="text" name="account_city" value="{$VAR.account_city}" {if $account_city == true}class="form_field_error"{/if}> </td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_state
{/translate} </td>
<td width="57%">
<input type="text" name="account_state" value="{$VAR.account_state}" {if $account_state == true}class="form_field_error"{/if}> </td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_zip
{/translate} </td>
<td width="57%">
<input type="text" name="account_zip" value="{$VAR.account_zip}" {if $account_zip == true}class="form_field_error"{/if}> </td>
</tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_country_id
{/translate} </td>
<td width="57%">
{if $VAR.account_country_id != ""}
{ $list->menu("no", "account_country_id", "country", "name", $VAR.account_country_id, "form_field\" onChange=\"taxIdsDisplay(this.value)") }
{else}
{ $list->menu("no", "account_country_id", "country", "name", $smarty.const.DEFAULT_COUNTRY, "form_field\" onChange=\"taxIdsDisplay(this.value)") }
{/if} </td>
</tr>
{ $method->exe_noauth("tax","get_tax_ids")}
{if $tax_ids}
<script language="javascript">
{if $VAR.account_country_id != ""}
var countryId='{$VAR.account_country_id}';
{else}
var countryId='{$smarty.const.DEFAULT_COUNTRY}';
{/if}
{literal}
function taxIdsDisplay(id) {
try{ document.getElementById('tax_country_id_'+id).style.display='block'; } catch(e) {}
try{ document.getElementById('tax_country_id_'+countryId).style.display='none'; } catch(e) {}
countryId=id;
}
{/literal}
</script>
{foreach from=$tax_ids item=tax}
<tr valign="top" id="tax_country_id_{$tax.country_id}" {if $VAR.account_country_id !=''}{if $VAR.account_country_id!=$tax.country_id}{style_hide}{/if}{else}{if $smarty.const.DEFAULT_COUNTRY!=$tax.country_id}{style_hide}{/if}{/if}>
<td width="29%">
{$tax.tax_id_name} </td>
<td width="71%">
<input type="text" name="account_tax_id[{$tax.country_id}]" value="{$VAR.account_tax_id}" {if $account_tax_id == true}class="form_field_error"{/if}>
<!-- {if $tax.tax_id_exempt}
(or) exempt
<input type="checkbox" name="account_tax_id_exempt[{$tax.country_id}]" value="1"> -->
{/if} </td>
</tr>
{/foreach}
{/if}
{ $method->exe("account","static_var")}
{foreach from=$static_var item=record}
<tr valign="top">
<td width="29%">
{$record.name} </td>
<td width="71%">
{$record.html} </td>
</tr>
{/foreach}
{ if $smarty.const.NEWSLETTER_REGISTRATION == "1"}
<tr valign="top" >
<td width="43%">
{translate module=account}
subscribe_newsletters
{/translate} </td>
<td width="57%">
{ $method->exe("newsletter", "check_list_registration") } </td>
{/if} </tr>
<tr valign="top" >
<td width="43%">
{translate module=account}
field_email_html
{/translate} </td>
<td width="57%">
{ $list->bool("account_email_type", $VAR.account_email_type, "form_menu") } </td>
</tr>
{ $method->exe_noauth("account","get_auth_groups") } {if $groups}
<tr valign="top">
<td width="43%">{translate} authorized_groups {/translate}</td>
<td width="57%">
{foreach from=$groups item=group}
<input name="groups[{$group.id}]" type="checkbox" value="{$group.id}" {if $group.checked}checked{/if}>{$group.name}<br>
{/foreach}
</td>
</tr>
{/if}
<tr valign="top">
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="{$VAR._page}">
{if $VAR._page == ""}
<input type="hidden" name="_page_current" value="account:account">
{else}
<input type="hidden" name="_page_current" value="{$VAR._page}">
{/if}
<input type="hidden" name="do[]" value="account:sub_account_add"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}

View File

@@ -0,0 +1,3 @@
<p><a href="?_page=account:account&id={$account.id}&do[]=account:sub_delete">Delete this Sub-Account</a> (cannot be undone!)</p>
<p><a href="?_page=account:view">Back to account</a></p>

View File

@@ -0,0 +1,157 @@
{if $VAR.verify != ""}
{$method->exe("account","verify")}
{else}
{assign var="verify_results" value="none"}
{/if}
{if $verify_results == "1"}
{translate module=account}
validate_success
{/translate}
{/if}
{if $verify_results == "0"}
{translate module=account}
validate_fail
{/translate}
{/if}
{if $verify_results == false || $VAR.verify == ""}
<form name="update_form" 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}
title_verification_code
{/translate}
</div>
</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="31%">
{translate module=account}
verification_code_instructions
{/translate}
<br>
<br>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="middle" align="left">
<td width="29%">
{translate module=account}
verification_code
{/translate}
</td>
<td width="71%">
<input type="text" name="verify" value="{$VAR.verify}" size="32">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="29%"></td>
<td width="71%">
<input type="submit" name="Submit2" value="{translate}submit{/translate}" class="form_button">
</td>
</tr>
</table>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="account:verify">
</form>
{/if}
{if $verify_results != "1"}
<form name="update_form" 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}
title_verify_resend
{/translate}
</div>
</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="31%">
{translate module=account}
verify_resend_instructions
{/translate}
<br>
<br>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="middle" align="left">
<td width="29%">
{translate module=account}
field_email
{/translate}
</td>
<td width="71%">
<input type="text" name="account_email" value="{$VAR.account_email}" size="22">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="29%">
{translate module=account}
field_username
{/translate}
</td>
<td width="71%">
<input type="text" name="account_username">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="29%"></td>
<td width="71%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
</td>
</tr>
</table>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="account:verify">
<input type="hidden" name="do[]" value="account:verify_resend">
</form>
{/if}

View File

@@ -0,0 +1,369 @@
<!-- Load the JSCalender code -->
<link rel="stylesheet" type="text/css" media="all" href="includes/jscalendar/calendar-blue.css" title="win2k-1" />
<script type="text/javascript" src="includes/jscalendar/calendar_stripped.js"></script>
<script type="text/javascript" src="includes/jscalendar/lang/calendar-{$smarty.const.LANG}.js"></script>
<script type="text/javascript" src="includes/jscalendar/calendar-setup_stripped.js"></script>
{if $smarty.const.SESS_LOGGED != true }
{ $block->display("account:login") }
{else}
{ $method->exe("account","view") } { if ($method->result == FALSE) }
{ $block->display("core:method_error") } {else}
<!-- Loop through each record -->
{foreach from=$account item=account}
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display each record -->
<form id="update_form" name="update_form" 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}
title_view
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row4" valign="top">
<td width="31%">
{translate module=account}
field_date_last
{/translate}
</td>
<td width="69%">
{$list->date_time($account.date_last)}
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%">
{translate module=account}
field_username
{/translate}
</td>
<td width="69%"> <b>
{$account.username}
</b>
<input type="hidden" name="account_username" value="{$account.username}">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%">
{translate module=account}
field_update_password
{/translate}
</td>
<td width="69%">
<input type="text" name="account_password" value="">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%">
{translate module=account}
field_confirm_password
{/translate}
</td>
<td width="69%">
<input type="text" name="confirm_password" value="">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%" height="20">
{translate module=account}
field_email
{/translate}
</td>
<td width="69%" height="20">
<input type="text" name="account_email" value="{$account.email}">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%">
{translate module=account}
field_company
{/translate}
</td>
<td width="69%">
<input type="text" name="account_company" value="{$account.company}">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%">
{translate module=account}
field_first_name
{/translate}
</td>
<td width="69%">
<input type="text" name="account_first_name" value="{$account.first_name}">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%">
{translate module=account}
field_middle_name
{/translate}
</td>
<td width="69%">
<input type="text" name="account_middle_name" value="{$account.middle_name}">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%">
{translate module=account}
field_last_name
{/translate}
</td>
<td width="69%">
<input type="text" name="account_last_name" value="{$account.last_name}">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%">
{translate module=account}
field_title
{/translate}
</td>
<td width="69%">
<select name="account_title" >
<option value="Mr"{if $account.title == "Mr"} selected{/if}>
{translate module=account}
mr
{/translate}
</option>
<option value="Ms"{if $account.title == "Ms"} selected{/if}>
{translate module=account}
ms
{/translate}
</option>
<option value="Mrs"{if $account.title == "Mrs"} selected{/if}>
{translate module=account}
mrs
{/translate}
</option>
<option value="Miss"{if $account.title == "Miss"} selected{/if}>
{translate module=account}
miss
{/translate}
</option>
<option value="Dr"{if $account.title == "Dr"} selected{/if}>
{translate module=account}
dr
{/translate}
</option>
<option value="Prof"{if $account.title == "Prof"} selected{/if}>
{translate module=account}
prof
{/translate}
</option>
</select>
</td>
</tr>
<tr valign="top" class="row1">
<td width="43%">
{translate module=account}
field_address1
{/translate}
</td>
<td width="57%">
<input type="text" name="account_address1" value="{$account.address1}" {if $account_address1 == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top" class="row1">
<td width="43%">
{translate module=account}
field_address2
{/translate}
</td>
<td width="57%">
<input type="text" name="account_address2" value="{$account.address2}" {if $account_address2 == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top" class="row1">
<td width="43%">
{translate module=account}
field_city
{/translate}
</td>
<td width="57%">
<input type="text" name="account_city" value="{$account.city}" {if $account_city == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top" class="row1">
<td width="43%">
{translate module=account}
field_state
{/translate}
</td>
<td width="57%">
<input type="text" name="account_state" value="{$account.state}" {if $account_state == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top" class="row1">
<td width="43%">
{translate module=account}
field_zip
{/translate}
</td>
<td width="57%">
<input type="text" name="account_zip" value="{$account.zip}" {if $account_zip == true}class="form_field_error"{/if}>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%">
{translate module=account}
field_country_id
{/translate}
</td>
<td width="69%">
{ $list->menu("no", "cid", "country", "name", $account.country_id, "form_field\" onChange=\"taxIdsDisplay(this.value)") }
</td>
</tr>
{ $method->exe_noauth("tax","get_tax_ids")}
{if $tax_ids}
<script language="javascript">
{if $VAR.account_country_id != ""}
var countryId='{$VAR.account_country_id}';
{else}
var countryId='{$smarty.const.DEFAULT_COUNTRY}';
{/if}
{literal}
function taxIdsDisplay(id) {
try{ document.getElementById('tax_country_id_'+id).style.display='block'; } catch(e) {}
try{ document.getElementById('tax_country_id_'+countryId).style.display='none'; } catch(e) {}
countryId=id;
}
{/literal}
</script>
{foreach from=$tax_ids item=tax}
<tr class="row1" valign="middle" align="left" id="tax_country_id_{$tax.country_id}" {if $account.country_id!=$tax.country_id}{style_hide}{/if}>
<td width="31%">
{$tax.tax_id_name}
</td>
<td width="69%">
<input type="text" name="account_tax_id[{$tax.country_id}]" value="{$account.tax_id}" {if $account_tax_id == true}class="form_field_error"{/if}>
<!-- {if $tax.tax_id_exempt}
(or) exempt
<input name="account_tax_id_exempt[{$tax.country_id}]" type="checkbox" value="1" {if !$account.tax_id}checked{/if}>
{/if} -->
</td>
</tr>
{/foreach}
{/if}
<tr class="row1" valign="middle" align="left">
<td width="31%">
{translate module=account}
field_language_id
{/translate}
</td>
<td width="69%">
{ $list->menu_files("", "lid", $account.language_id, "language", "", "_core.xml", "form_menu") }
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%">
{translate module=account}
field_currency_id
{/translate}
</td>
<td width="69%">
{$list->currency_list("cyid_arr")}
<select name="cyid">
{foreach key=key item=item from=$cyid_arr}
<option value="{$key}" {if $key == $account.currency_id}{assign var=currency_thumbnail value=$item.iso}selected{/if}>
{$item.iso}
</option>
{/foreach}
</select>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%">
{translate module=account}
field_theme_id
{/translate}
</td>
<td width="69%">
{ $list->menu_files("", "tid", $account.theme_id, "theme", "", ".user_theme", "form_menu") }
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="31%">
{translate module=account}
field_email_html
{/translate}
</td>
<td width="69%">
{ $list->bool("account_email_type", $account.email_type, "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}
{ if $issubaccount }
{ $method->exe_noauth("account","get_auth_groups") } {if $groups}
<tr valign="top">
<td width="43%">{translate} authorized_groups {/translate}</td>
<td width="57%">
{foreach from=$groups item=group}
<input name="groups[{$group.id}]" type="checkbox" value="{$group.id}" {if $group.checked}checked{/if}>{$group.name}<br>
{/foreach}
</td>
</tr>
{/if}
{/if}
<tr class="row1" valign="middle" align="left">
<td width="31%"></td>
<td width="69%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="account_id" value="{$account.id}">
<input type="hidden" name="_page" value="account:view">
<input type="hidden" name="_page_current" value="account:view">
<input type="hidden" name="do[]" value="account:update">
</form>
{if $account.max_child > 0}
{ $block->display("account:sub_account") }
{else if $issubaccount == true}
{ $block->display("account:sub_account_view") }
{/if}
{/foreach}
{/if}
{/if}

View File

@@ -0,0 +1,457 @@
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display the form to collect the input values -->
<form id="account_admin_add" name="account_admin_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">
<div align="center">
{translate module=account_admin}
title_add
{/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" class="row2">
<td width="33%"> <b>
{translate module=account_admin}
field_username
{/translate}
</b></td>
<td width="33%"> <b>
<input type="text" name="account_admin_username" value="{$VAR.account_admin_username}">
</b></td>
<td width="33%">
{translate module=account_admin}
blank_to_autogen
{/translate}
</td>
</tr>
<tr valign="top">
<td width="33%"><b>
{translate module=account_admin}
field_password
{/translate}
</b> </td>
<td width="33%">
<input type="text" name="account_admin_password" value="{$VAR.account_admin_password}">
</td>
<td width="33%">
{translate module=account_admin}
blank_to_autogen
{/translate}
</td>
</tr>
<tr valign="top">
<td width="33%"><b>
{translate module=account_admin}
welcome_email
{/translate}
</b></td>
<td width="33%">
<input type="checkbox" name="welcome_email" value="1" checked>
</td>
<td width="33%">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="33%"> <b>
{translate module=account_admin}
field_status
{/translate}
</b></td>
<td width="33%"> <b>
{translate module=account_admin}
field_email
{/translate}
</b></td>
<td width="33%"> <b>
{translate module=account_admin}
field_company
{/translate}
</b> </td>
</tr>
<tr valign="top">
<td width="33%">
{if $VAR.account_admin_status == "" }
{if $smarty.const.DEFAULT_ACCOUNT_STATUS != "1"}
{ $list->bool("account_admin_status", "1", "form_menu") }
{else}
{ $list->bool("account_admin_status", "0", "form_menu") }
{/if}
{else}
{ $list->bool("account_admin_status", $VAR.account_admin_status, "form_menu") }
{/if}
</td>
<td width="33%">
<input type="text" name="account_admin_email" value="{$VAR.account_admin_email}" {if $account_admin_email == true}class="form_field_error"{/if}>
</td>
<td width="33%">
<input type="text" name="account_admin_company" value="{$VAR.account_admin_company}" {if $account_admin_company == true}class="form_field_error"{/if}>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="33%"> <b>
{translate module=account_admin}
field_first_name
{/translate}
</b></td>
<td width="33%"> <b>
{translate module=account_admin}
field_middle_name
{/translate}
</b></td>
<td width="33%"> <b>
{translate module=account_admin}
field_last_name
{/translate}
</b> </td>
</tr>
<tr valign="top">
<td width="33%">
<input type="text" name="account_admin_first_name" value="{$VAR.account_admin_first_name}" {if $account_admin_first_name == true}class="form_field_error"{/if}>
</td>
<td width="33%">
<input type="text" name="account_admin_middle_name" value="{$VAR.account_admin_middle_name}" {if $account_admin_middle_name == true}class="form_field_error"{/if}>
</td>
<td width="33%">
<input type="text" name="account_admin_last_name" value="{$VAR.account_admin_last_name}" {if $account_admin_last_name == true}class="form_field_error"{/if}>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="33%"> <b>
{translate module=account_admin}
field_title
{/translate}
</b></td>
<td width="33%"> <b>
{translate module=account_admin}
field_address1
{/translate}
</b></td>
<td width="33%"> <b>
{translate module=account_admin}
field_address2
{/translate}
</b> </td>
</tr>
<tr valign="top">
<td width="33%">
<select name="account_admin_title" >
<option value="Mr"{if $VAR.account_admin_title == "Mr"} selected{/if}>
{translate module=account_admin}
mr
{/translate}
</option>
<option value="Ms"{if $VAR.account_admin_title == "Ms"} selected{/if}>
{translate module=account_admin}
ms
{/translate}
</option>
<option value="Mrs"{if $VAR.account_admin_title == "Mrs"} selected{/if}>
{translate module=account_admin}
mrs
{/translate}
</option>
<option value="Miss"{if $VAR.account_admin_title == "Miss"} selected{/if}>
{translate module=account_admin}
miss
{/translate}
</option>
<option value="Dr"{if $VAR.account_admin_title == "Dr"} selected{/if}>
{translate module=account_admin}
dr
{/translate}
</option>
<option value="Prof"{if $VAR.account_admin_title == "Prof"} selected{/if}>
{translate module=account_admin}
prof
{/translate}
</option>
</select>
</td>
<td width="33%">
<input type="text" name="account_admin_address1" value="{$VAR.account_admin_address1}" {if $account_admin_address1 == true}class="form_field_error"{/if}>
</td>
<td width="33%">
<input type="text" name="account_admin_address2" value="{$VAR.account_admin_address2}" {if $account_admin_address2 == true}class="form_field_error"{/if}>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="33%"> <b>
{translate module=account_admin}
field_city
{/translate}
</b></td>
<td width="33%"> <b>
{translate module=account_admin}
field_state
{/translate}
</b></td>
<td width="33%"> <b>
{translate module=account_admin}
field_zip
{/translate}
</b> </td>
</tr>
<tr valign="top">
<td width="33%">
<input type="text" name="account_admin_city" value="{$VAR.account_admin_city}" {if $account_admin_city == true}class="form_field_error"{/if}>
</td>
<td width="33%">
<input type="text" name="account_admin_state" value="{$VAR.account_admin_state}" {if $account_admin_state == true}class="form_field_error"{/if}>
</td>
<td width="33%">
<input type="text" name="account_admin_zip" value="{$VAR.account_admin_zip}" {if $account_admin_zip == true}class="form_field_error"{/if}>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="33%"> <b>
{translate module=account_admin}
field_country_id
{/translate}
</b></td>
<td width="33%"> <b>
{translate module=account_admin}
field_date_expire
{/translate}
</b></td>
<td width="33%"> <b>
{translate module=account_admin}
field_email_html
{/translate}
</b> </td>
</tr>
<tr valign="top">
<td width="33%">
{if $VAR.account_admin_country_id != ""}
{ $list->menu("no", "account_admin_country_id", "country", "name", $VAR.account_admin_country_id, "form_field\" onChange=\"taxIdsDisplay(this.value)") }
{else}
{ $list->menu("no", "account_admin_country_id", "country", "name", $smarty.const.DEFAULT_COUNTRY, "form_field\" onChange=\"taxIdsDisplay(this.value)") }
{/if}
</td>
<td width="33%">
{ $list->calender_add("account_admin_date_expire", $VAR.account_admin_date_expire, "form_field") }
</td>
<td width="33%">
{ $list->bool("account_admin_email_html", $VAR.account_email_type, "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="33%"> <b>
{translate module=account_admin}
field_language_id
{/translate}
</b></td>
<td width="33%"> <b>
{translate module=account_admin}
field_theme_id
{/translate}
</b></td>
<td width="33%"> <b>
{translate module=account_admin}
field_currency_id
{/translate}
</b> </td>
</tr>
<tr valign="top">
<td width="33%">
{if $VAR.account_admin_language_id != ""}
{ $list->menu_files("", "account_admin_language_id", $VAR.account_admin_language_id, "language", "", "_core.xml", "form_menu") }
{else}
{ $list->menu_files("", "account_admin_language_id", $smarty.const.DEFAULT_LANGUAGE, "language", "", "_core.xml", "form_menu") }
{/if}
</td>
<td width="33%">
{if $VAR.account_admin_theme_id != ""}
{ $list->menu_files("", "account_admin_theme_id", $VAR.account_admin_theme_id, "theme", "", ".user_theme", "form_menu") }
{else}
{ $list->menu_files("", "account_admin_theme_id", $smarty.const.DEFAULT_THEME, "theme", "", ".user_theme", "form_menu") }
{/if}
</td>
<td width="33%">
{if $VAR.account_admin_currency_id != ""}
{ $list->menu("no", "account_admin_currency_id", "currency", "name", $VAR.account_admin_currency_id, "form_menu") }
{else}
{ $list->menu("no", "account_admin_currency_id", "currency", "name", $smarty.const.DEFAULT_CURRENCY, "form_menu") }
{/if}
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="33%"> <b>
{translate}
authorized_groups
{/translate}
</b></td>
<td width="33%"> <b>
{if $list->is_installed('affiliate') }
{translate module=account_admin}
field_affiliate_id
{/translate}
{/if}
</b></td>
<td width="33%"> <b>
{translate module=account_admin}
field_misc
{/translate}
</b> </td>
</tr>
<tr valign="top">
<td width="33%">
{ $list->select_groups($VAR.groups,"groups","form_field","10","") }
</td>
<td width="33%">
{if $list->is_installed('affiliate') }
{html_select_affiliate name="account_admin_affiliate_id" default=$VAR.account_admin_affiliate_id}
<br>
<br>
<b>
{translate module=account_admin}
field_campaign_id
{/translate}</b>
<br>
{ $list->menu("no", "account_admin_campaign_id", "campaign", "name", $VAR.account_admin_campaign_id, "", all) }
{/if}
</td>
<td width="33%">
<textarea name="account_admin_misc" cols="25" rows="2" {if $account_admin_misc == true}class="form_field_error"{/if}>{$VAR.account_admin_misc}</textarea>
</td>
</tr>
</table>
</td>
</tr>
{ $method->exe_noauth("tax","get_tax_ids")}
{if $tax_ids}
<script language="javascript">
{if $VAR.account_country_id != ""}
var countryId='{$VAR.account_country_id}';
{else}
var countryId='{$smarty.const.DEFAULT_COUNTRY}';
{/if}
{literal}
function taxIdsDisplay(id) {
try{ document.getElementById('tax_country_id_'+id).style.display='block'; } catch(e) {}
try{ document.getElementById('tax_country_id_'+countryId).style.display='none'; } catch(e) {}
countryId=id;
}
{/literal}
</script>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
{foreach from=$tax_ids item=tax}
<tr valign="top" id="tax_country_id_{$tax.country_id}" {if $VAR.account_admin_country_id !=''}{if $VAR.account_admin_country_id!=$tax.country_id}{style_hide}{/if}{else}{if $smarty.const.DEFAULT_COUNTRY!=$tax.country_id}{style_hide}{/if}{/if}>
<td width="33%">
{$tax.tax_id_name}
</td>
<td width="67%">
<input type="text" name="account_admin_tax_id[{$tax.country_id}]" {if $account_admin_tax_id == true}class="form_field_error"{/if}>
<!-- {if $tax.tax_id_exempt}
(or) exempt
<input type="checkbox" name="account_tax_id_exempt[{$tax.country_id}]" value="1">
{/if} -->
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
{/if}
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
{ $method->exe("account","static_var")}
{foreach from=$static_var item=record}
<tr valign="top">
<td width="33%">
{$record.name}
</td>
<td width="67%">
{$record.html}
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
{ $method->exe("account","static_var")}
{ $block->display("core:method_error") }
{foreach from=$static_var item=record}
{/foreach}
<tr valign="top">
<td width="33%">&nbsp;</td>
<td width="67%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="account_admin:view">
<input type="hidden" name="_page_current" value="account_admin:add">
<input type="hidden" name="do[]" value="account_admin:add">
{if $VAR.account_admin_account_id}
<input type="hidden" name="account_admin_parent_id" value="{$VAR.account_admin_account_id}">
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,102 @@
{ $block->display("core:top_clean") }
{ $method->exe("account_admin","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" align="center">
<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%">
{html_select_account name="mail_account_id" default=$VAR.mail_account_id}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
mail_subject
{/translate}
</td>
<td width="65%">
<input id="focus" 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="4">{$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%">&nbsp;</td>
<td width="65%">
<input type="submit" name="Submit2" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="account_admin:iframe_mail_one">
<input type="hidden" name="do[]" value="account_admin:mail_one">
<input type="hidden" name="_escape" value="1">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<script language="JavaScript">
document.getElementById('focus').focus();
</script>
{/if}

View File

@@ -0,0 +1,96 @@
{ $method->exe("account_admin","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=account_admin: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%">&nbsp;</td>
<td width="65%">
<input type="submit" name="Submit2" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="account_admin:mail_multi">
<input type="hidden" name="do[]" value="account_admin:mail_multi">
<input type="hidden" name="search_id" value="{$VAR.search_id}">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}

View File

@@ -0,0 +1,96 @@
{ $method->exe("account_admin","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%">
{html_select_account name="mail_account_id" default=$VAR.mail_account_id}
</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%">&nbsp;</td>
<td width="65%">
<input type="submit" name="Submit2" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="account_admin:mail_one">
<input type="hidden" name="do[]" value="account_admin:mail_one">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}

View File

@@ -0,0 +1,55 @@
<form name="account_admin_merge" 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_merge
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="6" cellpadding="1" class="row1">
<tr valign="top">
<td width="35%">
{translate module=account_admin}
merge_account
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">&nbsp; </td>
</tr>
<tr valign="top">
<td width="35%" align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td width="48%">
{html_select_account name="merge_acct_id"}
</td>
<td align="right" width="52%">
<input type="submit" name="Submit2" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="account_admin:merge">
<input type="hidden" name="do[]" value="account_admin:merge">
<input type="hidden" name="id" value="{$VAR.id}">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,567 @@
{ $method->exe("account_admin","search_form") }
{ if ($method->result == FALSE) }
{ $block->display("core:method_error") }
{else}
<form name="search_form" 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_search
{/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}
field_username
{/translate}
</td>
<td width="65%">
<input type="text" name="account_admin_username" value="{$VAR.account_admin_username}" >
{translate}
search_partial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_email
{/translate}
</td>
<td width="65%">
<input type="text" name="account_admin_email" value="{$VAR.account_admin_email}" >
{translate}
search_partial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_first_name
{/translate}
</td>
<td width="65%">
<input type="text" name="account_admin_first_name" value="{$VAR.account_admin_first_name}" >
{translate}
search_partial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_middle_name
{/translate}
</td>
<td width="65%">
<input type="text" name="account_admin_middle_name" value="{$VAR.account_admin_middle_name}" >
{translate}
search_partial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_last_name
{/translate}
</td>
<td width="65%">
<input type="text" name="account_admin_last_name" value="{$VAR.account_admin_last_name}" >
{translate}
search_partial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_company
{/translate}
</td>
<td width="65%">
<input type="text" name="account_admin_company" value="{$VAR.account_admin_company}" >
{translate}
search_partial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_address1
{/translate}
</td>
<td width="65%">
<input type="text" name="account_admin_address1" value="{$VAR.account_admin_address1}" >
{translate}
search_partial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_address2
{/translate}
</td>
<td width="65%">
<input type="text" name="account_admin_address2" value="{$VAR.account_admin_address2}" >
{translate}
search_partial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_city
{/translate}
</td>
<td width="65%">
<input type="text" name="account_admin_city" value="{$VAR.account_admin_city}" >
{translate}
search_partial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_state
{/translate}
</td>
<td width="65%">
<input type="text" name="account_admin_state" value="{$VAR.account_admin_state}" >
{translate}
search_partial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_zip
{/translate}
</td>
<td width="65%">
<input type="text" name="account_admin_zip" value="{$VAR.account_admin_zip}" >
{translate}
search_partial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_misc
{/translate}
</td>
<td width="65%">
<input type="text" name="account_admin_misc" value="{$VAR.account_admin_misc}" {if $account_admin_misc == true}class="form_field_error"{/if}>
{translate}
search_partial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_date_orig
{/translate}
</td>
<td width="65%">
{ $list->calender_search("account_admin_date_orig",
$VAR.account_admin_date_orig, "form_field", "") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_date_expire
{/translate}
</td>
<td width="65%">
{ $list->calender_search("account_admin_date_expire",
$VAR.account_admin_date_expire, "form_field", "") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_affiliate_id
{/translate}
</td>
<td width="65%">
{html_select_affiliate name="account_admin_affiliate_id" default=$VAR.account_admin_affiliate_id}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_campaign_id
{/translate}
</td>
<td width="65%">
{ $list->menu("no", "account_admin_campaign_id", "campaign", "name", "all", "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_country_id
{/translate}
</td>
<td width="65%">
{ $list->menu("", "account_admin_country_id",
"country", "name", "all", "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_language_id
{/translate}
</td>
<td width="65%">
{ $list->menu_files("", "account_admin_language_id",
"all", "language", "", "_core.xml", "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_currency_id
{/translate}
</td>
<td width="65%">
{ $list->menu("", "account_admin_currency_id",
"currency", "name", "all", "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_theme_id
{/translate}
</td>
<td width="65%">
{ $list->menu_files("", "account_admin_theme_id",
"all", "theme", "", ".user_theme", "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_status
{/translate}
</td>
<td width="65%">
{ $list->bool("account_admin_status", "all",
"form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
account_group
{/translate}
</td>
<td width="65%">
{ $list->menu("", "account_group", "group", "name", "all", "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
field_title
{/translate}
</td>
<td width="65%">
<select name="account_admin_title" >
<option value=""></option>
<option value="Mr"{if $VAR.account_admin_title == "Mr"} selected{/if}>
{translate module=account_admin}
mr
{/translate}
</option>
<option value="Ms"{if $VAR.account_admin_title == "Ms"} selected{/if}>
{translate module=account_admin}
ms
{/translate}
</option>
<option value="Mrs"{if $VAR.account_admin_title == "Mrs"} selected{/if}>
{translate module=account_admin}
mrs
{/translate}
</option>
<option value="Miss"{if $VAR.account_admin_title == "Miss"} selected{/if}>
{translate module=account_admin}
miss
{/translate}
</option>
<option value="Dr"{if $VAR.account_admin_title == "Dr"} selected{/if}>
{translate module=account_admin}
dr
{/translate}
</option>
<option value="Prof"{if $VAR.account_admin_title == "Prof"} selected{/if}>
{translate module=account_admin}
prof
{/translate}
</option>
</select>
</td>
</tr>
{ $method->exe("account","static_var")}
{foreach from=$static_var item=record}
<tr valign="top">
<td width="35%">
{$record.name}
</td>
<td width="65%">
{$record.html}
</td>
</tr>
{/foreach}
<tr valign="top">
<td width="35%">
{translate}
search_results_per
{/translate}
</td>
<td width="65%">
<input type="text" name="limit" size="5" value="{$account_admin_limit}">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate}
search_order_by
{/translate}
</td>
<td width="65%">
<select name="order_by">
{foreach from=$account_admin item=record}
<option value="{$record.field}">
{$record.translate}
</option>
{/foreach}
</select>
</td>
</tr>
<tr valign="top">
<td width="35%">&nbsp;</td>
<td width="65%">&nbsp;</td>
</tr>
<tr valign="top">
<td width="35%">&nbsp;</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="_next_page_one" value="view">
<input type="hidden" name="_escape" value="Y">
<input type="hidden" name="module" value="account_admin">
</td>
</tr>
<tr valign="top">
<td width="35%">&nbsp;</td>
<td width="65%">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<form name="search_form" 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"> Custom Group Search </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} field_date_orig {/translate} </td>
<td width="65%">
<select name="dates[expr][]">
<option value="<"><</option>
<option value=">">></option>
</select>
{ $list->calender_add("dates[val][]", '', "") } <br>
<select name="dates[expr][]">
<option value="<"><</option>
<option value=">">></option>
</select> { $list->calender_add("dates[val][]", '', "") } </td>
</tr>
<tr valign="top">
<td width="35%"> {translate module=account_admin} account_group {/translate} </td>
<td width="65%"> { $list->menu_multi('', "groups", "group", "name", "10", "all", "form_menu") }
</td>
</tr>
{ $method->exe("account","static_var")} {foreach from=$static_var item=record} {/foreach} <tr valign="top">
<td width="35%">&nbsp;</td>
<td width="65%">&nbsp;</td>
</tr>
<tr valign="top">
<td width="35%">&nbsp;</td>
<td width="65%"><input type="submit" name="Submit" value="{translate}search{/translate}" class="form_button">
<input type="hidden" name="_page" value="core:blank">
<input type="hidden" name="_escape" value="Y">
<input type="hidden" name="do[]" value="account_admin:group_search">
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</form>
<form name="search_form" 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"> Custom Product Search </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} field_date_orig {/translate} </td>
<td width="65%">
<select name="dates[expr][]">
<option value="<"><</option>
<option value=">">></option>
</select>
{ $list->calender_add("dates[val][]", '', "") } <br>
<select name="dates[expr][]">
<option value="<"><</option>
<option value=">">></option>
</select> { $list->calender_add("dates[val][]", '', "") } </td>
</tr>
<tr valign="top">
<td width="35%"> {translate module=account_admin} account_group {/translate} </td>
<td width="65%"> { $list->menu_multi('', "products", "product", "sku", "10", "all", "form_menu") }
</td>
</tr>
{ $method->exe("account","static_var")} {foreach from=$static_var item=record} {/foreach} <tr valign="top">
<td width="35%">&nbsp;</td>
<td width="65%">&nbsp;</td>
</tr>
<tr valign="top">
<td width="35%">&nbsp;</td>
<td width="65%"><input type="submit" name="Submit" value="{translate}search{/translate}" class="form_button">
<input type="hidden" name="_page" value="core:blank">
<input type="hidden" name="_escape" value="Y">
<input type="hidden" name="do[]" value="account_admin:product_search">
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</form>
<br>
<form name="account_billing_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=account_billing}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="35%">
{translate module=account_billing}
field_card_num4
{/translate}</td>
<td width="65%">
<input name="account_billing_card_num4" type="text" size="6" maxlength="4"> </td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_billing}
field_checkout_plugin_id
{/translate}</td>
<td width="65%">
{ $list->menu("no", "account_billing_checkout_plugin_id", "checkout", "name", "all", "form_menu") } </td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_billing}
field_card_type
{/translate}</td>
<td width="65%">
<select name="account_billing_card_type" >
<option value="" {if $VAR.account_billing_card_type == ""}selected{/if}></option>
<option value="visa" {if $VAR.account_billing_card_type == "visa"}selected{/if}> {translate module=checkout} card_type_visa {/translate} </option>
<option value="mc" {if $VAR.account_billing_card_type == "mc"}selected{/if}> {translate module=checkout} card_type_mc {/translate} </option>
<option value="amex" {if $VAR.account_billing_card_type == "amex"}selected{/if}> {translate module=checkout} card_type_amex {/translate} </option>
<option value="discover" {if $VAR.account_billing_card_type == "discover"}selected{/if}> {translate module=checkout} card_type_discover {/translate} </option>
<option value="delta" {if $VAR.account_billing_card_type == "delta"}selected{/if}> {translate module=checkout} card_type_delta {/translate} </option>
<option value="solo" {if $VAR.account_billing_card_type == "solo"}selected{/if}> {translate module=checkout} card_type_solo {/translate} </option>
<option value="switch" {if $VAR.account_billing_card_type == "switch"}selected{/if}> {translate module=checkout} card_type_switch {/translate} </option>
<option value="jcb" {if $VAR.account_billing_card_type == "jcb"}selected{/if}> {translate module=checkout} card_type_jcb {/translate} </option>
<option value="diners" {if $VAR.account_billing_card_type == "diners"}selected{/if}> {translate module=checkout} card_type_diners {/translate} </option>
<option value="carteblanche" {if $VAR.account_billing_card_type == "carteblanche"}selected{/if}> {translate module=checkout} card_type_carteblanche {/translate} </option>
<option value="enroute" {if $VAR.account_billing_card_type == "enroute"}selected{/if}> {translate module=checkout} card_type_enroute {/translate} </option>
</select>
&nbsp; </td>
</tr>
<!-- Define the results per page -->
<!-- Define the order by field per page -->
<tr class="row1" valign="top">
<td width="35%"></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="account_billing">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}
</p>

View File

@@ -0,0 +1,155 @@
{$method->exe("account_admin","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 = 'account_admin';
{/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="3">
<!-- DISPLAY THE SEARCH HEADING -->
<tr valign="middle" align="center" class="table_heading">
<td width="29" class="table_heading">&nbsp;</td>
<td width="20" class="table_heading">&nbsp; </td>
<td width="160" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=account_admin}field_last_name{/translate}{literal}','last_name'));
</script>
{/literal}
</td>
<td width="188" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=account_admin}field_first_name{/translate}{literal}','first_name'));
</script>
{/literal}
</td>
<td width="217" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=account_admin}field_username{/translate}{literal}','username'));
</script>
{/literal}
</td>
<td width="246" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=account_admin}field_email{/translate}{literal}','email'));
</script>
{/literal}
</td>
<td width="120" class="table_heading">&nbsp;</td>
</tr>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$account item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=account_admin: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="29">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td width="20">
{if $record.status == "1"}
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" border="0" width="16" height="16">
{else}
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" border="0" width="16" height="16">
{/if}
</td>
<td width="160"> &nbsp;
{$record.last_name}
</td>
<td width="188"> &nbsp;
{$record.first_name}
</td>
<td width="217"> &nbsp;
{$record.username|truncate:25}
</td>
<td width="246">&nbsp;
{$record.email|truncate:25}
</td>
<td width="120" align="center"> <a href="?_page=account_admin:mail_one&mail_account_id={$record.id}">
<img title="Send E-mail" src="themes/{$THEME_NAME}/images/icons/mail_16.gif" border="0" width="16" height="16"></a>
<a title="Login Logs" href="?_page=core:search&module=login_log&login_log_account_id={$record.id}">
</a> <a title="Sessions" href="?_page=core:search&module=session&session_account_id={$record.id}&_next_page_one=view">
</a> <a title="Services" href="?_page=core:search&module=service&service_account_id={$record.id}&_next_page_one=view">
<img src="themes/{$THEME_NAME}/images/icons/tools_16.gif" alt="{translate module=account_admin}view_login_logs{/translate}" border="0" width="16" height="16"></a>
<a title="Invoices" href="?_page=core:search&module=invoice&invoice_account_id={$record.id}&_next_page_one=view">
<img src="themes/{$THEME_NAME}/images/icons/calc_16.gif" alt="{translate module=account_admin}view_login_logs{/translate}" 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}
<div id="search_results" onKeyPress="key_handler(event);"> </div>
<br>
<center>
<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">
<br><br>
<table width="100%" border="0" cellspacing="0" cellpadding="5" align="center">
<tr>
<td valign="middle" align="center"> <a href="javascript:all_select(record_arr);" onClick="NewWindow('ExportWin','toolbar=no,status=no,width=300,height=175','?_page=core:export_search&module=account_admin&_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=account_admin:mail_multi&search_id={$search_id}"><img src="themes/{$THEME_NAME}/images/icons/mail_32.gif" border="0"></a>
<a href="?_page=account_admin: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=account_admin:search_form"><img src="themes/{$THEME_NAME}/images/icons/srch_32.gif" border="0" alt="{translate}search_new_image{/translate}">
</a> <a href="?_page=account_admin:add"><img src="themes/{$THEME_NAME}/images/icons/add_32.gif" border="0" alt="{translate module=%%module%%}title_add{/translate}"></a>
</td>
</tr>
</table>
</center>
{/if} {/if} </div>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,228 @@
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display the form to collect the input values -->
<form id="account_billing_add" name="account_billing_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=account_billing}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=account_billing}
field_account_id
{/translate}
</td>
<td width="65%">
{html_select_account name="account_billing_accout_id" default=$VAR.account_billing_account_id}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_billing}
field_card_type
{/translate}
</td>
<td width="65%">
<select name="account_billing_card_type" >
<option value="" {if $VAR.account_billing_card_type == ""}selected{/if}></option>
<option value="visa" {if $VAR.account_billing_card_type == "visa"}selected{/if}>
{translate module=checkout}
card_type_visa
{/translate}
</option>
<option value="mc" {if $VAR.account_billing_card_type == "mc"}selected{/if}>
{translate module=checkout}
card_type_mc
{/translate}
</option>
<option value="amex" {if $VAR.account_billing_card_type == "amex"}selected{/if}>
{translate module=checkout}
card_type_amex
{/translate}
</option>
<option value="discover" {if $VAR.account_billing_card_type == "discover"}selected{/if}>
{translate module=checkout}
card_type_discover
{/translate}
</option>
<option value="delta" {if $VAR.account_billing_card_type == "delta"}selected{/if}>
{translate module=checkout}
card_type_delta
{/translate}
</option>
<option value="solo" {if $VAR.account_billing_card_type == "solo"}selected{/if}>
{translate module=checkout}
card_type_solo
{/translate}
</option>
<option value="switch" {if $VAR.account_billing_card_type == "switch"}selected{/if}>
{translate module=checkout}
card_type_switch
{/translate}
</option>
<option value="jcb" {if $VAR.account_billing_card_type == "jcb"}selected{/if}>
{translate module=checkout}
card_type_jcb
{/translate}
</option>
<option value="diners" {if $VAR.account_billing_card_type == "diners"}selected{/if}>
{translate module=checkout}
card_type_diners
{/translate}
</option>
<option value="carteblanche" {if $VAR.account_billing_card_type == "carteblanche"}selected{/if}>
{translate module=checkout}
card_type_carteblanche
{/translate}
</option>
<option value="enroute" {if $VAR.account_billing_card_type == "enroute"}selected{/if}>
{translate module=checkout}
card_type_enroute
{/translate}
</option>
</select>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_billing}
field_card_num
{/translate}
</td>
<td width="65%">
<input type="text" name="account_billing_card_num" value="{$VAR.account_billing_card_num}" {if $account_billing_card_num == true}class="form_field_error"{/if} maxlength="16" size="24">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_billing}
field_card_exp_month
{/translate}
</td>
<td width="65%">
{translate module=account_billing}
field_card_exp_year
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
<select name="account_billing_card_exp_month" >
<option value="01" {if $VAR.account_billing_card_exp_month == "1"}selected{/if}>1
(Jan)</option>
<option value="02" {if $VAR.account_billing_card_exp_month == "2"}selected{/if}>2
(Feb)</option>
<option value="03" {if $VAR.account_billing_card_exp_month == "3"}selected{/if}>3
(Mar)</option>
<option value="04" {if $VAR.account_billing_card_exp_month == "4"}selected{/if}>4
(Apr)</option>
<option value="05" {if $VAR.account_billing_card_exp_month == "5"}selected{/if}>5
(May)</option>
<option value="06" {if $VAR.account_billing_card_exp_month == "6"}selected{/if}>6
(Jun)</option>
<option value="07" {if $VAR.account_billing_card_exp_month == "7"}selected{/if}>7
(Jul)</option>
<option value="08" {if $VAR.account_billing_card_exp_month == "8"}selected{/if}>8
(Aug)</option>
<option value="09" {if $VAR.account_billing_card_exp_month == "9"}selected{/if}>9
(Sep)</option>
<option value="10" {if $VAR.account_billing_card_exp_month == "10"}selected{/if}>10
(Oct)</option>
<option value="11" {if $VAR.account_billing_card_exp_month == "11"}selected{/if}>11
(Nov)</option>
<option value="12" {if $VAR.account_billing_card_exp_month == "12"}selected{/if}>12
(Dec)</option>
</select>
</td>
<td width="65%"> 20
<input type="text" name="account_billing_card_exp_year" value="{$VAR.account_billing_card_exp_year}" size="2" maxlength="2">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_billing}
field_card_start_month
{/translate}
</td>
<td width="65%">
{translate module=account_billing}
field_card_start_year
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
<select name="account_billing_card_start_month" >
<option value="01" {if $VAR.account_billing_card_start_month == "1"}selected{/if}>1
(Jan)</option>
<option value="02" {if $VAR.account_billing_card_start_month == "2"}selected{/if}>2
(Feb)</option>
<option value="03" {if $VAR.account_billing_card_start_month == "3"}selected{/if}>3
(Mar)</option>
<option value="04" {if $VAR.account_billing_card_start_month == "4"}selected{/if}>4
(Apr)</option>
<option value="05" {if $VAR.account_billing_card_start_month == "5"}selected{/if}>5
(May)</option>
<option value="06" {if $VAR.account_billing_card_start_month == "6"}selected{/if}>6
(Jun)</option>
<option value="07" {if $VAR.account_billing_card_start_month == "7"}selected{/if}>7
(Jul)</option>
<option value="08" {if $VAR.account_billing_card_start_month == "8"}selected{/if}>8
(Aug)</option>
<option value="09" {if $VAR.account_billing_card_start_month == "9"}selected{/if}>9
(Sep)</option>
<option value="10" {if $VAR.account_billing_card_start_month == "10"}selected{/if}>10
(Oct)</option>
<option value="11" {if $VAR.account_billing_card_start_month == "11"}selected{/if}>11
(Nov)</option>
<option value="12" {if $VAR.account_billing_card_start_month == "12"}selected{/if}>12
(Dec)</option>
</select>
</td>
<td width="65%"> 20
<input type="text" name="account_billing_card_start_year" value="{$VAR.account_billing_card_start_year}" size="2" maxlength="2">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_billing}
field_checkout_plugin_id
{/translate}
</td>
<td width="65%">
{ $list->menu("", "account_billing_checkout_plugin_id", "checkout", "name", $VAR.account_billing_checkout_plugin_id, "form_field") }
</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="account_billing:view">
<input type="hidden" name="_page_current" value="account_billing:add">
<input type="hidden" name="do[]" value="account_billing:add">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,89 @@
{ $method->exe("account_billing","search_form") }
{ if ($method->result == FALSE) }
{ $block->display("core:method_error") }
{else}
<form name="account_billing_search" method="post" action="">
<table width="500" 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=account_billing}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="35%">
{translate module=account_billing}
field_accout_id
{/translate}</td>
<td width="65%">
<input type="text" name="account_billing_accout_id" value="{$VAR.account_billing_accout_id}" {if $account_billing_accout_id == true}class="form_field_error"{/if}> &nbsp;&nbsp;{translate}search_partial{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_billing}
field_checkout_plugin_id
{/translate}</td>
<td width="65%">
<input type="text" name="account_billing_checkout_plugin_id" value="{$VAR.account_billing_checkout_plugin_id}" {if $account_billing_checkout_plugin_id == true}class="form_field_error"{/if}> &nbsp;&nbsp;{translate}search_partial{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_billing}
field_card_type
{/translate}</td>
<td width="65%">
<input type="text" name="account_billing_card_type" value="{$VAR.account_billing_card_type}" {if $account_billing_card_type == true}class="form_field_error"{/if}> &nbsp;&nbsp;{translate}search_partial{/translate}
</td>
</tr>
<!-- Define the results per page -->
<tr class="row1" valign="top">
<td width="35%">{translate}search_results_per{/translate}</td>
<td width="65%">
<input type="text" name="limit" size="5" value="{$account_billing_limit}">
</td>
</tr>
<!-- Define the order by field per page -->
<tr class="row1" valign="top">
<td width="35%">{translate}search_order_by{/translate}</td>
<td width="65%">
<select name="order_by">
{foreach from=$account_billing item=record}
<option value="{$record.field}">{$record.translate}</option>
{/foreach}
</select>
</td>
</tr>
<tr class="row1" valign="top">
<td width="35%"></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="account_billing">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{ $block->display("core:saved_searches") }
{ $block->display("core:recent_searches") }
{/if}

View File

@@ -0,0 +1,112 @@
{$method->exe("account_billing","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 = 'account_billing';
{/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="68" class="table_heading">&nbsp;</td>
<td width="334" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=account_billing}field_account_id{/translate}{literal}','account_id'));
</script>
{/literal}
</td>
<td width="277" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=account_billing}field_card_type{/translate}{literal}','card_type'));
</script>
{/literal}
</td>
<td width="461" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=account_billing}field_card_num4{/translate}{literal}','card_num4'));
</script>
{/literal}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$account_billing item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='{$SSL}?_page=account_billing: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="68">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td width="334">&nbsp;
{$record.account_id}
</td>
<td width="277">&nbsp;
{translate module=checkout}
card_type_{$record.card_type}
{/translate}
</td>
<td width="461"> &nbsp; ....
{$record.card_num4}
</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>
<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">
<br>
</center>
{/if}
{/if}
</div>

View File

@@ -0,0 +1,83 @@
{$method->exe("account_billing","user_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 = 'account_billing';
{/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="34" class="table_heading">&nbsp;</td>
<td width="184" class="table_heading">
{translate module=account_billing}field_card_type{/translate}
</td>
<td width="551" class="table_heading">
{translate module=account_billing}field_card_num4 {/translate}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$account_billing item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1); window.location='{$SSL_URL}?_page=account_billing:user_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="34">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td width="184">&nbsp;
{translate module=checkout}
card_type_{$record.card_type}
{/translate}
</td>
<td width="551">&nbsp;.... .... ....
{$record.card_num4}
</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}
</div>

View File

@@ -0,0 +1,299 @@
{ $method->exe("account_billing","user_view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
{literal}
<!-- Define the update delete function -->
<script language="JavaScript">
<!-- START
var module = 'account_billing';
var locations = '{/literal}{$VAR.module_id}{literal}';
if (locations != "")
{
refresh(0,'#'+locations)
}
// 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;
}
function user_delete(id)
{
var page = 'user_view';
temp = window.confirm("{/literal}{translate}alert_delete{/translate}{literal}");
if(temp == false) return;
var url = '?_page='+ module +':'+ page +'&do[]=' + module + ':user_delete&id=' + id + COOKIE_URL;
window.location = url;
}
// END -->
</script>
{/literal}
<!-- Loop through each record -->
{foreach from=$account_billing item=account_billing}
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display each record -->
<form name="account_billing_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=account_billing}
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">
<!-- start credit card form -->
{if $account_billing.card_type != 'eft'}
{if $account_billing.card_type != ""}
<tr valign="top">
<td width="35%"> {translate module=account_billing} field_card_type
{/translate} </td>
<td width="65%"> {if $account_billing.checkout_plugin_id !=
"" && $account_billing.card_type != ""} { $list->card_type_menu($account_billing.card_type,
$account_billing.checkout_plugin_id,'account_billing_card_type','')
} {elseif $account_billing.checkout_plugin_id == "" && $VAR.account_billing_card_type
!= "" } { $list->card_type_menu($VAR.account_billing_card_type,
$account_billing.checkout_plugin_id,'account_billing_card_type','')
} {else}
<select name="account_billing_card_type" >
<option value="visa" {if $account_billing.card_type == "visa"}selected{/if}>
{translate module=checkout} card_type_visa {/translate}
</option>
<option value="mc" {if $account_billing.card_type == "mc"}selected{/if}>
{translate module=checkout} card_type_mc {/translate} </option>
<option value="amex" {if $account_billing.card_type == "amex"}selected{/if}>
{translate module=checkout} card_type_amex {/translate}
</option>
</select>
{/if} </td>
</tr>
{/if}
<tr valign="top">
<td width="35%"> {translate module=account_billing} field_card_num4
{/translate} </td>
<td width="65%"> ....{$account_billing.card_num4} </td>
</tr>
<tr valign="top">
<td width="35%"> {translate module=account_billing} card_num_new
{/translate} </td>
<td width="65%"><b>
<input type="text" name="account_billing_card_num" value="" size="24" maxlength="16">
</b></td>
</tr>
<tr valign="top">
<td width="35%"> {translate module=account_billing} field_card_exp_month
{/translate} </td>
<td width="65%">&nbsp; </td>
</tr>
<tr valign="top">
<td width="35%"> <select name="account_billing_card_exp_month" >
<option value="01" {if $account_billing.card_exp_month == "1"}selected{/if}>1
(Jan)</option>
<option value="02" {if $account_billing.card_exp_month == "2"}selected{/if}>2
(Feb)</option>
<option value="03" {if $account_billing.card_exp_month == "3"}selected{/if}>3
(Mar)</option>
<option value="04" {if $account_billing.card_exp_month == "4"}selected{/if}>4
(Apr)</option>
<option value="05" {if $account_billing.card_exp_month == "5"}selected{/if}>5
(May)</option>
<option value="06" {if $account_billing.card_exp_month == "6"}selected{/if}>6
(Jun)</option>
<option value="07" {if $account_billing.card_exp_month == "7"}selected{/if}>7
(Jul)</option>
<option value="08" {if $account_billing.card_exp_month == "8"}selected{/if}>8
(Aug)</option>
<option value="09" {if $account_billing.card_exp_month == "9"}selected{/if}>9
(Sep)</option>
<option value="10" {if $account_billing.card_exp_month == "10"}selected{/if}>10
(Oct)</option>
<option value="11" {if $account_billing.card_exp_month == "11"}selected{/if}>11
(Nov)</option>
<option value="12" {if $account_billing.card_exp_month == "12"}selected{/if}>12
(Dec)</option>
</select>
{translate module=account_billing} field_card_exp_year {/translate}
</td>
<td width="65%">20
<input type="text" name="account_billing_card_exp_year" value="{$account_billing.card_exp_year}" size="2" maxlength="2">
(ex: 08) </td>
</tr>
{if $account_billing.card_type == "amex"}
<tr class="row1" valign="middle" align="left">
<td width="35%"> {translate module=account_billing} field_card_start_month
{/translate} </td>
<td width="65%"> {translate module=account_billing} field_card_start_year
{/translate} </td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%"> <select name="account_billing_card_start_month" >
<option value="01" {if $account_billing.card_start_month == "1"}selected{/if}>1
(Jan)</option>
<option value="02" {if $account_billing.card_start_month == "2"}selected{/if}>2
(Feb)</option>
<option value="03" {if $account_billing.card_start_month == "3"}selected{/if}>3
(Mar)</option>
<option value="04" {if $account_billing.card_start_month == "4"}selected{/if}>4
(Apr)</option>
<option value="05" {if $account_billing.card_start_month == "5"}selected{/if}>5
(May)</option>
<option value="06" {if $account_billing.card_start_month == "6"}selected{/if}>6
(Jun)</option>
<option value="07" {if $account_billing.card_start_month == "7"}selected{/if}>7
(Jul)</option>
<option value="08" {if $account_billing.card_start_month == "8"}selected{/if}>8
(Aug)</option>
<option value="09" {if $account_billing.card_start_month == "9"}selected{/if}>9
(Sep)</option>
<option value="10" {if $account_billing.card_start_month == "10"}selected{/if}>10
(Oct)</option>
<option value="11" {if $account_billing.card_start_month == "11"}selected{/if}>11
(Nov)</option>
<option value="12" {if $account_billing.card_start_month == "12"}selected{/if}>12
(Dec)</option>
</select> </td>
<td width="65%">20
<input type="text" name="account_billing_card_start_year" value="{$account_billing.card_start_year}" size="2" maxlength="2">
(example: 08) </td>
</tr>
{/if}
{/if}
<!-- end credit card form -->
<!-- start eft form -->
{if $account_billing.card_type == "eft"}
<tr class="row1" valign="middle" align="left">
<td width="35%">{translate module=account_billing} field_eft_trn {/translate}</td>
<td width="65%"><b>
<input type="text" name="account_billing_eft_trn" value="{$VAR.account_billing_eft_trn}">
</b></td>
</tr>
<tr valign="top">
<td width="35%"> {translate module=account_billing} field_card_num4
{/translate} </td>
<td width="65%"> ....{$account_billing.card_num4} </td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%">{translate module=account_billing} field_eft_check_acct {/translate}</td>
<td width="65%">
<input type="text" name="account_billing_eft_check_acct" value="{$VAR.account_billing_eft_check_acct}">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%">{translate module=checkout} eft_check_acct_type {/translate}</td>
<td width="65%"><b>
<select name="account_billing_eft_check_acct_type" >
<option value="p" {if $account_billing.eft_check_acct_type == "p"}selected{/if}>{translate module=checkout}eft_type_p{/translate}</option>
<option value="b" {if $account_billing.eft_check_acct_type == "b"}selected{/if}>{translate module=checkout}eft_type_b{/translate}</option>
</select>
</b></td>
</tr>
{/if}
<!-- end eft form -->
<tr class="row1" valign="middle" align="left">
<td>{translate module=account} field_first_name{/translate} </td>
<td><b>
<input type="text" name="account_billing_first_name" value="{$account_billing.first_name}">
</b></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{translate module=account} field_last_name{/translate} </td>
<td><b>
<input type="text" name="account_billing_last_name" value="{$account_billing.last_name}">
</b></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{translate module=account} field_address1{/translate} </td>
<td><b>
<input type="text" name="account_billing_address1" value="{$account_billing.address1}">
</b></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{translate module=account} field_address2{/translate} </td>
<td><b>
<input type="text" name="account_billing_address2" value="{$account_billing.address2}">
</b></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{translate module=account} field_city{/translate} </td>
<td><b>
<input type="text" name="account_billing_city" value="{$account_billing.city}">
</b></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{translate module=account} field_state{/translate} </td>
<td><b>
<input type="text" name="account_billing_state" value="{$account_billing.state}">
</b></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{translate module=account} field_zip{/translate} </td>
<td><b>
<input type="text" name="account_billing_zip" value="{$account_billing.zip}">
</b></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{translate module=account} field_country_id{/translate} </td>
<td>{ $list->menu("no", "account_billing_country_id", "country", "name", $account_billing.country_id, "") }</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{translate module=account} field_email{/translate} </td>
<td><b>
<input type="text" name="account_billing_email" value="{$account_billing.email}">
</b></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{translate module=checkout} phone{/translate} </td>
<td><b>
<input type="text" name="account_billing_phone" value="{$account_billing.phone}">
</b></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td><input type="button" name="Delete" value="{translate}delete{/translate}" class="form_button" onClick="user_delete({$account_billing.id})"></td>
<td align="right"> &nbsp;&nbsp;<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="account_billing:user_view">
<input type="hidden" name="_next_page" value="account_billing:user_view">
<input type="hidden" name="account_billing_id" value="{$account_billing.id}">
<input type="hidden" name="do[]" value="account_billing:user_update">
<input type="hidden" name="id" value="{$VAR.id}">
</form>
{/foreach}
{/if}

View File

@@ -0,0 +1,265 @@
{ $method->exe("account_billing","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 = 'account_billing';
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=$account_billing item=account_billing}
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display each record -->
<form name="account_billing_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=account_billing}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">
{if $account_billing.card_type != ""}
<tr valign="top">
<td width="35%">
{translate module=account_billing}
field_account_id
{/translate}
</td>
<td width="65%">
{html_select_account name="account_billing_accout_id" default=$account_billing.account_id}
</td>
</tr>
{/if} {if $account_billing.card_type == "amex"} {/if}
<tr class="row1" valign="middle" align="left">
<td width="35%">
{translate module=account_billing}
field_checkout_plugin_id
{/translate}
</td>
<td width="65%">
{ $list->menu("", "account_billing_checkout_plugin_id", "checkout", "name", $account_billing.checkout_plugin_id, "form_field") }
</td>
</tr>
<!-- start credit card form -->
{if $account_billing.card_type != 'eft'} {if $account_billing.card_type != ""}
<tr valign="top">
<td width="35%"> {translate module=account_billing} field_card_type {/translate} </td>
<td width="65%"> {if $account_billing.checkout_plugin_id != "" && $account_billing.card_type != ""} { $list->card_type_menu($account_billing.card_type, $account_billing.checkout_plugin_id,'account_billing_card_type','') } {elseif $account_billing.checkout_plugin_id == "" && $VAR.account_billing_card_type != "" } { $list->card_type_menu($VAR.account_billing_card_type, $account_billing.checkout_plugin_id,'account_billing_card_type','') } {else}
<select name="account_billing_card_type" >
<option value="visa" {if $account_billing.card_type == "visa"}selected{/if}> {translate module=checkout} card_type_visa {/translate} </option>
<option value="mc" {if $account_billing.card_type == "mc"}selected{/if}> {translate module=checkout} card_type_mc {/translate} </option>
<option value="amex" {if $account_billing.card_type == "amex"}selected{/if}> {translate module=checkout} card_type_amex {/translate} </option>
</select>
{/if} </td>
</tr>
{/if} <tr valign="top">
<td width="35%"> {translate module=account_billing} card_num_new {/translate} </td>
<td width="65%"><b>
<input type="text" name="account_billing_card_num" value="{ $list->decrypt($account_billing.card_num) }" size="24" maxlength="16">
</b></td>
</tr>
<tr valign="top">
<td width="35%"> {translate module=account_billing} field_card_exp_month {/translate} </td>
<td width="65%">&nbsp;</td>
</tr>
<tr valign="top">
<td width="35%"><select name="account_billing_card_exp_month" >
<option value="01" {if $account_billing.card_exp_month == "1"}selected{/if}>1 (Jan)</option>
<option value="02" {if $account_billing.card_exp_month == "2"}selected{/if}>2 (Feb)</option>
<option value="03" {if $account_billing.card_exp_month == "3"}selected{/if}>3 (Mar)</option>
<option value="04" {if $account_billing.card_exp_month == "4"}selected{/if}>4 (Apr)</option>
<option value="05" {if $account_billing.card_exp_month == "5"}selected{/if}>5 (May)</option>
<option value="06" {if $account_billing.card_exp_month == "6"}selected{/if}>6 (Jun)</option>
<option value="07" {if $account_billing.card_exp_month == "7"}selected{/if}>7 (Jul)</option>
<option value="08" {if $account_billing.card_exp_month == "8"}selected{/if}>8 (Aug)</option>
<option value="09" {if $account_billing.card_exp_month == "9"}selected{/if}>9 (Sep)</option>
<option value="10" {if $account_billing.card_exp_month == "10"}selected{/if}>10 (Oct)</option>
<option value="11" {if $account_billing.card_exp_month == "11"}selected{/if}>11 (Nov)</option>
<option value="12" {if $account_billing.card_exp_month == "12"}selected{/if}>12 (Dec)</option>
</select>
{translate module=account_billing} field_card_exp_year {/translate} </td>
<td width="65%">20
<input type="text" name="account_billing_card_exp_year" value="{$account_billing.card_exp_year}" size="2" maxlength="2">
(ex: 08) </td>
</tr>
{if $account_billing.card_type == "amex"}
<tr class="row1" valign="middle" align="left">
<td width="35%"> {translate module=account_billing} field_card_start_month {/translate} </td>
<td width="65%"> {translate module=account_billing} field_card_start_year {/translate} </td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%"><select name="account_billing_card_start_month" >
<option value="01" {if $account_billing.card_start_month == "1"}selected{/if}>1 (Jan)</option>
<option value="02" {if $account_billing.card_start_month == "2"}selected{/if}>2 (Feb)</option>
<option value="03" {if $account_billing.card_start_month == "3"}selected{/if}>3 (Mar)</option>
<option value="04" {if $account_billing.card_start_month == "4"}selected{/if}>4 (Apr)</option>
<option value="05" {if $account_billing.card_start_month == "5"}selected{/if}>5 (May)</option>
<option value="06" {if $account_billing.card_start_month == "6"}selected{/if}>6 (Jun)</option>
<option value="07" {if $account_billing.card_start_month == "7"}selected{/if}>7 (Jul)</option>
<option value="08" {if $account_billing.card_start_month == "8"}selected{/if}>8 (Aug)</option>
<option value="09" {if $account_billing.card_start_month == "9"}selected{/if}>9 (Sep)</option>
<option value="10" {if $account_billing.card_start_month == "10"}selected{/if}>10 (Oct)</option>
<option value="11" {if $account_billing.card_start_month == "11"}selected{/if}>11 (Nov)</option>
<option value="12" {if $account_billing.card_start_month == "12"}selected{/if}>12 (Dec)</option>
</select>
</td>
<td width="65%">20
<input type="text" name="account_billing_card_start_year" value="{$account_billing.card_start_year}" size="2" maxlength="2">
(example: 08) </td>
</tr>
{/if} {/if}
<!-- end credit card form -->
<!-- start eft form -->
{if $account_billing.card_type == "eft"}
<tr class="row1" valign="middle" align="left">
<td width="35%">{translate module=account_billing} field_eft_trn {/translate}</td>
<td width="65%"><b>
<input type="text" name="account_billing_eft_trn" value="{ $list->decrypt($account_billing.eft_trn) }">
</b></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%">{translate module=account_billing} field_eft_check_acct {/translate}</td>
<td width="65%"><input type="text" name="account_billing_eft_check_acct" value="{ $list->decrypt($account_billing.eft_check_acct) }">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%">{translate module=checkout} eft_check_acct_type {/translate}</td>
<td width="65%"><b>
<select name="account_billing_eft_check_acct_type" >
<option value="p" {if $account_billing.eft_check_acct_type == "p"}selected{/if}>{translate module=checkout}eft_type_p{/translate}</option>
<option value="b" {if $account_billing.eft_check_acct_type == "b"}selected{/if}>{translate module=checkout}eft_type_b{/translate}</option>
</select>
</b></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%"><b></b></td>
<td width="65%"><b> </b></td>
</tr>
{/if}
<!-- end eft form -->
<tr class="row1" valign="middle" align="left">
<td>{translate module=account} field_first_name{/translate} </td>
<td><b>
<input type="text" name="account_billing_first_name" value="{$account_billing.first_name}">
</b></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{translate module=account} field_last_name{/translate} </td>
<td><b>
<input type="text" name="account_billing_last_name" value="{$account_billing.last_name}">
</b></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{translate module=account} field_address1{/translate} </td>
<td><b>
<input type="text" name="account_billing_address1" value="{$account_billing.address1}">
</b></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{translate module=account} field_address2{/translate} </td>
<td><b>
<input type="text" name="account_billing_address2" value="{$account_billing.address2}">
</b></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{translate module=account} field_city{/translate} </td>
<td><b>
<input type="text" name="account_billing_city" value="{$account_billing.city}">
</b></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{translate module=account} field_state{/translate} </td>
<td><b>
<input type="text" name="account_billing_state" value="{$account_billing.state}">
</b></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{translate module=account} field_zip{/translate} </td>
<td><b>
<input type="text" name="account_billing_zip" value="{$account_billing.zip}">
</b></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{translate module=account} field_country_id{/translate} </td>
<td>
{ $list->menu("no", "account_billing_country_id", "country", "name", $account_billing.country_id, "") }
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{translate module=account} field_email{/translate} </td>
<td><b>
<input type="text" name="account_billing_email" value="{$account_billing.email}">
</b></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{translate module=checkout} phone{/translate} </td>
<td><b>
<input type="text" name="account_billing_phone" value="{$account_billing.phone}">
</b></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td><input type="button" name="Delete" value="{translate}delete{/translate}" class="form_button" onClick="user_delete({$account_billing.id})"></td>
<td align="right">&nbsp;&nbsp;
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="account_billing:view">
<input type="hidden" name="account_billing_id" value="{$account_billing.id}">
<input type="hidden" name="do[]" value="account_billing:update">
<input type="hidden" name="id" value="{$VAR.id}">
</form>
{/foreach}
{/if}

View File

@@ -0,0 +1,60 @@
{ $block->display("core:top_clean") }
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display the form to collect the input values -->
<form id="account_memo_add" name="account_memo_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=account_memo}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=account_memo}
field_memo
{/translate}
</td>
<td width="65%">
<textarea id="focus" name="account_memo_memo" {if $account_memo_memo == true}class="form_field_error"{/if} cols="55" rows="5">{$VAR.account_memo_memo}</textarea>
</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="account_memo_type" value="admin">
<input type="hidden" name="account_memo_account_id" value="{$VAR.account_memo_account_id}">
<input type="hidden" name="account_memo_staff_id" value="{$smarty.const.SESS_ACCOUNT}">
<input type="hidden" name="account_memo_date_orig" value="{$smarty.now}">
<input type="hidden" name="_page" value="account_memo:view">
<input type="hidden" name="_page_current" value="account_memo:add">
<input type="hidden" name="_escape" value="1">
<input type="hidden" name="_escape_next" value="1">
<input type="hidden" name="do[]" value="account_memo:add">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<script language="JavaScript">
document.getElementById('focus').focus();
</script>

View File

@@ -0,0 +1,140 @@
{ $block->display("core:top_clean") }
{$method->exe("account_memo","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 = 'account_memo';
{/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="39" class="table_heading">&nbsp;</td>
<td width="183" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=account_memo}field_date_orig{/translate}{literal}','date_orig'));
</script>
{/literal}
</td>
<td width="151" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=account_memo}field_staff_id{/translate}{literal}','staff_id'));
</script>
{/literal}
</td>
<td width="164" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=account_memo}field_type{/translate}{literal}','type'));
</script>
{/literal}
</td>
<td width="264" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=account_memo}field_memo{/translate}{literal}','memo'));
</script>
{/literal}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$account_memo item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=account_memo:view&id={$record.id},&_escape=1&_escape_next=1';" 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="39">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td width="183">&nbsp;
{$list->date_time($record.date_orig)}
</td>
<td width="151">&nbsp;
{if $record.staff_id == '0'}
{translate module=account_memo}
system
{/translate}
{else}
{$record.staff_id}
{/if}
</td>
<td width="164">&nbsp;
{translate module=account_memo}
{$record.type}
{/translate}
</td>
<td width="264">&nbsp;
{$record.memo|truncate:30}
</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>
<input type="submit" name="Submit2" value="+" onClick="document.location='?_page=account_memo:add&account_memo_account_id={$record.account_id}&_escape=1&_escape_next=1'" class="form_button">
<input type="submit" name="Submit" value="{translate}view_edit{/translate}" onClick="mass_do('', module+':view&_escape=1&_escape_next=1', 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}&_escape=1&_escape_next=1', 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">
<br>
</center>
{/if}
{/if}
</div>

View File

@@ -0,0 +1,143 @@
{ $block->display("core:top_clean") }
{ $method->exe("account_memo","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 = 'account_memo';
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=$account_memo item=account_memo} <a name="{$account_memo.id}"></a>
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display each record -->
<form name="account_memo_view" method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background" align="center">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<center>
{translate module=account_memo}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="35%">
{translate module=account_memo}
field_date_orig
{/translate}
</td>
<td width="65%">
{$list->date_time($account_memo.date_orig)}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_memo}
field_staff_id
{/translate}
</td>
<td width="65%">
{if $account_memo.staff_id == '0'}
{translate module=account_memo}
system
{/translate}
{else}
{html_select_account name="account_memo_staff_id" default=$account_memo.staff_id}
{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_memo}
field_memo
{/translate}
</td>
<td width="65%">
{$account_memo.memo|nl2br}
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%"></td>
<td width="65%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp; </td>
<td align="right">
<input type="button" name="delete" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$account_memo.id}','{$VAR.id}');">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<center>
<input type="hidden" name="_page" value="account_memo:view">
<input type="hidden" name="account_memo_id" value="{$account_memo.id}">
<input type="hidden" name="do[]" value="account_memo:update">
<input type="hidden" name="id" value="{$VAR.id}">
</center>
</form>
{/foreach}
<center>
<a href="?_page=account_memo:add&account_memo_account_id={$account_memo.account_id}&_escape=1&_escape_next=1">
{translate module=account_memo}
title_add
{/translate}
</a>
{/if}
</center>

View 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>

View 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}

View 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%">&nbsp;</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}

View 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>

View File

@@ -0,0 +1 @@
{if $VAR._page == ''}{/if}

View 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>

View 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>

View 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>

View 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>

View 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>

View 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}>
&nbsp;&nbsp;
{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}>
&nbsp;&nbsp;
{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}

View 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">&nbsp;</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">&nbsp;</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">&nbsp; <b>
{$record.id}&nbsp;&nbsp;
</b> <a href="?_page=account_admin:view&id={$record.account_id}">{$record.first_name}
{$record.last_name}</a></td>
<td width="87">&nbsp;
{$record.stats_sessions}
</td>
<td width="82"> &nbsp;
{$record.stats_accounts}
</td>
<td width="165"> &nbsp;
{$list->format_currency($record.stats_invoices_amt,'')}
({$record.stats_invoices})</td>
<td width="111">&nbsp;
{$list->format_currency($record.stats_commissions,'')}
</td>
<td width="86">&nbsp;
{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>

View 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>

View 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>

View 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>

View 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>&nbsp; </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}
) &nbsp;&nbsp; </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>

View 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>&nbsp;&nbsp; </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>&nbsp;&nbsp; </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}

View File

@@ -0,0 +1,63 @@
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display the form to collect the input values -->
<form id="affiliate_commission_add" name="affiliate_commission_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_commission}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_commission}
field_date_begin
{/translate}
</td>
<td width="65%">
{ $list->calender_add("affiliate_commission_start_date", $VAR.affiliate_commission_start_date, "form_field") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=affiliate_commission}
field_date_end
{/translate}
</td>
<td width="65%">
{ $list->calender_add("affiliate_commission_end_date", $VAR.affiliate_commission_end_date, "form_field") }
</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="core:blank">
<input type="hidden" name="_page_current" value="affiliate_commission:add">
<input type="hidden" name="do[]" value="affiliate_commission:add">
<input type="hidden" name="GenID" value="{$smarty.now}">
<input type="hidden" name="page" value="1">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,108 @@
{ $method->exe("affiliate_commission","search_form") }
{ if ($method->result == FALSE) }
{ $block->display("core:method_error") }
{else}
<form name="affiliate_commission_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_commission}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="35%">
{translate module=affiliate_commission}
field_date_orig
{/translate}
</td>
<td width="65%">
{ $list->calender_search("affiliate_commission_date_orig", $VAR.affiliate_commission_date_orig, "form_field", "") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=affiliate_commission}
field_notes_admin
{/translate}
</td>
<td width="65%">
<input type="text" name="affiliate_commission_notes_admin" value="{$VAR.affiliate_commission_notes_admin}" {if $affiliate_commission_notes_admin == true}class="form_field_error"{/if}>
&nbsp;&nbsp;
{translate}
search_partial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=affiliate_commission}
field_notes_affiliate
{/translate}
</td>
<td width="65%">
<input type="text" name="affiliate_commission_notes_affiliate" value="{$VAR.affiliate_commission_notes_affiliate}" {if $affiliate_commission_notes_affiliate == true}class="form_field_error"{/if}>
&nbsp;&nbsp;
{translate}
search_partial
{/translate}
</td>
</tr>
<!-- Define the results per page -->
<tr class="row1" valign="top">
<td width="35%">
{translate}
search_results_per
{/translate}
</td>
<td width="65%">
<input type="text" name="limit" size="5" value="{$affiliate_commission_limit}">
</td>
</tr>
<!-- Define the order by field per page -->
<tr class="row1" valign="top">
<td width="35%">
{translate}
search_order_by
{/translate}
</td>
<td width="65%">
<select name="order_by">
{foreach from=$affiliate_commission item=record}
<option value="{$record.field}">
{$record.translate}
</option>
{/foreach}
</select>
</td>
</tr>
<tr class="row1" valign="top">
<td width="35%"></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_commission">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{ $block->display("core:saved_searches") }
{ $block->display("core:recent_searches") }
{/if}

View File

@@ -0,0 +1,125 @@
{$method->exe("affiliate_commission","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_commission';
{/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="65" class="table_heading">&nbsp;</td>
<td width="285" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=affiliate_commission}field_date_orig{/translate}{literal}','date_orig'));
</script>
{/literal}
</td>
<td width="204" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=affiliate_commission}field_date_begin{/translate}{literal}','date_begin'));
</script>
{/literal}
</td>
<td width="201" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=affiliate_commission}field_date_end{/translate}{literal}','date_end'));
</script>
{/literal}
</td>
<td width="183" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=affiliate_commission}field_commissions{/translate}{literal}','commissions'));
</script>
{/literal}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$affiliate_commission item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=affiliate_commission: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="65">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td width="285">&nbsp;
{$list->date_time($record.date_orig)}
</td>
<td width="204">&nbsp;
{if $record.date_begin > 0}
{$list->date($record.date_begin)}
{else}
---
{/if}
</td>
<td width="201">&nbsp;
{$list->date($record.date_end)}
</td>
<td width="183">&nbsp;
{$list->format_currency($record.commissions, '')}
</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>
<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">
<br>
</center>
{/if}
{/if}
</div>

View File

@@ -0,0 +1,225 @@
{ $method->exe("affiliate_commission","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_commission';
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_commission item=affiliate_commission} <a name="{$affiliate_commission.id}"></a>
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display each record -->
<form name="affiliate_commission_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_commission}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="35%">
{translate module=affiliate_commission}
field_date_orig
{/translate}
</td>
<td width="65%">
{$list->date_time($affiliate_commission.date_orig)}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=affiliate_commission}
field_date_begin
{/translate}
</td>
<td width="65%">
{if $affiliate_commission.date_begin > 0}
{$list->date($affiliate_commission.date_begin)}
{else}
---
{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=affiliate_commission}
field_date_end
{/translate}
</td>
<td width="65%">
{$list->date($affiliate_commission.date_end)}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=affiliate_commission}
field_commissions
{/translate}
</td>
<td width="65%"> {if $affiliate_commission.commissions > 0}
{$list->format_currency($affiliate_commission.commissions, '')}
{else}0{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=affiliate_commission}
field_status
{/translate}
</td>
<td width="65%">
{ $list->bool("affiliate_commission_status", $affiliate_commission.status, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=affiliate_commission}
field_notes_admin
{/translate}
</td>
<td width="65%">
<textarea name="affiliate_commission_notes_admin" cols="40" rows="5" >{$affiliate_commission.notes_admin}</textarea>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=affiliate_commission}
field_notes_affiliate
{/translate}
</td>
<td width="65%">
<textarea name="affiliate_commission_notes_affiliate" cols="40" rows="5" >{$affiliate_commission.notes_affiliate}</textarea>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
</td>
<td width="65%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp; </td>
<td align="right">
<input type="button" name="delete" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$affiliate_commission.id}','{$VAR.id}');">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="affiliate_commission:view">
<input type="hidden" name="affiliate_commission_id" value="{$affiliate_commission.id}">
<input type="hidden" name="do[]" value="affiliate_commission:update">
<input type="hidden" name="id" value="{$VAR.id}">
<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_commission}
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">
<!-- Loop through each affiliate plugin -->
{foreach from=$plugindata item=plugin}
<tr valign="top">
<td width="35%">
{$plugin.name}
</td>
<td width="23%">
{$plugin.count}
{translate module=affiliate_commission}
commissions
{/translate}
</td>
<td width="42%">
{if $plugin.count > 0}
<a href="?_page=core:blank&_escape=1&do%5B%5D=affiliate_commission:export&id={$affiliate_commission.id}&plugin={$plugin.plugin}" target="_blank">
<b>
{translate module=affiliate_commission}
export
{/translate}
</b>
{else}
</a>
{translate module=affiliate_commission}
do_nothing
{/translate}
{/if}
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/foreach}
{/if}

View File

@@ -0,0 +1,234 @@
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display the form to collect the input values -->
<form id="affiliate_template_add" name="affiliate_template_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_template}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="50%">
{translate module=affiliate_template}
field_name
{/translate}
</td>
<td width="50%">
<input type="text" name="affiliate_template_name" value="{$VAR.affiliate_template_name}" {if $affiliate_template_name == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=affiliate_template}
field_notes
{/translate}
</td>
<td width="50%">
<textarea name="affiliate_template_notes" cols="40" rows="5" {if $affiliate_template_notes == true}class="form_field_error"{/if}>{$VAR.affiliate_template_notes}</textarea>
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=affiliate_template}
field_status
{/translate}
</td>
<td width="50%">
{if $VAR.affiliate_template_status != "" }
{ $list->bool("affiliate_template_status", $VAR.affiliate_template_status, "form_menu") }
{else}
{ $list->bool("affiliate_template_status", "1", "form_menu") }
{/if}
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=affiliate_template}
field_affiliate_plugin
{/translate}
</td>
<td width="50%">
{ $list->menu_files("", "affiliate_template_affiliate_plugin", $VAR.affiliate_template_affiliate_plugin, "affiliate_plugin", "", ".php", "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=affiliate_template}
field_avail_campaign_id
{/translate}
</td>
<td width="50%">
{ $list->menu_multi($VAR.affiliate_template_avail_campaign_id, "affiliate_template_avail_campaign_id", "campaign", "name", "", "5", "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=affiliate_template}
field_max_tiers
{/translate}
</td>
<td width="50%">
{if $VAR.affiliate_template_max_tiers == ""}
<input type="text" id="affiliate_template_max_tiers" name="affiliate_template_max_tiers" value="1" {if $affiliate_template_max_tiers == true}class="form_field_error"{/if} size="5" onchange="TierUpdate();">
{else}
<input type="text" id="affiliate_template_max_tiers" name="affiliate_template_max_tiers" value="{$VAR.affiliate_template_max_tiers}" {if $affiliate_template_max_tiers == true}class="form_field_error"{/if} size="5" onChange="TierUpdate();">
{/if}
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=affiliate_template}
field_commission_minimum
{/translate}
</td>
<td width="50%">
<input type="text" name="affiliate_template_commission_minimum" value="{$VAR.affiliate_template_commission_minimum}" {if $affiliate_template_commission_minimum == true}class="form_field_error"{/if} size="5">
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=affiliate_template}
field_new_commission_type
{/translate}
</td>
<td width="50%">
<select name="affiliate_template_new_commission_type" >
<option value="0"{if $VAR.affiliate_template_new_commission_type == "0"} selected{/if}>
{translate module=affiliate}
none
{/translate}
</option>
<option value="1"{if $VAR.affiliate_template_new_commission_type == "1"} selected{/if}>
{translate module=affiliate}
percent
{/translate}
</option>
<option value="2"{if $VAR.affiliate_template_new_commission_type == "2"} selected{/if}>
{translate module=affiliate}
flat
{/translate}
</option>
</select>
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=affiliate_template}
field_recurr_commission_type
{/translate}
</td>
<td width="50%">
<select name="affiliate_template_recurr_commission_type" >
<option value="0"{if $VAR.affiliate_template_recurr_commission_type == "0"} selected{/if}>
{translate module=affiliate}
none
{/translate}
</option>
<option value="1"{if $VAR.affiliate_template_recurr_commission_type == "1"} selected{/if}>
{translate module=affiliate}
percent
{/translate}
</option>
<option value="2"{if $VAR.affiliate_template_recurr_commission_type == "2"} selected{/if}>
{translate module=affiliate}
flat
{/translate}
</option>
</select>
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=affiliate_template}
field_recurr_max_commission_periods
{/translate}
</td>
<td width="50%">
<input type="text" name="affiliate_template_recurr_max_commission_periods" value="{$VAR.affiliate_template_recurr_max_commission_periods}" {if $affiliate_template_recurr_max_commission_periods == true}class="form_field_error"{/if} size="5">
</td>
</tr>
<tr valign="top">
<td width="50%"></td>
<td width="50%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="affiliate_template:view">
<input type="hidden" name="_page_current" value="affiliate_template:add">
<input type="hidden" name="do[]" value="affiliate_template:add">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<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>
<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>
{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
{/literal}
{ if $VAR.affiliate_template_new_commission_rate == "" }{literal}
for(i=0; i<99; i++)
{
new_array[i] = '';
rec_array[i] = '';
document.write('<input type="hidden" id="new_'+i+'" name="affiliate_template_new_commission_rate[]" value="">');
document.write('<input type="hidden" id="rec_'+i+'" name="affiliate_template_recurr_commission_rate[]" value="">');
}
{/literal}
{else}
{foreach key=key item=item from=$VAR.affiliate_template_new_commission_rate}
new_array[{$key}] = '{$item}';
document.write('<input type="hidden" id="new_{$key}" name="affiliate_template_new_commission_rate[]" value="{$item}">');
{/foreach}
{foreach key=key item=item from=$VAR.affiliate_template_recurr_commission_rate}
rec_array[{$key}] = '{$item}';
document.write('<input type="hidden" id="rec_{$key}" name="affiliate_template_recurr_commission_rate[]" value="{$item}">');
{/foreach}
{/if}
{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_template_max_tiers').value;
if(tiers > 99)
{
tiers = 99;
document.getElementById('affiliate_template_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>

View File

@@ -0,0 +1,129 @@
{$method->exe("affiliate_template","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_template';
{/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="8%" class="table_heading">&nbsp;</td>
<td width="20%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=affiliate_template}field_name{/translate}{literal}','name'));
</script>
{/literal}
</td>
<td width="15%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=affiliate_template}field_status{/translate}{literal}','status'));
</script>
{/literal}
</td>
<td width="18%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=affiliate_template}field_max_tiers{/translate}{literal}','max_tiers'));
</script>
{/literal}
</td>
<td width="39%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=affiliate_template}field_commission_minimum{/translate}{literal}','commission_minimum'));
</script>
{/literal}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$affiliate_template item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=affiliate_template: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="8%">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td width="20%">&nbsp;
{$record.name}
</td>
<td width="15%">&nbsp;
{if $record.status == "1"}
{translate}
true
{/translate}
{else}
{translate}
false
{/translate}
{/if}
</td>
<td width="18%">&nbsp;
{$record.max_tiers}
</td>
<td width="39%">&nbsp;
{$record.commission_minimum}
</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>
<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">
<br>
</center>
{/if}
{/if}
</div>

View File

@@ -0,0 +1,494 @@
{ $method->exe("affiliate_template","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_template';
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_template item=affiliate_template}
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display each record -->
<form name="form1" 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_template}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_template}
field_name
{/translate}
</td>
<td width="50%">
<input type="text" name="affiliate_template_name" value="{$affiliate_template.name}" size="32">
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=affiliate_template}
field_notes
{/translate}
</td>
<td width="50%">
<textarea name="affiliate_template_notes" cols="40" rows="5" >{$affiliate_template.notes}</textarea>
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=affiliate_template}
field_status
{/translate}
</td>
<td width="50%">
{ $list->bool("affiliate_template_status", $affiliate_template.status, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=affiliate_template}
field_affiliate_plugin
{/translate}
</td>
<td width="50%">
{ $list->menu_files("", "affiliate_template_affiliate_plugin", $affiliate_template.affiliate_plugin, "affiliate_plugin", "", ".php", "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=affiliate_template}
field_avail_campaign_id
{/translate}
</td>
<td width="50%">
{ $list->menu_multi($affiliate_template.avail_campaign_id, "affiliate_template_avail_campaign_id", "campaign", "name", "", "5", "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=affiliate_template}
field_max_tiers
{/translate}
</td>
<td width="50%">
<input type="text" id="affiliate_template_max_tiers" name="affiliate_template_max_tiers" value="{$affiliate_template.max_tiers}" size="5" onChange="TierUpdate();">
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=affiliate_template}
field_commission_minimum
{/translate}
</td>
<td width="50%">
<input type="text" name="affiliate_template_commission_minimum" value="{$affiliate_template.commission_minimum}" size="5">
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=affiliate_template}
field_new_commission_type
{/translate}
</td>
<td width="50%">
<select name="affiliate_template_new_commission_type" >
<option value="0"{if $affiliate_template.new_commission_type == "0"} selected{/if}>
{translate module=affiliate}
none
{/translate}
</option>
<option value="1"{if $affiliate_template.new_commission_type == "1"} selected{/if}>
{translate module=affiliate}
percent
{/translate}
</option>
<option value="2"{if $affiliate_template.new_commission_type == "2"} selected{/if}>
{translate module=affiliate}
flat
{/translate}
</option>
</select>
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=affiliate_template}
field_recurr_commission_type
{/translate}
</td>
<td width="50%">
<select name="affiliate_template_recurr_commission_type" >
<option value="0"{if $affiliate_template.recurr_commission_type == "0"} selected{/if}>
{translate module=affiliate}
none
{/translate}
</option>
<option value="1"{if $affiliate_template.recurr_commission_type == "1"} selected{/if}>
{translate module=affiliate}
percent
{/translate}
</option>
<option value="2"{if $affiliate_template.recurr_commission_type == "2"} selected{/if}>
{translate module=affiliate}
flat
{/translate}
</option>
</select>
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=affiliate_template}
field_recurr_max_commission_periods
{/translate}
</td>
<td width="50%">
<input type="text" name="affiliate_template_recurr_max_commission_periods" value="{$affiliate_template.recurr_max_commission_periods}" size="5">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="50%">
<p>
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" id="new_0" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_1" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_2" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_3" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_4" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_5" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_6" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_7" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_8" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_9" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_10" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_11" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_12" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_13" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_14" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_15" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_16" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_17" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_18" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_19" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_20" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_21" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_22" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_23" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_24" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_25" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_26" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_27" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_28" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_29" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_30" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_31" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_32" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_33" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_34" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_35" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_36" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_37" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_38" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_39" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_40" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_41" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_42" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_43" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_44" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_45" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_46" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_47" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_48" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_49" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_50" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_51" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_52" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_53" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_54" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_55" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_56" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_57" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_58" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_59" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_60" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_61" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_62" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_63" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_64" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_65" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_66" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_67" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_68" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_69" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_70" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_71" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_72" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_73" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_74" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_75" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_76" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_77" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_78" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_79" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_80" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_81" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_82" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_83" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_84" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_85" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_86" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_87" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_88" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_89" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_90" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_91" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_92" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_93" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_94" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_95" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_96" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_97" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_98" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="new_99" name="affiliate_template_new_commission_rate[]">
<input type="hidden" id="rec_0" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_1" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_2" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_3" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_4" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_5" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_6" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_7" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_8" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_9" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_10" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_11" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_12" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_13" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_14" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_15" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_16" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_17" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_18" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_19" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_20" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_21" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_22" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_23" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_24" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_25" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_26" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_27" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_28" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_29" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_30" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_31" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_32" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_33" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_34" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_35" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_36" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_37" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_38" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_39" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_40" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_41" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_42" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_43" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_44" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_45" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_46" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_47" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_48" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_49" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_50" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_51" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_52" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_53" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_54" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_55" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_56" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_57" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_58" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_59" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_60" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_61" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_62" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_63" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_64" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_65" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_66" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_67" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_68" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_69" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_70" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_71" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_72" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_73" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_74" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_75" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_76" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_77" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_78" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_79" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_80" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_81" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_82" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_83" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_84" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_85" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_86" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_87" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_88" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_89" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_90" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_91" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_92" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_93" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_94" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_95" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_96" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_97" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_98" name="affiliate_template_recurr_commission_rate[]">
<input type="hidden" id="rec_99" name="affiliate_template_recurr_commission_rate[]">
</p>
</td>
<td width="50%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp; </td>
<td align="right">
<input type="button" name="delete" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$affiliate_template.id}','{$VAR.id}');">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="affiliate_template:view">
<input type="hidden" name="affiliate_template_id" value="{$affiliate_template.id}">
<input type="hidden" name="do[]" value="affiliate_template:update">
<input type="hidden" name="id" value="{$VAR.id}">
</form>
<br>
<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>
<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>
{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}';
UpdateTierValueNew(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}';
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_template_max_tiers').value;
if(tiers > 99)
{
tiers = 99;
document.getElementById('affiliate_template_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}
{/foreach}
{/if}

View File

@@ -0,0 +1,67 @@
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display the form to collect the input values -->
<form id="asset_add" name="asset_add" method="post" action="">
{$COOKIE_FORM}
<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=asset}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=asset}
field_pool_id
{/translate}</td>
<td width="65%">
{ $list->menu("no", "asset_pool_id", "asset_pool", "name", $VAR.asset_pool_id, "") } </td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_asset
{/translate}</td>
<td width="65%">
<input type="text" name="asset_asset" value="{$VAR.asset_asset}" {if $asset_asset == true}class="form_field_error"{/if}> </td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_misc
{/translate}</td>
<td width="65%">
<textarea name="asset_misc" cols="40" rows="5" {if $asset_misc == true}class="form_field_error"{/if}>{$VAR.asset_misc}</textarea> </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="asset:view">
<input type="hidden" name="_page_current" value="asset:add">
<input type="hidden" name="do[]" value="asset:add">
<input type="hidden" name="asset_date_last" value="{$smarty.now}">
<input type="hidden" name="asset_date_orig" value="{$smarty.now}">
<input type="hidden" name="asset_status" value="0"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,66 @@
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display the form to collect the input values -->
<form id="asset_add" name="asset_add" method="post" action="" enctype="multipart/form-data">
<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=asset}title_import{/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 colspan="2">
{translate module=asset}
help_import
{/translate}</td>
</tr>
<tr valign="top">
<td colspan="2">&nbsp;</td>
</tr>
<tr valign="top">
<td width="33%">
{translate module=asset}
field_filename
{/translate}</td>
<td width="66%">
<input name="datafile" type="file" {if $asset_datafile == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="33%">
{translate module=asset}
pool
{/translate}
</td>
<td width="66%">
{html_menu field=asset_pool_id assoc_table=asset_pool assoc_field=name default=1}
</td>
</tr>
<tr valign="top">
<td width="33%"></td>
<td width="66%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="asset:import">
<input type="hidden" name="_page_current" value="asset:import">
<input type="hidden" name="do[]" value="asset:import">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,126 @@
{ $method->exe("asset","search_form") }
{ if ($method->result == FALSE) }
{ $block->display("core:method_error") }
{else}
<form name="asset_search" method="post" action="">
{$COOKIE_FORM}
<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=asset}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="35%">
{translate module=asset}
field_date_orig
{/translate}</td>
<td width="65%">
{ $list->calender_search("asset_date_orig", $VAR.asset_date_orig, "form_field", "") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_date_last
{/translate}</td>
<td width="65%">
{ $list->calender_search("asset_date_last", $VAR.asset_date_last, "form_field", "") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_status
{/translate}</td>
<td width="65%">
{ $list->bool("asset_status", "all", "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_service_id
{/translate}</td>
<td width="65%">
<input type="text" name="asset_service_id" value="{$VAR.asset_service_id}" {if $asset_service_id == true}class="form_field_error"{/if}> &nbsp;&nbsp; {translate}search_partial{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_pool_id
{/translate}</td>
<td width="65%">
{ $list->menu("no", "asset_pool_id", "asset_pool", "name", "all", "") }
&nbsp;&nbsp;{translate}search_partial{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_asset
{/translate}</td>
<td width="65%">
<input type="text" name="asset_asset" value="{$VAR.asset_asset}" {if $asset_asset == true}class="form_field_error"{/if}> &nbsp;&nbsp;{translate}search_partial{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_misc
{/translate}</td>
<td width="65%">
<input type="text" name="asset_misc" value="{$VAR.asset_misc}" {if $asset_misc == true}class="form_field_error"{/if}> &nbsp;&nbsp;{translate}search_partial{/translate}
</td>
</tr>
<!-- Define the results per page -->
<tr class="row1" valign="top">
<td width="35%">{translate}search_results_per{/translate}</td>
<td width="65%">
<input type="text" name="limit" size="5" value="{$asset_limit}">
</td>
</tr>
<!-- Define the order by field per page -->
<tr class="row1" valign="top">
<td width="35%">{translate}search_order_by{/translate}</td>
<td width="65%">
<select class="form_menu" name="order_by">
{foreach from=$asset item=record}
<option value="{$record.field}">{$record.translate}</option>
{/foreach}
</select>
</td>
</tr>
<tr class="row1" valign="top">
<td width="35%"></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="asset">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{ $block->display("core:saved_searches") }
{ $block->display("core:recent_searches") }
{/if}

View File

@@ -0,0 +1,119 @@
{$method->exe("asset","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 = 'asset';
{/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="66" class="table_heading">&nbsp;</td>
<td width="267" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=asset}field_date_last{/translate}{literal}','date_last'));
</script>
{/literal}
</td>
<td width="75" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=asset}field_status{/translate}{literal}','status'));
</script>
{/literal}
</td>
<td width="391" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=asset}field_pool_id{/translate}{literal}','pool_id'));
</script>
{/literal}
</td>
<td width="264" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=asset}field_asset{/translate}{literal}','asset'));
</script>
{/literal}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$asset item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=asset:view&id={$record.id},{$COOKIE_URL}';" 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="66">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td>&nbsp;{$list->date_time($record.date_last)}</td>
<td>&nbsp;{if $record.status == "1"}{translate}true{/translate}{else}{translate}false{/translate}{/if}</td>
<td>&nbsp;{$record.pool_id}</td>
<td>&nbsp;{$record.asset}</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>
<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}{$COOKIE_URL}', 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">
<br>
</center>
{/if}
{/if}
</div>

View File

@@ -0,0 +1,158 @@
{ $method->exe("asset","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
{literal}
<!-- Define the update delete function -->
<script language="JavaScript">
<!-- START
var module = 'asset';
var locations = '{/literal}{$VAR.module_id}{literal}';
if (locations != "")
{
refresh(0,'#'+locations)
}
// 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=$asset item=asset} <a name="{$asset.id}"></a>
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display each record -->
<form name="asset_view" method="post" action="">
{$COOKIE_FORM}
<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=asset}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="35%">
{translate module=asset}
field_date_orig
{/translate}</td>
<td width="65%">
{$list->date_time($asset.date_orig)}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_date_last
{/translate}</td>
<td width="65%">
{$list->date_time($asset.date_last)}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_status
{/translate}</td>
<td width="65%">
{if $asset.status == "1"}{translate}true{/translate}{else}{translate}false{/translate}{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_service_id
{/translate}</td>
<td width="65%">
{if $asset.service_id}
<a href="?_page=service:view&id={$asset.service_id}">ID {$asset.service_id}</a>
{else}
---
{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_pool_id
{/translate}</td>
<td width="65%">
{ $list->menu("no", "asset_pool_id", "asset_pool", "name", $asset.pool_id, "") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_asset
{/translate}</td>
<td width="65%">
<input type="text" name="asset_asset" value="{$asset.asset}" size="32">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_misc
{/translate}</td>
<td width="65%">
<textarea name="asset_misc" cols="40" rows="5">{$asset.misc}</textarea>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%"></td>
<td width="65%">
<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('{$asset.id}','{$VAR.id}');">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="asset:view">
<input type="hidden" name="asset_id" value="{$asset.id}">
<input type="hidden" name="do[]" value="asset:update">
<input type="hidden" name="id" value="{$VAR.id}">
</form>
{/foreach}
{/if}

View File

@@ -0,0 +1,35 @@
// JavaScript Document
var http=getHTTPObject();
function assignInvoice(id, items) {
var itemstring='';
for(var i=0; i<items.length; i++) {
itemstring += '&items['+ items[i]['id'] + ']=' + items[i]['value'];
if(items[i]['value'] == '0') {
alert('All products must be assigned');
return void(0);
}
}
var url = 'ajax.php?do[]=asset_invoice:assign&invoice_id='+id+itemstring;
http.open("GET", url, true);
http.onreadystatechange = function() {
if (http.readyState == 4) {
try {
if(http.responseText=='true') {
document.getElementById(id).innerHTML='<b><center>Success! Asset(s) assigned for invoice # ' + id + '</center></b>';
} else {
alert(http.responseText);
}
} catch(e) {}
}
}
http.send(null);
}
function setItemValue(items, itemId, value) {
for(var i=0; i<items.length; i++) {
if(items[i]['id'] == itemId) {
items[i]['value'] = value;
}
}
}

View File

@@ -0,0 +1,60 @@
<script src="themes/default/blocks/asset_invoice/ajax.js" type="text/javascript"></script>
{if !$invoices}
<b>No invoices found</b>
{else}
{foreach from=$invoices item=i}
<form target="_blank">
<table width="100%" border="1" cellpadding="5" cellspacing="0" bordercolor="#666666">
<tr>
<th colspan="2" bgcolor="#999999" scope="col"><font color="#FFFFFF">Invoice # {$i.id} </font></th>
</tr>
<tr>
<td width="10%"><strong>Customer</strong></td>
<td width="90%">{$i.first_name} {$i.last_name}, {$i.address1} {$i.address2}, {$i.city}, {$i.state} {$i.zip} </td>
</tr>
<tr>
<td colspan="2" bgcolor="#CCCCCC">
<div id="{$i.id}">
<table width="100%" border="1" cellpadding="4" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#FFFFFF">
<tr>
<th scope="col">SKU</th>
<th scope="col">PRODUCT NAME </th>
<th scope="col">ASSIGN ASSET </th>
</tr>
{foreach from=$i.items item=p}
<tr>
<td>{$p.sku}</td>
<td>{$p.name}</td>
<td>
<select name="items" onchange="setItemValue(items_{$i.id}, {$p.id}, this.value)">
<option value="0">- SELECT ASSET -</option>
{foreach from=$assets item=a}
<option value="{$a.id}">{$a.name}</option>
{/foreach}
</select>
</td>
</tr>
{/foreach}
</table>
</div>
</td>
</tr>
<tr>
<td colspan="2" align="right">
<input type="button" value="Assign Now" onclick="assignInvoice('{$i.id}', items_{$i.id});" />
</td>
</tr>
</table>
<br>
<input type="hidden" name="_page" value="asset_invoice:assign" />
<input type="hidden" name="do[]" value="asset_invoice:assign" />
<input type="hidden" name="invoice_id" value="{$i.id}" />
<input type="hidden" name="pool_id" value="{$VAR.pool_id}" />
</form>
<script>
var items_{$i.id} = [];
{$i.itemsJs}
</script>
{/foreach}
{/if}

View File

@@ -0,0 +1,16 @@
{$method->exe("asset_invoice","main")}
{if !$pools}
<h3>No Asset Pools Configured</h3>
{else}
<h3>Select an Asset Pool</h3>
<form>
<select name="pool_id">
{foreach from=$pools item=p}
<option value="{$p.id}">{$p.name}</option>
{/foreach}
</select>
<input type="hidden" name="_page" value="asset_invoice:invoice" />
<input type="hidden" name="do[]" value="asset_invoice:invoice" />
<input type="submit" value="Submit" />
</form>
{/if}

View File

@@ -0,0 +1,50 @@
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display the form to collect the input values -->
<form id="asset_pool_add" name="asset_pool_add" method="post" action="">
{$COOKIE_FORM}
<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=asset_pool}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=asset_pool}
field_name
{/translate}</td>
<td width="65%">
<input type="text" name="asset_pool_name" value="{$VAR.asset_pool_name}" {if $asset_pool_name == true}class="form_field_error"{/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="asset_pool:view">
<input type="hidden" name="_page_current" value="asset_pool:add">
<input type="hidden" name="do[]" value="asset_pool:add">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,95 @@
{$method->exe("asset_pool","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 = 'asset_pool';
{/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="5%" class="table_heading">&nbsp;</td>
<td width="95%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=asset_pool}field_name{/translate}{literal}','name'));
</script>
{/literal}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$asset_pool item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=asset_pool:view&id={$record.id},{$COOKIE_URL}';" 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="5%">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td>&nbsp;{$record.name}</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>
<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}{$COOKIE_URL}', 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">
<br>
</center>
{/if}
{/if}
</div>

View File

@@ -0,0 +1,100 @@
{ $method->exe("asset_pool","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
{literal}
<!-- Define the update delete function -->
<script language="JavaScript">
<!-- START
var module = 'asset_pool';
var locations = '{/literal}{$VAR.module_id}{literal}';
if (locations != "")
{
refresh(0,'#'+locations)
}
// 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=$asset_pool item=asset_pool} <a name="{$asset_pool.id}"></a>
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display each record -->
<form name="asset_pool_view" method="post" action="">
{$COOKIE_FORM}
<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=asset_pool}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="35%">
{translate module=asset_pool}
field_name
{/translate}</td>
<td width="65%">
<input type="text" name="asset_pool_name" value="{$asset_pool.name}" size="32">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%"></td>
<td width="65%">
<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('{$asset_pool.id}','{$VAR.id}');">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="asset_pool:view">
<input type="hidden" name="asset_pool_id" value="{$asset_pool.id}">
<input type="hidden" name="do[]" value="asset_pool:update">
<input type="hidden" name="id" value="{$VAR.id}">
</form>
{/foreach}
{/if}

View File

@@ -0,0 +1,166 @@
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
{ if $success_add == true }
<!-- Display the Backup Iframe -->
<iframe name="iframeBackup" id="iframeBackup" style="border:0px; width:0px; height:0px" scrolling="no" frameborder="0" ALLOWTRANSPARENCY="true"></iframe>
<SCRIPT LANGUAGE="JavaScript">{literal}
var limit = 500;
var offset = 0;
function Backup(module_id,backup_id,offset)
{
showIFrame('iframeBackup',600,300,'?_page=backup:backup_module&do[]=backup:backup_module&_escape=1&module_id='+{/literal}module_id{literal}+'&limit='+limit+'&offset='+offset+'&backup_id='+backup_id);
}
showIFrame('iframeBackup',600,300,'?_page=backup:backup_module&do[]=backup:backup_module&_escape=1&module_id=&limit='+limit+'&offset='+offset+'&backup_id='+{/literal}{$record_id}{literal});
</SCRIPT>{/literal}
{else}
<!-- Display the form to collect the input values -->
<form id="backup_add" name="backup_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=backup}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=backup}
field_date_expire
{/translate}
</td>
<td width="65%">
{ $list->calender_add("backup_date_expire", $VAR.backup_date_expire, "form_field") }
<input type="hidden" name="backup_date_orig" value="{$smarty.now}">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=backup}
field_modules
{/translate}
</td>
<td width="65%">
{ $list->menu_multi($VAR.backup_modules, 'backup_modules', 'module', 'name', '', '20', 'form_menu') }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=backup}
field_notes
{/translate}
</td>
<td width="65%">
<textarea name="backup_notes" cols="40" rows="5" {if $backup_notes == true}class="form_field_error"{/if}>{$VAR.backup_notes}</textarea>
</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="backup:add">
<input type="hidden" name="_page_current" value="backup:add">
<input type="hidden" name="do[]" value="backup:add">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<br>
<form id="backup_add" name="backup_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=backup}
title_manual
{/translate}
</center>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="row1">
<tr>
<td>
{translate module=backup}
manual_instructions
{/translate}
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="35%">
{translate module=backup}
field_manual
{/translate}
</td>
<td width="65%">
<input type="text" name="back_filename" value="{$VAR.backup_filename}" {if $backup_filename == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=backup}
field_date_expire
{/translate}
</td>
<td width="65%">
{ $list->calender_add("backup_date_expire", $VAR.backup_date_expire, "form_field") }
<input type="hidden" name="backup_date_orig2" value="{$smarty.now}">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=backup}
field_notes
{/translate}
</td>
<td width="65%">
<textarea name="backup_notes" cols="40" rows="5" {if $backup_notes == true}class="form_field_error"{/if}>{$VAR.backup_notes}</textarea>
</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="backup:view">
<input type="hidden" name="_page_current" value="backup:add">
<input type="hidden" name="do[]" value="backup:manual">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}

View File

@@ -0,0 +1,36 @@
{ $block->display("core:top_clean") }
<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}
alert
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellpadding="2">
<tr>
<td class="{cycle values="row1,row2"}"><img src="themes/{$THEME_NAME}/images/icons/about_16.gif" border="0" width="16" height="16" hspace="3">
{$backup_message}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<SCRIPT LANGUAGE="JavaScript">
{$javascript}
</SCRIPT>

View File

@@ -0,0 +1,101 @@
{$method->exe("backup","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 = 'backup';
{/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="5%" class="table_heading">&nbsp;</td>
<td width="31.6666666667%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=backup}field_date_orig{/translate}{literal}','date_orig'));
</script>
{/literal}
</td>
<td width="31.6666666667%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=backup}field_date_expire{/translate}{literal}','date_expire'));
</script>
{/literal}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$backup item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=backup: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="5%">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td>&nbsp;
{$list->date_time($record.date_orig)}
</td>
<td>&nbsp;
{$list->date_time($record.date_expire)}
</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>
<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">
<br>
</center>
{/if}
{/if}
</div>

View File

@@ -0,0 +1,176 @@
{ $method->exe("backup","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 = 'backup';
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=$backup item=backup} <a name="{$backup.id}"></a>
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display each record -->
<form name="backup_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=backup}
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="35%">
{translate module=backup}
field_date_orig
{/translate}
</td>
<td width="65%">
{$list->date_time($backup.date_orig)}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=backup}
field_date_expire
{/translate}
</td>
<td width="65%">
{ $list->calender_view("backup_date_expire", $backup.date_expire, "form_field", "") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=backup}
field_modules
{/translate}
</td>
<td width="65%">
{ $list->menu_multi($backup.modules, 'backup_modules', 'module', 'name', '', '12', 'form_menu') }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=backup}
field_notes
{/translate}
</td>
<td width="65%">
<textarea name="backup_notes" cols="40" rows="5" >{$backup.notes}</textarea>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%"><a href="?_page=core:blank&do[]=backup:download&id={$backup.id}&_escape=1" target="_blank">
</a></td>
<td width="65%">&nbsp; </td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="row1">
<tr>
<td>
<div align="center"><a href="?_page=core:blank&do[]=backup:download&id={$backup.id}&_escape=1" target="_blank">
</a>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row1">
<tr>
<td><a href="?_page=core:blank&do[]=backup:download&id={$backup.id}&_escape=1" target="_blank">
<b>
{translate module=backup}
download
{/translate}
</b></a> </td>
<td align="right">
<input type="button" name="delete" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$backup.id}','{$VAR.id}');">
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="row1">
<tr>
<td>
<div align="center"> <b>
{translate module=backup}
restore_instructions
{/translate}
</b><br>
<a href="?_page=core:admin&do[]=backup:restore&id={$backup.id}&_page={$VAR._page}">
<b> <br>
{translate module=backup}
restore
{/translate}
</b></a> </div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="backup:view">
<input type="hidden" name="backup_id" value="{$backup.id}">
<input type="hidden" name="do[]" value="backup:update">
<input type="hidden" name="id" value="{$VAR.id}">
</form>
{/foreach}
{/if}

View File

@@ -0,0 +1,64 @@
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display the form to collect the input values -->
<form id="blocked_email_add" name="blocked_email_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">
<div align="center">
{translate module=blocked_email}
title_add
{/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=blocked_email}
field_email
{/translate}
</td>
<td width="65%">
<input type="text" name="blocked_email_email" value="{$VAR.blocked_email_email}" {if $blocked_email_email == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=blocked_email}
field_notes
{/translate}
</td>
<td width="65%">
<input type="text" name="blocked_email_notes" value="{$VAR.blocked_email_notes}" {if $blocked_email_notes == true}class="form_field_error"{/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="blocked_email:view">
<input type="hidden" name="_page_current" value="blocked_email:add">
<input type="hidden" name="do[]" value="blocked_email:add">
<input type="hidden" name="blocked_email_date_orig" value="{$smarty.now}">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,100 @@
{ $method->exe("blocked_email","search_form") }
{ if ($method->result == FALSE) }
{ $block->display("core:method_error") }
{else}
<form name="blocked_email_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">
<div align="center">
{translate module=blocked_email}
title_search
{/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=blocked_email}
field_email
{/translate}
</td>
<td width="65%">
<input type="text" name="blocked_email_email" value="{$VAR.blocked_email_email}" {if $blocked_email_email == true}class="form_field_error"{/if}>
&nbsp;&nbsp;
{translate}
search_partial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=blocked_email}
field_notes
{/translate}
</td>
<td width="65%">
<input type="text" name="blocked_email_notes" value="{$VAR.blocked_email_notes}" {if $blocked_email_notes == true}class="form_field_error"{/if}>
&nbsp;&nbsp;
{translate}
search_partial
{/translate}
</td>
</tr>
<!-- Define the results per page -->
<tr class="row1" valign="top">
<td width="35%">
{translate}
search_results_per
{/translate}
</td>
<td width="65%">
<input type="text" name="limit" size="5" value="{$blocked_email_limit}">
</td>
</tr>
<!-- Define the order by field per page -->
<tr class="row1" valign="top">
<td width="35%">
{translate}
search_order_by
{/translate}
</td>
<td width="65%">
<select name="order_by">
{foreach from=$blocked_email item=record}
<option value="{$record.field}">
{$record.translate}
</option>
{/foreach}
</select>
</td>
</tr>
<tr class="row1" valign="top">
<td width="35%"></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="blocked_email">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{ $block->display("core:saved_searches") }
{ $block->display("core:recent_searches") }
{/if}

View File

@@ -0,0 +1,94 @@
{$method->exe("blocked_email","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 = 'blocked_email';
{/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="5%" class="table_heading">&nbsp;</td>
<td width="95%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=blocked_email}field_email{/translate}{literal}','email'));
</script>
{/literal}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$blocked_email item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=blocked_email: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="5%">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td>&nbsp;&nbsp;{$record.email}</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>
<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">
<br>
</center>
{/if}
{/if}
</div>

View File

@@ -0,0 +1,127 @@
{ $method->exe("blocked_email","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 = 'blocked_email';
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=$blocked_email item=blocked_email} <a name="{$blocked_email.id}"></a>
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display each record -->
<form name="blocked_email_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">
<div align="center">
{translate module=blocked_email}
title_view
{/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=blocked_email}
field_date_orig
{/translate}
</td>
<td width="65%">
{$list->date_time($blocked_email.date_orig)}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=blocked_email}
field_email
{/translate}
</td>
<td width="65%">
<input type="text" name="blocked_email_email" value="{$blocked_email.email}" size="32">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=blocked_email}
field_notes
{/translate}
</td>
<td width="65%">
<input type="text" name="blocked_email_notes" value="{$blocked_email.notes}" size="32">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%"></td>
<td width="65%">
<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('{$blocked_email.id}','{$VAR.id}');">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="blocked_email:view">
<input type="hidden" name="blocked_email_id" value="{$blocked_email.id}">
<input type="hidden" name="do[]" value="blocked_email:update">
<input type="hidden" name="id" value="{$VAR.id}">
</form>
{/foreach}
{/if}

View File

@@ -0,0 +1,63 @@
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display the form to collect the input values -->
<form id="blocked_ip_add" name="blocked_ip_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">
<div align="center">
{translate module=blocked_ip}
title_add
{/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=blocked_ip}
field_ip
{/translate}
</td>
<td width="65%">
<input type="text" name="blocked_ip_ip" value="{$VAR.blocked_ip_ip}" {if $blocked_ip_ip == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=blocked_ip}
field_notes
{/translate}
</td>
<td width="65%">
<textarea name="blocked_ip_notes" cols="40" rows="5" {if $blocked_ip_notes == true}class="form_field_error"{/if}>{$VAR.blocked_ip_notes}</textarea>
</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="blocked_ip:view">
<input type="hidden" name="_page_current" value="blocked_ip:add">
<input type="hidden" name="do[]" value="blocked_ip:add">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,100 @@
{ $method->exe("blocked_ip","search_form") }
{ if ($method->result == FALSE) }
{ $block->display("core:method_error") }
{else}
<form name="blocked_ip_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">
<div align="center">
{translate module=blocked_ip}
title_search
{/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=blocked_ip}
field_ip
{/translate}
</td>
<td width="65%">
<input type="text" name="blocked_ip_ip" value="{$VAR.blocked_ip_ip}" {if $blocked_ip_ip == true}class="form_field_error"{/if}>
&nbsp;&nbsp;
{translate}
search_partial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=blocked_ip}
field_notes
{/translate}
</td>
<td width="65%">
<input type="text" name="blocked_ip_notes" value="{$VAR.blocked_ip_notes}" {if $blocked_ip_notes == true}class="form_field_error"{/if}>
&nbsp;&nbsp;
{translate}
search_partial
{/translate}
</td>
</tr>
<!-- Define the results per page -->
<tr class="row1" valign="top">
<td width="35%">
{translate}
search_results_per
{/translate}
</td>
<td width="65%">
<input type="text" name="limit" size="5" value="{$blocked_ip_limit}">
</td>
</tr>
<!-- Define the order by field per page -->
<tr class="row1" valign="top">
<td width="35%">
{translate}
search_order_by
{/translate}
</td>
<td width="65%">
<select name="order_by">
{foreach from=$blocked_ip item=record}
<option value="{$record.field}">
{$record.translate}
</option>
{/foreach}
</select>
</td>
</tr>
<tr class="row1" valign="top">
<td width="35%"></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="blocked_ip">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{ $block->display("core:saved_searches") }
{ $block->display("core:recent_searches") }
{/if}

View File

@@ -0,0 +1,94 @@
{$method->exe("blocked_ip","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 = 'blocked_ip';
{/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="5%" class="table_heading">&nbsp;</td>
<td width="95%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=blocked_ip}field_ip{/translate}{literal}','ip'));
</script>
{/literal}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$blocked_ip item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=blocked_ip: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="5%">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td>&nbsp;&nbsp;{$record.ip}</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>
<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">
<br>
</center>
{/if}
{/if}
</div>

View File

@@ -0,0 +1,118 @@
{ $method->exe("blocked_ip","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 = 'blocked_ip';
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=$blocked_ip item=blocked_ip} <a name="{$blocked_ip.id}"></a>
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display each record -->
<form name="blocked_ip_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">
<div align="center">
{translate module=blocked_ip}
title_view
{/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=blocked_ip}
field_ip
{/translate}
</td>
<td width="65%">
<input type="text" name="blocked_ip_ip" value="{$blocked_ip.ip}" size="32">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=blocked_ip}
field_notes
{/translate}
</td>
<td width="65%">
<textarea name="blocked_ip_notes" cols="40" rows="5" >{$blocked_ip.notes}</textarea>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%"></td>
<td width="65%">
<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('{$blocked_ip.id}','{$VAR.id}');">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="blocked_ip:view">
<input type="hidden" name="blocked_ip_id" value="{$blocked_ip.id}">
<input type="hidden" name="do[]" value="blocked_ip:update">
<input type="hidden" name="id" value="{$VAR.id}">
</form>
{/foreach}
{/if}

View File

@@ -0,0 +1,312 @@
<!-- Image Preview -->{literal}
<script language="JavaScript" type="text/JavaScript">
function previewImage(fileInfo) {
var filename = "";
//create the path to your local file
if (fileInfo == null) {
if (document.form1.file != "") {
filename = "file:///" + document.form1.file.value;
}
} else {
filename = fileInfo;
}
//check if there is a value
if (filename == "") {
alert ("Please select a image.");
document.form1.file.focus();
} else {
//create the popup
popup = window.open('', 'imagePreview', 'width=640,height=100,left=100,top=75, screenX=100,screenY=75,scrollbars,location,menubar,status=0,toolbar=0,resizable=1');
//start writing in the html code
popup.document.writeln("<html><body bgcolor='#FFFFFF'>");
//get the extension of the file to see if it has one of the image extensions
var fileExtension = filename.substring(filename.lastIndexOf(".")+1);
if (fileExtension == "jpg" || fileExtension == "jpeg" || fileExtension == "gif"
|| fileExtension == "png")
popup.document.writeln("<img src='" + filename + "'>");
else
//if not extension fron list above write URL to file
popup.document.writeln("<a href='" + filename + "'>" + filename + "</a>");
popup.document.writeln("</body></html>");
popup.document.close();
popup.focus();
}
}
</script>{/literal}
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display the form to collect the input values -->
<form id="campaign_add" name="campaign_add" method="post" action="" enctype="multipart/form-data">
<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=campaign}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=campaign}
field_date_orig
{/translate}
</td>
<td width="65%">
{$list->date_time("")}
<input type="hidden" name="campaign_date_orig" value="{$smarty.now}">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
field_date_last
{/translate}
</td>
<td width="65%">
{$list->date_time("")}
<input type="hidden" name="campaign_date_last" value="{$smarty.now}">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
field_date_start
{/translate}
</td>
<td width="65%">
{ $list->calender_add("campaign_date_start", $VAR.campaign_date_start, "form_field") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
field_date_expire
{/translate}
</td>
<td width="65%">
{ $list->calender_add("campaign_date_expire", $VAR.campaign_date_expire, "form_field") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
field_status
{/translate}
</td>
<td width="65%">
{if $VAR.campaign_status != ""}
{ $list->bool("campaign_status", $VAR.campaign_status, "form_menu") }
{else}
{ $list->bool("campaign_status", "1", "form_menu") }
{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
field_name
{/translate}
</td>
<td width="65%">
<input type="text" name="campaign_name" value="{$VAR.campaign_name}" {if $campaign_name == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
field_description
{/translate}
</td>
<td width="65%">
<textarea name="campaign_description" cols="40" rows="5" {if $campaign_description == true}class="form_field_error"{/if}>{$VAR.campaign_description}</textarea>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
field_budget
{/translate}
</td>
<td width="65%">
<input type="text" name="campaign_budget" value="{$VAR.campaign_budget}" {if $campaign_budget == true}class="form_field_error"{/if} size="5">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
field_url
{/translate}
<br>
</td>
<td width="65%">
<input type="text" name="campaign_url" value="{$VAR.campaign_url}" {if $campaign_url == true}class="form_field_error"{/if}>
<br>
<br>
</td>
</tr>
<tr valign="top">
<td width="35%">&nbsp; </td>
<td width="65%">
{translate module=campaign}
files
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
add_one
{/translate}
</td>
<td width="65%">
<input type="file" name="upload_file1" size="38" {if $campaign_file1 == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
add_two
{/translate}
</td>
<td width="65%">
<input type="file" name="upload_file2" size="38">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
add_three
{/translate}
</td>
<td width="65%">
<input type="file" name="upload_file3" size="38">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
add_four
{/translate}
</td>
<td width="65%">
<input type="file" name="upload_file4" size="38">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
add_five
{/translate}
</td>
<td width="65%">
<input type="file" name="upload_file5" size="38">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
add_six
{/translate}
</td>
<td width="65%">
<input type="file" name="upload_file6" size="38">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
add_seven
{/translate}
</td>
<td width="65%">
<input type="file" name="upload_file7" size="38">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
add_eight
{/translate}
</td>
<td width="65%">
<input type="file" name="upload_file8" size="38">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
add_nine
{/translate}
</td>
<td width="65%">
<input type="file" name="upload_file9" size="38">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
add_ten
{/translate}
</td>
<td width="65%">
<input type="file" name="upload_file10" size="38">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
add_eleven
{/translate}
</td>
<td width="65%">
<input type="file" name="upload_file11" size="38">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
add_twelve
{/translate}
</td>
<td width="65%">
<input type="file" name="upload_file12" size="38">
</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="campaign:view">
<input type="hidden" name="_page_current" value="campaign:add">
<input type="hidden" name="do[]" value="campaign:add">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,415 @@
{ $method->exe("campaign","affiliate") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
<!-- Loop through each record -->
{foreach from=$campaign item=campaign} <a name="{$campaign.id}"></a>
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display each record -->
<form name="campaign_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=campaign}
title_view
{/translate}
</center>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellpadding="5">
{if $campaign.file1 != ""}
<tr>
<td>
<div align="center">
<p><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=1&_log=no" target="_blank" border="0"><img src="{$URL}modules/campaign/?id={$campaign.id}&file=1&_log=no&aid={$VAR.curr_aid}" border="0"></a></p>
</div>
</td>
</tr>
<tr>
<td>
<div align="center">
<textarea name="code" cols="75" rows="3"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=1&aid={$VAR.curr_aid}"> <img src="{$URL}modules/campaign/?id={$campaign.id}&file=1"></a></textarea>
<br>
<br>
<br>
</div>
</td>
</tr>
{/if}
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellpadding="5">
{if $campaign.file2 != ""}
<tr>
<td>
<div align="center"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=2&_log=no&aid={$VAR.curr_aid}" target="_blank"><img src="{$URL}modules/campaign/?id={$campaign.id}&file=2&_log=no" border="0"></a>
</div>
</td>
</tr>
<tr>
<td class="row1">
<div align="center"><a href="{$URL}?_page=campaign:view&file=2&id={$VAR.id}&campaign_id={$campaign.id}&do%5B%5D=campaign:delete_add">
</a>
<textarea name="textarea" cols="75" rows="3"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=2"> <img src="{$URL}modules/campaign/?id={$campaign.id}&file=2&aid={$VAR.curr_aid}"> </a></textarea>
<br>
<br>
<br>
</div>
</td>
</tr>
{/if}
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellpadding="5">
{if $campaign.file3 != ""}
<tr>
<td>
<div align="center"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=3&_log=no&aid={$VAR.curr_aid}" target="_blank"><img src="{$URL}modules/campaign/?id={$campaign.id}&file=3&_log=no" border="0"></a>
</div>
</td>
</tr>
<tr>
<td class="row1">
<div align="center"><a href="{$URL}?_page=campaign:view&file=3&id={$VAR.id}&campaign_id={$campaign.id}&do%5B%5D=campaign:delete_add">
</a>
<textarea name="textarea2" cols="75" rows="3"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=3"> <img src="{$URL}modules/campaign/?id={$campaign.id}&file=3&aid={$VAR.curr_aid}"> </a></textarea>
<br>
<br>
<br>
</div>
</td>
</tr>
{/if}
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellpadding="5">
{if $campaign.file4 != ""}
<tr>
<td>
<div align="center"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=4&_log=no&aid={$VAR.curr_aid}" target="_blank"><img src="{$URL}modules/campaign/?id={$campaign.id}&file=4&_log=no" border="0"></a>
</div>
</td>
</tr>
<tr>
<td class="row1">
<div align="center"><a href="{$URL}?_page=campaign:view&file=4&id={$VAR.id}&campaign_id={$campaign.id}&do%5B%5D=campaign:delete_add">
</a>
<textarea name="textarea3" cols="75" rows="3"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=4"> <img src="{$URL}modules/campaign/?id={$campaign.id}&file=4&aid={$VAR.curr_aid}"> </a></textarea>
<br>
<br>
<br>
</div>
</td>
</tr>
{/if}
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="0" cellpadding="6" class="row2">
<tr>
<td>
<div align="center">
<table width="100%" border="0" cellpadding="5">
{if $campaign.file5 != ""}
<tr>
<td>
<div align="center"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=5&_log=no&aid={$VAR.curr_aid}" target="_blank"><img src="{$URL}modules/campaign/?id={$campaign.id}&file=5&_log=no" border="0"></a>
</div>
</td>
</tr>
<tr>
<td class="row1">
<div align="center">
<textarea name="textarea5" cols="75" rows="3"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=5"> <img src="{$URL}modules/campaign/?id={$campaign.id}&file=5&aid={$VAR.curr_aid}"> </a></textarea>
<br>
<br>
<br>
</div>
</td>
</tr>
{/if}
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellpadding="5">
{if $campaign.file6 != ""}
<tr>
<td>
<div align="center"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=6&_log=no&aid={$VAR.curr_aid}" target="_blank"><img src="{$URL}modules/campaign/?id={$campaign.id}&file=6&_log=no" border="0"></a>
</div>
</td>
</tr>
<tr>
<td class="row1">
<div align="center">
<textarea name="textarea6" cols="75" rows="3"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=6"> <img src="{$URL}modules/campaign/?id={$campaign.id}&file=6&aid={$VAR.curr_aid}"> </a></textarea>
<br>
<br>
<br>
</div>
</td>
</tr>
{/if}
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellpadding="5">
{if $campaign.file7 != ""}
<tr>
<td>
<div align="center"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=7&_log=no&aid={$VAR.curr_aid}" target="_blank"><img src="{$URL}modules/campaign/?id={$campaign.id}&file=7&_log=no" border="0"></a>
</div>
</td>
</tr>
<tr>
<td class="row1">
<div align="center">
<textarea name="textarea7" cols="75" rows="3"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=7"> <img src="{$URL}modules/campaign/?id={$campaign.id}&file=7&aid={$VAR.curr_aid}"> </a></textarea>
<br>
<br>
<br>
</div>
</td>
</tr>
{/if}
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellpadding="5">
{if $campaign.file8 != ""}
<tr>
<td>
<div align="center"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=8&_log=no&aid={$VAR.curr_aid}" target="_blank"><img src="{$URL}modules/campaign/?id={$campaign.id}&file=8&_log=no" border="0"></a>
</div>
</td>
</tr>
<tr>
<td class="row1">
<div align="center">
<textarea name="textarea8" cols="75" rows="3"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=8"> <img src="{$URL}modules/campaign/?id={$campaign.id}&file=8&aid={$VAR.curr_aid}"> </a></textarea>
<br>
<br>
<br>
</div>
</td>
</tr>
{/if}
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellpadding="5">
{if $campaign.file9 != ""}
<tr>
<td>
<div align="center"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=9&_log=no&aid={$VAR.curr_aid}" target="_blank"><img src="{$URL}modules/campaign/?id={$campaign.id}&file=9&_log=no" border="0"></a>
</div>
</td>
</tr>
<tr>
<td class="row1">
<div align="center">
<textarea name="textarea9" cols="75" rows="3"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=9"> <img src="{$URL}modules/campaign/?id={$campaign.id}&file=9&aid={$VAR.curr_aid}"> </a></textarea>
<br>
<br>
<br>
</div>
</td>
</tr>
{/if}
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellpadding="5">
{if $campaign.file10 != ""}
<tr>
<td>
<div align="center"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=10&_log=no&aid={$VAR.curr_aid}" target="_blank"><img src="{$URL}modules/campaign/?id={$campaign.id}&file=10&_log=no" border="0"></a>
</div>
</td>
</tr>
<tr>
<td class="row1">
<div align="center">
<textarea name="textarea10" cols="75" rows="3"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=10"> <img src="{$URL}modules/campaign/?id={$campaign.id}&file=10&aid={$VAR.curr_aid}"> </a></textarea>
<br>
<br>
<br>
</div>
</td>
</tr>
{/if}
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellpadding="5">
{if $campaign.file11 != ""}
<tr>
<td>
<div align="center"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=11&_log=no&aid={$VAR.curr_aid}" target="_blank"><img src="{$URL}modules/campaign/?id={$campaign.id}&file=11&_log=no" border="0"></a>
</div>
</td>
</tr>
<tr>
<td class="row1">
<div align="center">
<textarea name="textarea11" cols="75" rows="3"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=11"> <img src="{$URL}modules/campaign/?id={$campaign.id}&file=11&aid={$VAR.curr_aid}"> </a></textarea>
<br>
<br>
<br>
</div>
</td>
</tr>
{/if}
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellpadding="5">
{if $campaign.file12 != ""}
<tr>
<td>
<div align="center"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=12&_log=no&aid={$VAR.curr_aid}" target="_blank"><img src="{$URL}modules/campaign/?id={$campaign.id}&file=12&_log=no" border="0"></a>
</div>
</td>
</tr>
<tr>
<td class="row1">
<div align="center">
<textarea name="textarea12" cols="75" rows="3"><a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file=12"> <img src="{$URL}modules/campaign/?id={$campaign.id}&file=12&aid={$VAR.curr_aid}"> </a></textarea>
<br>
<br>
<br>
</div>
</td>
</tr>
{/if}
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">&nbsp;</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">&nbsp;</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">&nbsp;</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<p>&nbsp;</p>
<p align="center"><b><br>
</b>
{translate module=campaign}
random_code
{/translate}
</p>
<p align="center"><br>
</p>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1" align="center">
<textarea name="textarea4" cols="75" rows="5"><script language="Javascript">{literal}<!--
var currentdate = 0;
var core = 0;
function StringArray (n) {
this.length = n;
for (var i = 1; i <= n; i++) {
this[i] = " ";
}
}{/literal}
{counter start=0 skip=1 assign="counter"}{if $campaign.file2 != ""}{counter}{/if}{if $campaign.file3 != ""}{counter}{/if}{if $campaign.file4 != ""}{counter}{/if}{counter}
image = new StringArray({$counter});
{counter start=0 skip=1 assign="counter"}
image[0] = '1';
{if $campaign.file2 != ""}{counter}image[{$counter}] = '2';
{/if}
{if $campaign.file3 != ""}{counter}image[{$counter}] = '3';
{/if}
{if $campaign.file4 != ""}{counter}image[{$counter}] = '4';
{/if}
{if $campaign.file2 != ""}{counter}image[{$counter}] = '5';
{/if}
{if $campaign.file3 != ""}{counter}image[{$counter}] = '6';
{/if}
{if $campaign.file4 != ""}{counter}image[{$counter}] = '7';
{/if}
{if $campaign.file2 != ""}{counter}image[{$counter}] = '8';
{/if}
{if $campaign.file3 != ""}{counter}image[{$counter}] = '9';
{/if}
{if $campaign.file4 != ""}{counter}image[{$counter}] = '10';
{/if}
{if $campaign.file2 != ""}{counter}image[{$counter}] = '11';
{/if}
{if $campaign.file3 != ""}{counter}image[{$counter}] = '12';
{/if}
var ran = 60/image.length
{literal}function ranimage() {
currentdate = new Date()
core = currentdate.getSeconds()
core = Math.floor(core/ran)
return(image[core])
}{/literal}
var fileId = ranimage();
var write1 = '<a href="{$URL}?_page=campaign:click&caid={$campaign.id}&file='+fileId+'&aid={$VAR.curr_aid}&_escape">';
var write2 = '<img src="{$URL}modules/campaign/?id={$campaign.id}&file='+fileId+'" border="0"></a>';
document.write(write1 + "" + write2);
//--></script></textarea>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>
<input type="hidden" name="_page" value="campaign:view">
<input type="hidden" name="campaign_id" value="{$campaign.id}">
<input type="hidden" name="do[]" value="campaign:update">
<input type="hidden" name="id" value="{$VAR.id}">
</p>
<p>&nbsp; </p>
</form>
{/foreach}
{/if}

View File

@@ -0,0 +1,5 @@
{ $method->exe("campaign","click") }
{ if ($method->result == FALSE) }
{ $block->display("core:method_error") }
{ /if }

View File

@@ -0,0 +1,5 @@
{ $method->exe("campaign","display") }
{ if ($method->result == FALSE) }
{ $block->display("core:method_error") }
{ /if }

View File

@@ -0,0 +1,148 @@
{ $method->exe("campaign","search_form") }
{ if ($method->result == FALSE) }
{ $block->display("core:method_error") }
{else}
<form name="campaign_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=campaign}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="35%">
{translate module=campaign}
field_date_orig
{/translate}
</td>
<td width="65%">
{ $list->calender_search("campaign_date_orig", $VAR.campaign_date_orig, "form_field", "") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
field_date_last
{/translate}
</td>
<td width="65%">
{ $list->calender_search("campaign_date_last", $VAR.campaign_date_last, "form_field", "") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
field_date_start
{/translate}
</td>
<td width="65%">
{ $list->calender_search("campaign_date_start", $VAR.campaign_date_start, "form_field", "") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
field_date_expire
{/translate}
</td>
<td width="65%">
{ $list->calender_search("campaign_date_expire", $VAR.campaign_date_expire, "form_field", "") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
field_status
{/translate}
</td>
<td width="65%">
{ $list->bool("campaign_status", "all", "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
field_name
{/translate}
</td>
<td width="65%">
<input type="text" name="campaign_name" value="{$VAR.campaign_name}" {if $campaign_name == true}class="form_field_error"{/if}>
&nbsp;&nbsp;
{translate}
search_partial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=campaign}
field_description
{/translate}
</td>
<td width="65%">
<input type="text" name="campaign_description" value="{$VAR.campaign_description}" {if $campaign_description == true}class="form_field_error"{/if}>
&nbsp;&nbsp;
{translate}
search_partial
{/translate}
</td>
</tr>
<!-- Define the results per page -->
<tr class="row1" valign="top">
<td width="35%">
{translate}
search_results_per
{/translate}
</td>
<td width="65%">
<input type="text" name="limit" size="5" value="{$campaign_limit}">
</td>
</tr>
<!-- Define the order by field per page -->
<tr class="row1" valign="top">
<td width="35%">
{translate}
search_order_by
{/translate}
</td>
<td width="65%">
<select name="order_by">
{foreach from=$campaign item=record}
<option value="{$record.field}">
{$record.translate}
</option>
{/foreach}
</select>
</td>
</tr>
<tr class="row1" valign="top">
<td width="35%"></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="campaign">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{ $block->display("core:saved_searches") }
{ $block->display("core:recent_searches") }
{/if}

View File

@@ -0,0 +1,184 @@
{$method->exe("campaign","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 = 'campaign';
{/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="3">
<!-- DISPLAY THE SEARCH HEADING -->
<tr valign="middle" align="center" class="table_heading">
<td width="1%" class="table_heading">&nbsp;</td>
<td width="15%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=campaign}field_name{/translate}{literal}','name'));
</script>
{/literal}
</td>
<td width="8%" class="table_heading">
{translate module=campaign}
cost
{/translate}
</td>
<td width="8%" class="table_heading">
{translate module=campaign}
impr
{/translate}
</td>
<td width="8%" class="table_heading">
{translate module=campaign}
clicks
{/translate}
</td>
<td width="8%" class="table_heading">
{translate module=campaign}
cpc
{/translate}
</td>
<td width="8%" class="table_heading">
{translate module=campaign}
cpi
{/translate}
</td>
<td width="8%" class="table_heading">
{translate module=campaign}
conversion
{/translate}
</td>
<td width="8%" class="table_heading">
{translate module=campaign}
cost_conv
{/translate}
</td>
<td width="8%" class="table_heading">
{translate module=campaign}
roi_s
{/translate}
</td>
<td width="8%" class="table_heading">
{translate module=campaign}
avg_sale_s
{/translate}
</td>
<td width="12%" class="table_heading">
{translate module=campaign}
revenue
{/translate}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$campaign item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=campaign: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="1%">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td width="15%">&nbsp;
{$record.name}
</td>
<td width="8%">
{$list->format_currency_num($record.budget,"")}
</td>
<td width="8%">
{$record.impressions_total|number_format}
</td>
<td width="8%">
{$record.clicks_total|number_format}
</td>
<td width="8%">
{$list->format_currency_num($record.cpc_avg,"")}
</td>
<td width="8%">
{$list->format_currency_num($record.cpi_avg, "")}
</td>
<td width="8%">
{$record.ctr_avg}
</td>
<td width="8%">
{$list->format_currency_num($record.conversion_cost,"")}
</td>
<td width="8%">
{$record.roi}
</td>
<td width="8%">
{$list->format_currency_num($record.invoice_avg,"")}
</td>
<td width="12%">
{$list->format_currency_num($record.invoices_revenue,"")}
(<a href="?_page=core:search&module=invoice&invoice_campaign_id={$record.id}">
{$record.invoices_referred}
</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>
<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">
<br>
<br>
<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=campaign&_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=campaign: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="#" onClick="NewWindow('SaveSearchWin','toolbar=no,status=no,width=200,height=150','?_page=core:save_search&_escape=&search_id={$search_id}&module=campaign:search_save');">
</a> <a href="?_page=campaign:search_form"><img src="themes/{$THEME_NAME}/images/icons/srch_32.gif" border="0" alt="{translate}search_new_image{/translate}"></a>
<a href="?_page=campaign:add"><img src="themes/{$THEME_NAME}/images/icons/add_32.gif" border="0" alt="{translate module=campaign}title_add{/translate}"></a>
</td>
</tr>
</table>
</center>
{/if}
{/if}
</div>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,160 @@
<form name="adhoc" 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=cart}
ad_hoc_heading
{/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=cart}
ad_hoc_sku
{/translate}
</td>
<td width="65%">
<input type="text" id="ad_hoc_sku" name="ad_hoc_sku">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=cart}
ad_hoc_name
{/translate}
</td>
<td width="65%">
<input type="text" name="ad_hoc_name">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=cart}
ad_hoc_amount
{/translate}
</td>
<td width="65%">
<input type="text" name="ad_hoc_amount" size="5">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=cart}
quantity
{/translate}
</td>
<td width="65%">
<input type="text" name="quantity" size="3" value="1">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=cart}
ad_hoc_taxable
{/translate}
</td>
<td width="65%">
<input type="checkbox" name="ad_hoc_taxable" value="1" checked>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=cart}
ad_hoc_attr
{/translate}
</td>
<td width="65%">
<div id="attr1" style="display:block">
<input type="text" name="ad_hoc_attr_var[]" size="22" onChange="javascript:document.getElementById('attr2').style.display='block'">
=
<input type="text" name="ad_hoc_attr_val[]" size="40">
</div>
<div id="attr2" style="display:none">
<input type="text" name="ad_hoc_attr_var[]" size="22" onChange="javascript:document.getElementById('attr3').style.display='block'">
=
<input type="text" name="ad_hoc_attr_val[]" size="40">
</div>
<div id="attr3" style="display:none">
<input type="text" name="ad_hoc_attr_var[]" size="22" onChange="javascript:document.getElementById('attr4').style.display='block'">
=
<input type="text" name="ad_hoc_attr_val[]" size="40">
</div>
<div id="attr4" style="display:none">
<input type="text" name="ad_hoc_attr_var[]" size="22" onChange="javascript:document.getElementById('attr5').style.display='block'">
=
<input type="text" name="ad_hoc_attr_val[]" size="40">
</div>
<div id="attr5" style="display:none">
<input type="text" name="ad_hoc_attr_var[]" size="22" onChange="javascript:document.getElementById('attr6').style.display='block'">
=
<input type="text" name="ad_hoc_attr_val[]" size="40">
</div>
<div id="attr6" style="display:none">
<input type="text" name="ad_hoc_attr_var[]" size="22" onChange="javascript:document.getElementById('attr7').style.display='block'">
=
<input type="text" name="ad_hoc_attr_val[]" size="40">
</div>
<div id="attr7" style="display:none">
<input type="text" name="ad_hoc_attr_var[]" size="22" onChange="javascript:document.getElementById('attr8').style.display='block'">
=
<input type="text" name="ad_hoc_attr_val[]" size="40">
</div>
<div id="attr8" style="display:none">
<input type="text" name="ad_hoc_attr_var[]" size="22" onChange="javascript:document.getElementById('attr9').style.display='block'">
=
<input type="text" name="ad_hoc_attr_val[]" size="40">
</div>
<div id="attr9" style="display:none">
<input type="text" name="ad_hoc_attr_var[]" size="22" onChange="javascript:document.getElementById('attr10').style.display='block'">
=
<input type="text" name="ad_hoc_attr_val[]" size="40">
</div>
<div id="attr10" style="display:none">
<input type="text" name="ad_hoc_attr_var[]" size="22">
=
<input type="text" name="ad_hoc_attr_val[]" size="40">
</div>
</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="do[]" value="cart:ad_hoc">
<input type="hidden" name="_page" value="cart:admin_view">
<input type="hidden" name="_page_current" value="cart:ad_hoc">
<input type="hidden" name="account_id" value="{$VAR.account_id}">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{literal}
<script language="JavaScript">
document.getElementById('ad_hoc_sku').focus();
</script>
{/literal}

View File

@@ -0,0 +1,17 @@
{$method->exe("cart","admin_changeqty")}
{if ($method->result == FALSE)}
{$block->display("core:method_error")}
{else}
{if $js}
<script language="javascript">
var base = '{$list->format_currency_num($base, $smarty.const.SESS_CURRENCY)}';
var setup = '{$list->format_currency_num($setup, $smarty.const.SESS_CURRENCY)}';
var qty = '{$qty}';
window.parent.updatePrice('{$VAR.id}',base,setup,qty);
</script>
javascript
{else}
no javascript
{/if}
{/if}

View File

@@ -0,0 +1,543 @@
{ $block->display("core:top_clean") }
{$method->exe("cart","admin_view")}
{if ($method->result == FALSE)}
{$block->display("core:method_error")}
{else}
{if $results <= 0}
{translate module=cart}
empty
{/translate}
{else}
{literal}
<script language="JavaScript">
<!-- START
var http = getHTTPObject();
var acct = '{/literal}{$VAR.account_id}{literal}';
function changeDomainTerm(id,term)
{
showIFrame('iframeCart',0,0,'?_page=cart:changeqty&type=3&_escape=1&id='+id+'&term='+term);
}
function changeRecurring(id,schedule)
{
showIFrame('iframeCart',0,0,'?_page=cart:admin_changeqty&account_id='+acct+'&type=2&_escape=1&id='+id+'&schedule='+schedule);
}
function changeQuantity(id,qty)
{
if(qty == "0") qty = 1;
showIFrame('iframeCart',0,0,'?_page=cart:admin_changeqty&account_id='+acct+'&type=1&_escape=1&id='+id+'&qty='+qty);
}
function deleteCart(id)
{
document.getElementById(id).style.display = 'none';
showIFrame('iframeCart',0,0,'?_page=cart:admin_changeqty&account_id='+acct+'&_escape=1&id='+id+'&qty=0');
}
function updatePrice(id,base,setup,qty)
{
document.getElementById("quantity_"+id).value = qty;
document.getElementById("def_base_price_"+id).style.display='none';
document.getElementById("base_price_"+id).innerHTML = base;
if(document.getElementById("def_setup_price_"+id))
document.getElementById("def_setup_price_"+id).style.display='none';
if(document.getElementById("setup_price_"+id))
document.getElementById("setup_price_"+id).innerHTML = setup;
}
function ad_hoc_discount(id) {
var amount = document.getElementById('ad_hoc_discount_'+id).value;
var url = "ajax.php?do[]=checkout:admin_adddiscount&id="+id+"&amount="+amount;
http.open("GET", url, true);
http.onreadystatechange = function() {
if (http.readyState == 4) {
try { eval(http.responseText) } catch(e) {}
}
}
http.send(null);
}
// END -->
</script>
{/literal}
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$cart item=cart}
<DIV id="{$cart.id}">
{if $cart.cart_type == "2"}
<!-- Show domain -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td width="67%" class="row2"><b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="51%"><b> <u>
{$cart.domain_name|upper}
.
{$cart.domain_tld|upper}
</u> </b></td>
<td width="37%">&nbsp;</td>
<td width="12%" align="right"><a href="?_page=product:details&id={$cart_assoc.product_id}">
</a><a href="javascript:deleteCart('{$cart.id}');">
</a><a href="javascript:deleteCart('{$cart.id}');">
</a><a href="?_page=product:details&id={$cart.product_id}">
</a><a href="javascript:deleteCart('{$cart.id}');"><img src="themes/{$THEME_NAME}/images/icons/trash_16.gif" border="0" alt="Remove from Cart"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="67%"> &nbsp;&nbsp;<b>
{if $cart.host_type == "register"}
{translate module=cart}
register
{/translate}
{elseif $cart.host_type == "transfer"}
{translate module=cart}
transfer
{/translate}
{elseif $cart.host_type == "park"}
{translate module=cart}
park
{/translate}
{/if}
</b></td>
</tr>
{if $cart.cart_type == "1"}
{if $cart.host_type == "ns_transfer"}
{/if}
{if $cart.host_type == "ip"}
{/if}
{/if}
</table>
</td>
<td width="30%" class="row1" valign="top" align="right">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="70%">
{translate module=cart}
base_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<div id="def_base_price_{$cart_assoc.id}">
<div id="def_base_price_{$cart.id}">
{$list->format_currency_num($cart.price, $smarty.const.SESS_CURRENCY)}
</div>
<div id="base_price_{$cart.id}"></div>
</div>
<div id="base_price_{$cart_assoc.id}"></div>
</td>
</tr>
<tr>
<td width="70%">Ad Hoc Discount</td>
<td width="30%" valign="middle" align="right"><input onChange="ad_hoc_discount('{$cart.id}');" type="text" size="5" id="ad_hoc_discount_{$cart.id}" value="{$cart.ad_hoc_discount}"></td>
</tr>
</table>
{if $cart.host_type == 'register'}
<select id="quantity_{$cart.id}" onChange="changeDomainTerm('{$cart.id}',this.value);" name="select">
{foreach from=$cart.tld_arr item=tld_price key=tld_term}
<option value="{$tld_term}" {if $tld_term == $cart.domain_term}selected{/if}>
{$tld_term}
Year
{$list->format_currency($tld_price, $smarty.const.SESS_CURRENCY)}
</option>
{/foreach}
</select>
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
{elseif $cart.cart_type == "3"}
<!-- Show ad-hoc item -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td width="67%" class="row2"><b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="51%"> <b>
{$cart.ad_hoc_name}
</b></td>
<td width="35%"><b> </b></td>
<td width="14%" align="right"> <a href="?_page=product:admin_details&id={$cart.product_id}&_escape=1">
</a> <a href="javascript:deleteCart('{$cart.id}');">
<img title=Delete src="themes/{$THEME_NAME}/images/icons/trash_16.gif" border="0"></a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="67%"> &nbsp;&nbsp;<b>
{translate module=cart}
price_type
{/translate}
: </b>
{translate module=cart}
price_type_one
{/translate}
</td>
</tr>
{if $cart.cart_type == "1"}
{if $cart.host_type == "ns_transfer"}
{/if}
{if $cart.host_type == "ip"}
{/if}
{/if}
</table>
</td>
<td width="30%" class="row1" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="70%">
{translate module=cart}
base_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<div id="def_base_price_{$cart.id}">
{$list->format_currency_num($cart.price_base, $smarty.const.SESS_CURRENCY)}
</div>
<div id="base_price_{$cart.id}"></div>
</td>
</tr>
<tr>
<td width="70%">
{translate module=cart}
quantity
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="76%" align="right">
<input type="text" id="quantity_{$cart.id}" name="quantity_{$cart.id}2" size="2" value="{$cart.quantity}" onChange="changeQuantity('{$cart.id}',this.value);">
</td>
<td width="24%" valign="middle" align="right"><img src="themes/{$THEME_NAME}/images/icons/calc_16.gif" border="0"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="70%">Ad Hoc Discount</td>
<td width="30%" valign="middle" align="right"><input onChange="ad_hoc_discount('{$cart.id}');" type="text" size="5" id="ad_hoc_discount_{$cart.id}" value="{$cart.ad_hoc_discount}"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{else}
<!-- Show product -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td width="67%" class="row2"><b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="51%"><b>
{if $list->translate("product_translate","name", "product_id", $cart.product_id, "translate_product")}
{/if}
<u>
{$translate_product.name}
</u></b></td>
<td width="35%"><b> </b></td>
<td width="14%" align="right"><a href="?_page=product:details&id={$cart.product_id}">
</a><a href="javascript:deleteCart('{$cart.id}');"><img src="themes/{$THEME_NAME}/images/icons/trash_16.gif" border="0" alt="Remove from Cart"></a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="67%"> &nbsp;&nbsp;<b>
{translate module=cart}
price_type
{/translate}
: </b>
{if $cart.product.price_type == "0"}
{translate module=cart}
price_type_one
{/translate}
{/if}
{if $cart.product.price_type == "1"}
{translate module=cart}
price_type_recurr
{/translate}
{/if}
{if $cart.product.price_type == "2"}
{translate module=cart}
price_type_trial
{/translate}
{/if}
</td>
</tr>
<tr>
<td width="67%">
{if $cart.product.price_type == "1"}
&nbsp;&nbsp;
<select id="recurr_schedule_{$cart.id}" name="recurr_schedule_{$cart.id}" onChange="changeRecurring('{$cart.id}',this.value);" >
{foreach from=$cart.price item=price_recurr key=key}
<option value="{$key}" {if $cart.recurr_schedule == $key} selected{/if}>
{$list->format_currency_num($price_recurr.base,$smarty.const.SESS_CURRENCY)}
&nbsp;
{if $key == "0" }
{translate module=cart}
recurr_week
{/translate}
{/if}
{if $key == "1" }
{translate module=cart}
recurr_month
{/translate}
{/if}
{if $key == "2" }
{translate module=cart}
recurr_quarter
{/translate}
{/if}
{if $key == "3" }
{translate module=cart}
recurr_semianual
{/translate}
{/if}
{if $key == "4" }
{translate module=cart}
recurr_anual
{/translate}
{/if}
{if $key == "5" }
{translate module=cart}
recurr_twoyear
{/translate}
{/if}
{if $key == "6" }
{translate module=cart}
recurr_threeyear
{/translate}
{/if}
{if $price_recurr.setup > 0}
&nbsp; + &nbsp;
{$list->format_currency_num($price_recurr.setup,$smarty.const.SESS_CURRENCY)}
{translate module=cart}
setup
{/translate}
{/if}
</option>
{/foreach}
</select>
{/if}
</td>
</tr>
{if $cart.service_id > 0}
<tr>
<td width="67%">&nbsp;&nbsp;
{translate module=cart service=$cart.service_id}
service_upgrade
{/translate}
</td>
</tr>
{/if}
{if $cart.cart_type == "1"}
{if $cart.host_type == "ns_transfer"}
<tr>
<td width="67%">&nbsp;&nbsp;
{translate module=cart}
host_type_domain
{/translate}
- <u>
{$cart.domain_name}
.
{$cart.domain_tld}
</u></td>
</tr>
{/if}
{if $cart.host_type == "ip"}
<tr>
<td width="67%">&nbsp;&nbsp;
{translate module=cart}
host_type_ip
{/translate}
</td>
</tr>
{/if}
{/if}
{if $cart.attr}
<tr>
<td width="67%"> {$cart.attr} </td>
</tr>
{/if}
</table>
</td>
<td width="30%" class="row1" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="70%">
{translate module=cart}
base_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<div id="def_base_price_{$cart.id}">
{$list->format_currency_num($cart.price_base, $smarty.const.SESS_CURRENCY)}
</div>
<div id="base_price_{$cart.id}"></div>
</td>
</tr>
<tr>
<td width="70%">
{translate module=cart}
setup_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<div id="def_setup_price_{$cart.id}">
{$list->format_currency_num($cart.price_setup, $smarty.const.SESS_CURRENCY)}
</div>
<div id="setup_price_{$cart.id}"></div>
</td>
</tr>
<tr>
<td width="70%">
{translate module=cart}
quantity
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="76%" align="right">&nbsp;
<input type="text" id="quantity_{$cart.id}" name="quantity_{$cart.id}" size="2" value="{$cart.quantity}" onChange="changeQuantity('{$cart.id}',this.value);" {if ($cart.host_type != "ip" && $cart.host_type != "") || $cart.service_id > 0 }disabled{/if} />
</td>
<td width="24%" valign="middle" align="right"><img src="themes/{$THEME_NAME}/images/icons/calc_16.gif" border="0"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="70%">Ad Hoc Discount</td>
<td width="30%" valign="middle" align="right"><input onChange="ad_hoc_discount('{$cart.id}');" type="text" size="5" id="ad_hoc_discount_{$cart.id}" value="{$cart.ad_hoc_discount}"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}
<br>
{foreach from=$cart.assoc item=cart_assoc}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td width="67%" class="row2"><b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="51%"><b> <u>
{$cart_assoc.domain_name|upper}
.
{$cart_assoc.domain_tld|upper}
</u> </b></td>
<td width="37%">&nbsp;</td>
<td width="12%" align="right"><a href="?_page=product:details&id={$cart_assoc.product_id}">
</a><a href="javascript:deleteCart('{$cart.id}');">
</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="67%"> &nbsp;&nbsp;<b> </b>
{if $cart_assoc.host_type == "register"}
{translate module=cart}
host_type_register
{/translate}
{elseif $cart_assoc.host_type == "transfer"}
{translate module=cart}
host_type_transfer
{/translate}
{elseif $cart_assoc.host_type == "park"}
{translate module=cart}
host_type_park
{/translate}
{/if}
{$cart.product.sku}
</td>
</tr>
</table>
</td>
<td width="30%" class="row1" valign="top" align="right">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="70%">
{translate module=cart}
base_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<div id="def_base_price_{$cart_assoc.id}">
{$list->format_currency_num($cart_assoc.price, $smarty.const.SESS_CURRENCY)}
</div>
<div id="base_price_{$cart_assoc.id}"></div>
</td>
</tr>
</table>
{if $cart_assoc.host_type == 'register'}
<select id="quantity_{$cart_assoc.id}" onChange="changeDomainTerm('{$cart_assoc.id}',this.value);" name="select2">
{foreach from=$cart_assoc.tld_arr item=tld_price key=tld_term}
<option value="{$tld_term}" {if $tld_term == $cart_assoc.domain_term}selected{/if}>
{$tld_term}
Year
{$list->format_currency($tld_price, $smarty.const.SESS_CURRENCY)}
</option>
{/foreach}
</select>
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
{/foreach}
</DIV>
{/foreach}
<iframe name="iframeCart" id="iframeCart" style="border:0px; width:0px; height:0px;" scrolling="no" ALLOWTRANSPARENCY="true" frameborder="0" SRC="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe>
{/if}
{/if}

View File

@@ -0,0 +1,466 @@
{$method->exe("cart","view")}
{if ($method->result == FALSE)}
{$block->display("core:method_error")}
{else}
{if $results <= 0}
{translate module=cart}
empty
{/translate}
<br><br>
{$block->display("product:cat")}
{else}
{literal}
<script language="JavaScript">
<!-- START
function changeDomainTerm(id,term)
{
showIFrame('iframeCart',0,0,'?_page=cart:changeqty&type=3&_escape=1&id='+id+'&term='+term);
}
function changeRecurring(id,schedule)
{
showIFrame('iframeCart',0,0,'?_page=cart:changeqty&type=2&_escape=1&id='+id+'&schedule='+schedule);
}
function changeQuantity(id,qty)
{
if(qty == "0") qty = 1;
showIFrame('iframeCart',0,0,'?_page=cart:changeqty&type=1&_escape=1&id='+id+'&qty='+qty);
}
function deleteCart(id)
{
document.getElementById(id).style.display = 'none';
showIFrame('iframeCart',0,0,'?_page=cart:changeqty&_escape=1&id='+id+'&qty=0');
}
function updatePrice(id,base,setup,qty)
{
document.getElementById("quantity_"+id).value = qty;
document.getElementById("def_base_price_"+id).style.display='none';
document.getElementById("base_price_"+id).innerHTML = base;
if(document.getElementById("def_setup_price_"+id))
document.getElementById("def_setup_price_"+id).style.display='none';
if(document.getElementById("setup_price_"+id))
document.getElementById("setup_price_"+id).innerHTML = setup;
}
// END -->
</script>
{/literal}
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$cart item=cart}
<DIV id="{$cart.id}">
{if $cart.cart_type == "2"}
<!-- Show domain -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td width="67%" class="row2"><b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="51%"><b> <u>
{$cart.domain_name|upper}.{$cart.domain_tld|upper}
</u> </b></td>
<td width="37%">&nbsp;</td>
<td width="12%" align="right"><a href="?_page=product:details&id={$cart_assoc.product_id}">
</a><a href="javascript:deleteCart('{$cart.id}');">
</a><a href="javascript:deleteCart('{$cart.id}');">
</a><a href="?_page=product:details&id={$cart.product_id}">
</a><a href="javascript:deleteCart('{$cart.id}');"><img src="themes/{$THEME_NAME}/images/icons/trash_16.gif" border="0" alt="Remove from Cart"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="67%"> &nbsp;&nbsp;<b>
{if $cart.host_type == "register"}
{translate module=cart}
register
{/translate}
{elseif $cart.host_type == "transfer"}
{translate module=cart}
transfer
{/translate}
{elseif $cart.host_type == "park"}
{translate module=cart}
park
{/translate}
{/if}
</b></td>
</tr>
{if $cart.cart_type == "1"}
{if $cart.host_type == "ns_transfer"}
{/if}
{if $cart.host_type == "ip"}
{/if}
{/if}
</table>
</td>
<td width="30%" class="row1" valign="top" align="right">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="70%">
{translate module=cart}
base_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<div id="def_base_price_{$cart_assoc.id}">
<DIV id="def_base_price_{$cart.id}">
{$list->format_currency_num($cart.price, $smarty.const.SESS_CURRENCY)}
</DIV>
<DIV id="base_price_{$cart.id}"></DIV>
</div>
<div id="base_price_{$cart_assoc.id}"></div>
</td>
</tr>
</table>
{if $cart.host_type == 'register'}
<select id="quantity_{$cart.id}" onChange="changeDomainTerm('{$cart.id}',this.value);">
{foreach from=$cart.tld_arr item=tld_price key=tld_term}
<option value="{$tld_term}" {if $tld_term == $cart.domain_term}selected{/if}>
{$tld_term}
Year
{$list->format_currency($tld_price, $smarty.const.SESS_CURRENCY)}
</option>
{/foreach}
</select>
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
{elseif $cart.cart_type == "3"}
<!-- Show ad-hoc item -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td width="67%" class="row2"><b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="51%"><b> <u> <a href="?_page=product:details&id={$cart.product_id}">
{$cart.ad_hoc_name}</a></u> </b></td>
<td width="35%"><b> </b></td>
<td width="14%" align="right"> <a href="?_page=product:admin_details&id={$cart.product_id}&_escape=1">
</a> <a href="javascript:deleteCart('{$cart.id}');">
<img title=Delete src="themes/{$THEME_NAME}/images/icons/trash_16.gif" border="0"></a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="67%"> &nbsp;&nbsp;<b>
{translate module=cart}
price_type
{/translate}
: </b>
{translate module=cart}
price_type_one
{/translate}
</td>
</tr>
{if $cart.cart_type == "1"}
{if $cart.host_type == "ns_transfer"}
{/if}
{if $cart.host_type == "ip"}
{/if}
{/if}
</table>
</td>
<td width="30%" class="row1" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="70%">
{translate module=cart}
base_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<div id="def_base_price_{$cart.id}">
{$list->format_currency_num($cart.price_base, $smarty.const.SESS_CURRENCY)}
</div>
<div id="base_price_{$cart.id}"></div>
</td>
</tr>
<tr>
<td width="70%">
{translate module=cart}
quantity
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="76%" align="right">
<input type="text" id="quantity_{$cart.id}" name="quantity_{$cart.id}2" size="2" value="{$cart.quantity}" onChange="changeQuantity('{$cart.id}',this.value);">
</td>
<td width="24%" valign="middle" align="right"><img src="themes/{$THEME_NAME}/images/icons/calc_16.gif" border="0"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{else}
<!-- Show product -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top"> <table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td width="67%" class="row2"><b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="51%"><b> {if $list->translate("product_translate","name", "product_id", $cart.product_id, "translate_product")} {/if} <u> <a href="?_page=product:details&id={$cart.product_id}"> {$translate_product.name} </a></u></b></td>
<td width="35%"><b> </b></td>
<td width="14%" align="right"><a href="?_page=product:details&id={$cart.product_id}"> </a><a href="javascript:deleteCart('{$cart.id}');"><img src="themes/{$THEME_NAME}/images/icons/trash_16.gif" border="0" alt="Remove from Cart"></a> </td>
</tr>
</table></td>
</tr>
<tr>
<td width="67%">&nbsp;&nbsp;<b> {translate module=cart} price_type {/translate} : </b> {if $cart.product.price_type == "0"} {translate module=cart} price_type_one {/translate} {/if} {if $cart.product.price_type == "1"} {translate module=cart} price_type_recurr {/translate} {/if} {if $cart.product.price_type == "2"} {translate module=cart} price_type_trial {/translate} {/if} </td>
</tr>
<tr>
<td width="67%"> {if $cart.product.price_type == "1"} &nbsp;&nbsp;
<select id="recurr_schedule_{$cart.id}" name="recurr_schedule_{$cart.id}" onChange="changeRecurring('{$cart.id}',this.value);" >
{foreach from=$cart.price item=price_recurr key=key}
<option value="{$key}" {if $cart.recurr_schedule == $key} selected{/if}> {$list->format_currency_num($price_recurr.base,$smarty.const.SESS_CURRENCY)} &nbsp; {if $key == "0" } {translate module=cart} recurr_week {/translate} {/if} {if $key == "1" } {translate module=cart} recurr_month {/translate} {/if} {if $key == "2" } {translate module=cart} recurr_quarter {/translate} {/if} {if $key == "3" } {translate module=cart} recurr_semianual {/translate} {/if} {if $key == "4" } {translate module=cart} recurr_anual {/translate} {/if} {if $key == "5" } {translate module=cart} recurr_twoyear {/translate} {/if} {if $key == "6" } {translate module=cart} recurr_threeyear {/translate} {/if} {if $price_recurr.setup > 0} &nbsp; + &nbsp; {$list->format_currency_num($price_recurr.setup,$smarty.const.SESS_CURRENCY)} {translate module=cart} setup {/translate} {/if} </option>
{/foreach}
</select>
{/if} </td>
</tr>
{if $cart.service_id > 0}
<tr>
<td width="67%">&nbsp;&nbsp; {translate module=cart service=$cart.service_id} service_upgrade {/translate} </td>
</tr>
{/if} {if $cart.cart_type == "1"} {if $cart.host_type == "ns_transfer"}
<tr>
<td width="67%">&nbsp;&nbsp; {translate module=cart} host_type_domain {/translate} - <u> {$cart.domain_name}.{$cart.domain_tld} </u></td>
</tr>
{/if} {if $cart.host_type == "ip"}
<tr>
<td width="67%">&nbsp;&nbsp; {translate module=cart} host_type_ip {/translate} </td>
</tr>
{/if} {/if}
{if $cart.attr}
<tr>
<td width="67%"> {$cart.attr} </td>
</tr>
{/if}
</table></td>
<td width="30%" class="row1" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="70%">
{translate module=cart}
base_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<DIV id="def_base_price_{$cart.id}">
{$list->format_currency_num($cart.price_base, $smarty.const.SESS_CURRENCY)}
</DIV>
<DIV id="base_price_{$cart.id}"></DIV>
</td>
</tr>
<tr>
<td width="70%">
{translate module=cart}
setup_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<DIV id="def_setup_price_{$cart.id}">
{$list->format_currency_num($cart.price_setup, $smarty.const.SESS_CURRENCY)}
</DIV>
<DIV id="setup_price_{$cart.id}"></DIV>
</td>
</tr>
<tr>
<td width="70%">
{translate module=cart}
quantity
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="76%" align="right">
<input type="text" id="quantity_{$cart.id}" name="quantity_{$cart.id}" size="2" value="{$cart.quantity}" onChange="changeQuantity('{$cart.id}',this.value);" {if ($cart.host_type != "ip" && $cart.host_type != "") || $cart.service_id > 0 }disabled{/if} />
</td>
<td width="24%" valign="middle" align="right"><img src="themes/{$THEME_NAME}/images/icons/calc_16.gif" border="0"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}
<br>
{foreach from=$cart.assoc item=cart_assoc}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td width="67%" class="row2"><b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="51%"><b> <u>
{$cart_assoc.domain_name|upper}
.
{$cart_assoc.domain_tld|upper}
</u> </b></td>
<td width="37%">&nbsp;</td>
<td width="12%" align="right"><a href="?_page=product:details&id={$cart_assoc.product_id}">
</a><a href="javascript:deleteCart('{$cart.id}');">
</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="67%"> &nbsp;&nbsp;<b> </b>
{if $cart_assoc.host_type == "register"}
{translate module=cart} host_type_register {/translate}
{elseif $cart_assoc.host_type == "transfer"}
{translate module=cart} host_type_transfer {/translate}
{elseif $cart_assoc.host_type == "park"}
{translate module=cart} host_type_park {/translate}
{/if}
{$cart.product.sku}
</td>
</tr>
</table>
</td>
<td width="30%" class="row1" valign="top" align="right">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="70%">
{translate module=cart}
base_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<div id="def_base_price_{$cart_assoc.id}">
{$list->format_currency_num($cart_assoc.price, $smarty.const.SESS_CURRENCY)}
</div>
<div id="base_price_{$cart_assoc.id}"></div>
</td>
</tr>
</table>
{if $cart_assoc.host_type == 'register'}
<select id="quantity_{$cart_assoc.id}" onChange="changeDomainTerm('{$cart_assoc.id}',this.value);">
{foreach from=$cart_assoc.tld_arr item=tld_price key=tld_term}
<option value="{$tld_term}" {if $tld_term == $cart_assoc.domain_term}selected{/if}>
{$tld_term}
Year
{$list->format_currency($tld_price, $smarty.const.SESS_CURRENCY)}
</option>
{/foreach}
</select>
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
{/foreach}
</DIV>
{/foreach}
<!-- END OF RESULT LOOP -->
<iframe name="iframeCart" id="iframeCart" style="border:0px; width:0px; height:0px;" scrolling="no" ALLOWTRANSPARENCY="true" frameborder="0" SRC="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe>
<center>
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
<tr>
<td width="78%">
<table width="150" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b>
{translate}
currency
{/translate}
</b></td>
</tr>
<tr valign="top" class="row1">
<td width="50%" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="78%">
{literal}
<script language="JavaScript"> function CurrencyChange(obj) { document.location='?_page=cart:cart&cyid='+obj.value; } </script>
{/literal}
{$list->currency_list("cyid_arr")}
<select name="select2" onChange="CurrencyChange(this);">
{foreach key=key item=item from=$cyid_arr}
<option value="{$key}" {if $key == $smarty.const.SESS_CURRENCY}{assign var=currency_thumbnail value=$item.iso}selected{/if}>
{$item.iso}
</option>
{/foreach}
</select>
</td>
<td width="22%"> <img src="themes/{$THEME_NAME}/images/currency/{$currency_thumbnail}.gif" border="0">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="22%" valign="bottom" align="right">
<form name="form1" method="post" action="{$SSL_URL}">
<input type="hidden" name="s" value="{$SESS}">
<input type="hidden" name="_page" value="checkout:checkout">
<input type="submit" name="Submit" value="{translate}checkout{/translate}" class="form_button">
</form>
</td>
</tr>
</table>
</center>
{/if}
{/if}

View File

@@ -0,0 +1,17 @@
{$method->exe("cart","changeqty")}
{if ($method->result == FALSE)}
{$block->display("core:method_error")}
{else}
{if $js}
<script language="javascript">
var base = '{$list->format_currency_num($base, $smarty.const.SESS_CURRENCY)}';
var setup = '{$list->format_currency_num($setup, $smarty.const.SESS_CURRENCY)}';
var qty = '{$qty}';
window.parent.updatePrice('{$VAR.id}',base,setup,qty);
</script>
javascript
{else}
no javascript
{/if}
{/if}

View File

@@ -0,0 +1,153 @@
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display the form to collect the input values -->
<form id="charge_add" name="charge_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=charge}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=charge}
field_status
{/translate}
</td>
<td width="65%">
{ $list->bool("charge_status", $VAR.charge_status, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_sweep_type
{/translate}
</td>
<td width="65%">
<select name="charge_sweep_type" >
<option value="0" {if $VAR.charge_sweep_type == "0"}selected{/if}>Daily</option>
<option value="1" {if $VAR.charge_sweep_type == "1"}selected{/if}>Weekly</option>
<option value="2" {if $VAR.charge_sweep_type == "2"}selected{/if}>Monthly</option>
<option value="3" {if $VAR.charge_sweep_type == "3"}selected{/if}>Quarterly</option>
<option value="4" {if $VAR.charge_sweep_type == "4"}selected{/if}>Semi-anually</option>
<option value="5" {if $VAR.charge_sweep_type == "5"}selected{/if}>Anually</option>
<option value="6" {if $VAR.charge_sweep_type == "6"}selected{/if}>On
Service Rebill</option>
</select>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_account_id
{/translate}
</td>
<td width="65%">
{html_select_account name="charge_account_id" default=$VAR.charge_account_id}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_product_id
{/translate}
</td>
<td width="65%">
{if $VAR.charge_product_id == ''}
{ $list->menu("", "charge_product_id", "product", "sku", "all", "form_menu") }
{else}
{ $list->menu("", "charge_product_id", "product", "sku", $VAR.charge_product_id, "form_menu") }
{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_service_id
{/translate}
</td>
<td width="65%">
<input type="text" name="charge_service_id" value="{$VAR.charge_service_id}" {if $charge_service_id == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_amount
{/translate}
</td>
<td width="65%">
<input type="text" name="charge_amount" value="{$VAR.charge_amount}" {if $charge_amount == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_quantity
{/translate}
</td>
<td width="65%">
<input type="text" name="charge_quantity" value="{$VAR.charge_quantity}" {if $charge_quantity == true}class="form_field_error"{/if} size="5">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_taxable
{/translate}
</td>
<td width="65%">
{ $list->bool("charge_taxable", $VAR.charge_taxable, "form_menu") }
</td>
</tr>
<tr class="row1" valign="top">
<td width="35%">
{translate module=charge}
field_attributes
{/translate}
</td>
<td width="65%">
<input type="text" name="attributes[0][0]" class=form_field size="16"> =
<input type="text" name="attributes[0][1]" class=form_field size="16"> <br>
<input type="text" name="attributes[1][0]" class=form_field size="16"> =
<input type="text" name="attributes[1][1]" class=form_field size="16"> <br>
<input type="text" name="attributes[2][0]" class=form_field size="16"> =
<input type="text" name="attributes[2][1]" class=form_field size="16"> <br>
<input type="text" name="attributes[3][0]" class=form_field size="16"> =
<input type="text" name="attributes[3][1]" class=form_field size="16"> <br>
<input type="text" name="attributes[4][0]" class=form_field size="16"> =
<input type="text" name="attributes[4][1]" class=form_field size="16"> <br>
<input type="text" name="attributes[5][0]" class=form_field size="16"> =
<input type="text" name="attributes[5][1]" class=form_field size="16">
</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="charge:view">
<input type="hidden" name="_page_current" value="charge:add">
<input type="hidden" name="do[]" value="charge:add">
<input type="hidden" name="charge_date_orig" value="{$smarty.now}">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,187 @@
{ $method->exe("charge","search_form") }
{ if ($method->result == FALSE) }
{ $block->display("core:method_error") }
{else}
<form name="charge_search" method="post" action="">
{$COOKIE_FORM}
<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=charge}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="35%">
{translate module=charge}
field_date_orig
{/translate}
</td>
<td width="65%">
{ $list->calender_search("charge_date_orig", $VAR.charge_date_orig, "form_field", "") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_status
{/translate}
</td>
<td width="65%">
{ $list->bool("charge_status", "all", "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_sweep_type
{/translate}
</td>
<td width="65%">
<select name="charge_sweep_type" >
<option value=""></option>
<option value="0" {if $VAR.charge_sweep_type == "0"}selected{/if}>Daily</option>
<option value="1" {if $VAR.charge_sweep_type == "1"}selected{/if}>Weekly</option>
<option value="2" {if $VAR.charge_sweep_type == "2"}selected{/if}>Monthly</option>
<option value="3" {if $VAR.charge_sweep_type == "3"}selected{/if}>Quarterly</option>
<option value="4" {if $VAR.charge_sweep_type == "4"}selected{/if}>Semi-anually</option>
<option value="5" {if $VAR.charge_sweep_type == "5"}selected{/if}>Anually</option>
<option value="6" {if $VAR.charge_sweep_type == "6"}selected{/if}>On
Service Rebill</option>
</select>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_account_id
{/translate}
</td>
<td width="65%">
{html_select_account name="charge_account_id" default=$VAR.charge_account_id}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_product_id
{/translate}
</td>
<td width="65%">
{ $list->menu("", "charge_product_id", "product", "sku", "all", "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_amount
{/translate}
</td>
<td width="65%">
<input type="text" name="charge_amount" value="{$VAR.charge_amount}" {if $charge_amount == true}class="form_field_error"{/if}>
&nbsp;&nbsp;
{translate}
search_partial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_quantity
{/translate}
</td>
<td width="65%">
<input type="text" name="charge_quantity" value="{$VAR.charge_quantity}" {if $charge_quantity == true}class="form_field_error"{/if} size="5">
&nbsp;&nbsp; </td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_taxable
{/translate}
</td>
<td width="65%">
{ $list->bool("charge_taxable", "all", "form_menu") }
</td>
</tr>
<tr class="row1" valign="top">
<td width="35%">
{translate module=charge}
field_attributes
{/translate}
</td>
<td width="65%">
<input type="text" name="item_attributes[0][0]" class=form_field size="16"> =
<input type="text" name="item_attributes[0][1]" class=form_field size="16"> <br>
<input type="text" name="item_attributes[1][0]" class=form_field size="16"> =
<input type="text" name="item_attributes[1][1]" class=form_field size="16"> <br>
<input type="text" name="item_attributes[2][0]" class=form_field size="16"> =
<input type="text" name="item_attributes[2][1]" class=form_field size="16"> <br>
<input type="text" name="item_attributes[3][0]" class=form_field size="16"> =
<input type="text" name="item_attributes[3][1]" class=form_field size="16"> <br>
<input type="text" name="item_attributes[4][0]" class=form_field size="16"> =
<input type="text" name="item_attributes[4][1]" class=form_field size="16"> <br>
<input type="text" name="item_attributes[5][0]" class=form_field size="16"> =
<input type="text" name="item_attributes[5][1]" class=form_field size="16">
</td>
</tr>
<!-- Define the results per page -->
<tr class="row1" valign="top">
<td width="35%">
{translate}
search_results_per
{/translate}
</td>
<td width="65%">
<input type="text" name="limit" size="5" value="{$charge_limit}">
</td>
</tr>
<!-- Define the order by field per page -->
<tr class="row1" valign="top">
<td width="35%">
{translate}
search_order_by
{/translate}
</td>
<td width="65%">
<select name="order_by">
{foreach from=$charge item=record}
<option value="{$record.field}">
{$record.translate}
</option>
{/foreach}
</select>
</td>
</tr>
<tr class="row1" valign="top">
<td width="35%"></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="charge">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{ $block->display("core:saved_searches") }
{ $block->display("core:recent_searches") }
{/if}

View File

@@ -0,0 +1,142 @@
{$method->exe("charge","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 = 'charge';
{/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="9%" class="table_heading">&nbsp;</td>
<td width="23%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=charge}field_date_orig{/translate}{literal}','date_orig'));
</script>
{/literal}
</td>
<td width="22%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=charge}field_account_id{/translate}{literal}','account_id'));
</script>
{/literal}
</td>
<td width="23%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=charge}field_status{/translate}{literal}','status'));
</script>
{/literal}
</td>
<td width="23%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=charge}field_amount{/translate}{literal}','amount'));
</script>
{/literal}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$charge item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=charge:view&id={$record.id},{$COOKIE_URL}';" 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="9%">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td width="23%">&nbsp;
{$list->date_time($record.date_orig)}
</td>
<td width="22%">&nbsp;
{$record.account_id}
</td>
<td width="23%">&nbsp;
{if $record.status == "1"}
{translate}
true
{/translate}
{else}
{translate}
false
{/translate}
{/if}
</td>
<td width="23%">
<div align="right">&nbsp;
{$record.amount}
&nbsp; </div>
</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>
<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}{$COOKIE_URL}', 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">
<br>
<br>
<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=charge&_escape=1&search_id={$search_id}&page={$page}&order={$order}&sort={$sort}{$COOKIE_URL}');"><img src="themes/{$THEME_NAME}/images//icons/exp_32.gif" alt="{translate}search_export_image{/translate}" border="0"></a>
<a href="?_page=charge:search_show&_print=true&order_by={$order}&search_id={$search_id}&limit={$limit}&page={$page}{$COOKIE_URL}"><img src="themes/{$THEME_NAME}/images//icons/print_32.gif" border="0" alt="{translate}search_print_image{/translate}"></a>
<a href="?_page=charge:search_form{$COOKIE_URL}"><img src="themes/{$THEME_NAME}/images/icons/srch_32.gif" border="0" alt="{translate}search_new_image{/translate}"></a>
<a href="?_page=charge:add{$COOKIE_URL}"><img src="themes/{$THEME_NAME}/images/icons/add_32.gif" border="0" alt="{translate module=charge}title_add{/translate}"></a>
</td>
</tr>
</table>
</center>
{/if}
{/if}
</div>

View File

@@ -0,0 +1,208 @@
{ $method->exe("charge","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
{literal}
<!-- Define the update delete function -->
<script src="themes/{/literal}{$THEME_NAME}{literal}/view.js"></script>
<script language="JavaScript">
<!-- START
var module = 'charge';
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=$charge item=charge} <a name="{$charge.id}"></a>
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display each record -->
<form id="charge_view" name="charge_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=charge}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="35%">
{translate module=charge}
field_date_orig
{/translate}</td>
<td width="65%">
{$list->date_time($charge.date_orig)}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_status
{/translate}</td>
<td width="65%">
{ $list->bool("charge_status", $charge.status, "onChange=\"submit()\"") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_sweep_type
{/translate}</td>
<td width="65%">
{if $charge.sweep_type == "0"}
Daily
{/if}
{if $charge.sweep_type == "1"}
Weekly
{/if}
{if $charge.sweep_type == "2"}
Monthly
{/if}
{if $charge.sweep_type == "3"}
Quarterly
{/if}
{if $charge.sweep_type == "4"}
Semi-Anually
{/if}
{if $charge.sweep_type == "5"}
Anually
{/if}
{if $charge.sweep_type == "6"}
On Service Rebill
{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_account_id
{/translate}</td>
<td width="65%">
{html_select_account name="charge_account_id" default=$charge.account_id}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_product_id
{/translate}</td>
<td width="65%">
{$charge.product_id}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_service_id
{/translate}</td>
<td width="65%">
{$charge.service_id}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_amount
{/translate}</td>
<td width="65%">
<input type="text" name="charge_amount" value="{$charge.amount}" size="16">
{$list->currency_iso("")}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_quantity
{/translate}</td>
<td width="65%">
<input type="text" name="charge_quantity" value="{$charge.quantity}" size="3">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_taxable
{/translate}</td>
<td width="65%">
{if $charge.taxable == "1"}{translate}true{/translate}{else}{translate}false{/translate}{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=charge}
field_attributes
{/translate}</td>
<td width="65%">
{$charge.attributes|nl2br|replace:"==":" -> "}
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
</td>
<td width="65%">
<div align="right">
<input type="button" name="delete" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$charge.id}','{$VAR.id}');">
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="charge:view">
<input type="hidden" name="charge_id" value="{$charge.id}">
<input type="hidden" name="do[]" value="charge:update">
<input type="hidden" name="id" value="{$VAR.id}">
</form>
{/foreach}
{/if}

View File

@@ -0,0 +1,352 @@
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display the form to collect the input values -->
<form id="checkout_add" name="checkout_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=checkout}
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="50%">
{translate module=checkout}
field_name
{/translate}
</td>
<td width="50%">
<input type="text" name="checkout_name" value="{$VAR.checkout_name}" {if $checkout_name == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=checkout}
field_description
{/translate}
</td>
<td width="50%">
<textarea name="checkout_description" cols="40" rows="2">{$VAR.checkout_description}</textarea>
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=checkout}
field_active
{/translate}
</td>
<td width="50%">
{if $VAR.checkout_active != ""}
{ $list->bool("checkout_active", $VAR.checkout_active, "form_menu") }
{else}
{ $list->bool("checkout_active", "1", "form_menu") }
{/if}
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=checkout}
field_graphic_url
{/translate}
</td>
<td width="50%">
<input type="text" name="checkout_graphic_url" value="{$VAR.checkout_graphic_url}" {if $checkout_grapic_url == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=checkout}
field_checkout_plugin
{/translate}
</td>
<td width="50%">
{ $list->menu_files("", "checkout_checkout_plugin", $VAR.checkout_checkout_plugin, "checkout_plugin", "", ".php", "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
<tr valign="top" class="row2">
<td width="33%">
{translate module=checkout}
field_allow_new
{/translate}
</td>
<td width="33%">
{translate module=checkout}
field_allow_recurring
{/translate}
</td>
<td width="33%">
{translate module=checkout}
field_allow_trial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="33%">
{ $list->bool("checkout_allow_new", $VAR.checkout_allow_new, "form_menu") }
</td>
<td width="33%">
{ $list->bool("checkout_allow_recurring", $VAR.checkout_allow_recurring, "form_menu") }
</td>
<td width="33%">
{ $list->bool("checkout_allow_trial", $VAR.checkout_allow_trial, "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
<tr valign="top" class="row2">
<td width="33%">
{translate module=checkout}
field_total_minimum
{/translate}
</td>
<td width="33%">
{translate module=checkout}
field_total_maximum
{/translate}
</td>
<td width="33%">
{translate module=checkout}
field_max_decline_attempts
{/translate}
</td>
</tr>
<tr valign="top">
<td width="33%">
<input type="text" name="checkout_total_minimum" value="{$VAR.checkout_total_minimum}" {if $checkout_total_minimum == true}class="form_field_error"{/if} size="5">
{ $list->currency_iso("") }
</td>
<td width="33%">
<input type="text" name="checkout_total_maximum" value="{$VAR.checkout_total_maximum}" {if $checkout_total_maximum == true}class="form_field_error"{/if} size="5">
{ $list->currency_iso("") }
</td>
<td width="33%">
<input type="text" name="checkout_max_decline_attempts" value="{$VAR.checkout_max_decline_attempts}" {if $checkout_max_decline_attempts == true}class="form_field_error"{/if} size="5">
{ $list->currency_iso("") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
<tr valign="top" class="row2">
<td width="33%">
{translate module=checkout}
field_required_groups
{/translate}
</td>
<td width="33%">
{translate module=checkout}
field_excluded_products
{/translate}
</td>
</tr>
<tr valign="top">
<td width="33%">
{ $list->menu_multi($VAR.checkout_required_groups, "checkout_required_groups", "group", "name", "5", "5", "form_menu") }
</td>
<td width="33%">
{ $list->menu_multi($VAR.checkout_excluded_products, "checkout_excluded_products", "product", "sku", "5", "5", "form_menu") }
</td>
</tr>
</table>
</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=checkout}
field_manual_approval_all
{/translate}
</td>
<td width="50%">
{translate module=checkout}
field_manual_approval_recur
{/translate}
</td>
</tr>
<tr valign="top">
<td width="50%">
{ $list->bool("checkout_manual_approval_all", $VAR.checkout_manual_approval_all, "form_menu") }
</td>
<td width="50%">
{ $list->bool("checkout_manual_approval_recur", $VAR.manual_approval_recur, "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%">
{translate module=checkout}
field_manual_approval_amount
{/translate}
</td>
<td width="50%">
{translate module=checkout}
field_manual_approval_currency
{/translate}
</td>
</tr>
<tr valign="top">
<td width="50%">
<input type="text" name="checkout_manual_approval_amount" value="{$VAR.checkout_manual_approval_amount}" {if $checkout_manual_approval_amount == true}class="form_field_error"{/if} size="5">
{ $list->currency_iso("") }
</td>
<td width="50%">
{ $list->menu_multi($VAR.checkout_manual_approval_currency, "checkout_manual_approval_currency", "currency", "name", "5", "5", "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%">
{translate module=checkout}
field_manual_approval_country
{/translate}
</td>
<td width="50%">
{translate module=checkout}
field_manual_approval_group
{/translate}
</td>
</tr>
<tr valign="top">
<td width="50%">
{ $list->menu_multi($VAR.checkout_manual_approval_country, "checkout_manual_approval_country", "country", "name", "5", "5", "form_menu") }
</td>
<td width="50%">
{ $list->menu_multi($VAR.checkout_manual_approval_group, "checkout_manual_approval_group", "group", "name", "5", "5", "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%">
{translate module=checkout}
field_default_when_amount
{/translate}
</td>
<td width="50%">
{translate module=checkout}
field_default_when_currency
{/translate}
</td>
</tr>
<tr valign="top">
<td width="50%">
<input type="text" name="checkout_default_when_amount" value="{$VAR.checkout_default_when_amount}" {if $checkout_default_when_amount == true}class="form_field_error"{/if} size="5">
{ $list->currency_iso("") }
</td>
<td width="50%">
{ $list->menu_multi($VAR.checkout_default_when_currency, "checkout_default_when_currency", "currency", "name", "5", "5", "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%">
{translate module=checkout}
field_default_when_country
{/translate}
</td>
<td width="50%">
{translate module=checkout}
field_default_when_group
{/translate}
</td>
</tr>
<tr valign="top">
<td width="50%">
{ $list->menu_multi($VAR.checkout_default_when_country, "checkout_default_when_country", "country", "name", "5", "5", "form_menu") }
</td>
<td width="50%">
{ $list->menu_multi($VAR.checkout_default_when_group, "checkout_default_when_group", "group", "name", "5", "5", "form_menu") }
</td>
</tr>
</table>
</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=checkout}
field_allowed_currencies
{/translate}
</td>
<td width="50%">
{translate module=checkout}
field_email_template
{/translate}
</td>
</tr>
<tr valign="top">
<td width="50%">
{ $list->menu_multi($VAR.checkout_allowed_currencies, "checkout_allowed_currencies", "currency", "name", "5", "5", "form_menu") }
</td>
<td width="50%">
<textarea name="checkout_email" cols="40" rows="4">{$VAR.checkout_email_template}</textarea>
</td>
</tr>
<tr valign="top">
<td width="50%"></td>
<td width="50%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="checkout:view">
<input type="hidden" name="_page_current" value="checkout:add">
<input type="hidden" name="do[]" value="checkout:add">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,652 @@
{ $block->display("core:top_clean") }
{$method->exe("checkout","admin_preview")}
{if ($method->result == FALSE)}
{$block->display("core:method_error")}
{else}
{if $results == 0}
{translate module=cart}
empty
{/translate}
{else}
{if $SESS_LOGGED != "1"}
{ $block->display("account:login") }
{else}
<!-- LOOP THROUGH EACH RECORD -->
<div id="cart_items" {style_hide}>
{foreach from=$cart item=cart}
<DIV id="{$cart.id}">
{if $cart.cart_type == "2"}
<!-- Show domain -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td width="67%" class="row2"><b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="51%"><b> <u>
{$cart.domain_name|upper}
.
{$cart.domain_tld|upper}
</u> </b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="67%"> &nbsp;&nbsp;<b>
{if $cart.host_type == "register"}
{translate module=cart}
register
{/translate}
{elseif $cart.host_type == "transfer"}
{translate module=cart}
transfer
{/translate}
{elseif $cart.host_type == "park"}
{translate module=cart}
park
{/translate}
{/if}
</b></td>
</tr>
{if $cart.cart_type == "1"}
{if $cart.host_type == "ns_transfer"}
{/if}
{if $cart.host_type == "ip"}
{/if}
{/if}
</table>
</td>
<td width="30%" class="row1" valign="top" align="right">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="70%">
{translate module=cart}
base_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<div id="def_base_price_{$cart_assoc.id}">
<div id="def_base_price_{$cart.id}">
{$list->format_currency_num($cart.price, $smarty.const.SESS_CURRENCY)}
</div>
<div id="base_price_{$cart.id}"></div>
</div>
<div id="base_price_{$cart_assoc.id}"></div>
</td>
</tr>
</table>
{if $cart.host_type == 'register'}
<select id="quantity_{$cart.id}" disabled name="select">
{foreach from=$cart.tld_arr item=tld_price key=tld_term}
<option value="{$tld_term}" {if $tld_term == $cart.domain_term}selected{/if}>
{$tld_term}
Year
{$list->format_currency($tld_price, $smarty.const.SESS_CURRENCY)}
</option>
{/foreach}
</select>
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
{elseif $cart.cart_type == "3"}
<!-- Show ad-hoc item -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td width="67%" class="row2"><b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="51%"><b> <u>
{$cart.ad_hoc_name}
</u> </b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="67%"> &nbsp;&nbsp;<b>
{translate module=cart}
price_type
{/translate}
: </b>
{translate module=cart}
price_type_one
{/translate}
</td>
</tr>
{if $cart.cart_type == "1"}
{if $cart.host_type == "ns_transfer"}
{/if}
{if $cart.host_type == "ip"}
{/if}
{/if}
</table>
</td>
<td width="30%" class="row1" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="70%">
{translate module=cart}
base_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<div id="def_base_price_{$cart.id}">
{$list->format_currency_num($cart.price_base, $smarty.const.SESS_CURRENCY)}
</div>
<div id="base_price_{$cart.id}"></div>
</td>
</tr>
<tr>
<td width="70%">
{translate module=cart}
quantity
{/translate}
</td>
<td width="30%" valign="middle" align="right">
{$cart.quantity}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{else}
<!-- Show product -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td width="67%" class="row2"><b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="51%"><b>
{if $list->translate("product_translate","name", "product_id", $cart.product_id, "translate_product")}
{/if}
<u>
{$translate_product.name}
</u> </b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="67%"> &nbsp;&nbsp;<b>
{translate module=cart}
price_type
{/translate}
: </b>
{if $cart.product.price_type == "0"}
{translate module=cart}
price_type_one
{/translate}
{/if}
{if $cart.product.price_type == "1"}
{translate module=cart}
price_type_recurr
{/translate}
{/if}
{if $cart.product.price_type == "2"}
{translate module=cart}
price_type_trial
{/translate}
{/if}
</td>
</tr>
<tr>
<td width="67%">
{if $cart.product.price_type == "1"}
&nbsp;&nbsp;
<select id="recurr_schedule_{$cart.id}" name="recurr_schedule_{$cart.id}" disabled>
{foreach from=$cart.price item=price_recurr key=key}
<option value="{$key}" {if $cart.recurr_schedule == $key} selected{/if}>
{$list->format_currency_num($price_recurr.base,$smarty.const.SESS_CURRENCY)}
&nbsp;
{if $key == "0" }
{translate module=cart}
recurr_week
{/translate}
{/if}
{if $key == "1" }
{translate module=cart}
recurr_month
{/translate}
{/if}
{if $key == "2" }
{translate module=cart}
recurr_quarter
{/translate}
{/if}
{if $key == "3" }
{translate module=cart}
recurr_semianual
{/translate}
{/if}
{if $key == "4" }
{translate module=cart}
recurr_anual
{/translate}
{/if}
{if $key == "5" }
{translate module=cart}
recurr_twoyear
{/translate}
{/if}
{if $key == "6" }
{translate module=cart}
recurr_threeyear
{/translate}
{/if}
{if $price_recurr.setup > 0 }
&nbsp;&nbsp; + &nbsp;
{$list->format_currency_num($price_recurr.setup,$smarty.const.SESS_CURRENCY)}
{translate module=cart}
setup
{/translate}
{/if}
</option>
{/foreach}
</select>
{/if}
</td>
</tr>
{if $cart.service_id != "" && $cart.service_id > 0}
<tr>
<td width="67%">&nbsp;&nbsp;
{translate module=cart service=$cart.service_id}
service_upgrade
{/translate}
</td>
</tr>
{/if}
{if $cart.cart_type == "1"}
{if $cart.host_type == "ns_transfer"}
<tr>
<td width="67%">&nbsp;&nbsp;
{translate module=cart}
host_type_domain
{/translate}
- <u>
{$cart.domain_name}
.
{$cart.domain_tld}
</u></td>
</tr>
{/if}
{if $cart.host_type == "ip"}
<tr>
<td width="67%">&nbsp;&nbsp;
{translate module=cart}
host_type_ip
{/translate}
</td>
</tr>
{/if}
{/if}
{if $cart.attr}
<tr>
<td width="67%"> {$cart.attr} </td>
</tr>
{/if}
</table>
</td>
<td width="30%" class="row1" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="70%">
{translate module=cart}
base_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<div id="def_base_price_{$cart.id}">
{$list->format_currency_num($cart.price_base, $smarty.const.SESS_CURRENCY)}
</div>
<div id="base_price_{$cart.id}"></div>
</td>
</tr>
<tr>
<td width="70%">
{translate module=cart}
setup_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<div id="def_setup_price_{$cart.id}">
{$list->format_currency_num($cart.price_setup, $smarty.const.SESS_CURRENCY)}
</div>
<div id="setup_price_{$cart.id}"></div>
</td>
</tr>
<tr>
<td width="70%">
{translate module=cart}
quantity
{/translate}
</td>
<td width="30%" valign="middle" align="right">
{$cart.quantity}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}
<br>
{foreach from=$cart.assoc item=cart_assoc}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td width="67%" class="row2"><b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="51%"><b> <u>
{$cart_assoc.domain_name|upper}
.
{$cart_assoc.domain_tld|upper}
</u> </b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="67%"> &nbsp;&nbsp;<b> </b>
{if $cart_assoc.host_type == "register"}
{translate module=cart}
host_type_register
{/translate}
{elseif $cart_assoc.host_type == "transfer"}
{translate module=cart}
host_type_transfer
{/translate}
{elseif $cart_assoc.host_type == "park"}
{translate module=cart}
host_type_park
{/translate}
{/if}
{$cart.product.sku}
</td>
</tr>
</table>
</td>
<td width="30%" class="row1" valign="top" align="right">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="70%">
{translate module=cart}
base_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<div id="def_base_price_{$cart_assoc.id}">
{$list->format_currency_num($cart_assoc.price, $smarty.const.SESS_CURRENCY)}
</div>
<div id="base_price_{$cart_assoc.id}"></div>
</td>
</tr>
</table>
{if $cart_assoc.host_type == 'register'}
<select id="quantity_{$cart_assoc.id}" disabled name="select">
{foreach from=$cart_assoc.tld_arr item=tld_price key=tld_term}
<option value="{$tld_term}" {if $tld_term == $cart_assoc.domain_term}selected{/if}>
{$tld_term}
Year
{$list->format_currency($tld_price, $smarty.const.SESS_CURRENCY)}
</option>
{/foreach}
</select>
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
{/foreach}
</DIV>
{/foreach}
</div>
<!-- END OF RESULT LOOP -->
<p id="cart_items_show"><a href="javascript:void(0);" onclick="javascript:getElementById('cart_items').style.display='block'; getElementById('cart_items_show').style.display='none';">{translate module=cart}view_items{/translate}</a></p>
<!-- CURRENCY OPTIONS & DISCOUNT CODE ENTRY -->
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
<tr>
<td width="33%" align="left" valign="top">
<form name="adminadd" method="post" action="">
<table width="200" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="45%">Send E-mails? </td>
<td width="55%">
<input name="email" id="email" type="checkbox" value="1" checked></td>
</tr>
<tr valign="top" class="row2">
<td>Due Date </td>
<td>{$list->calender_add("due_date", '', '', '') }</td>
</tr>
<tr valign="top" class="row2">
<td>Grace Period</td>
<td><input name="grace_period" id="grace_period" type="text" value="{$smarty.const.GRACE_PERIOD}" size="4">
days</td>
</tr>
<tr valign="top" class="row2">
<td>Max Notices</td>
<td><input name="notice_max" id="notice_max" type="text" value="{$smarty.const.MAX_BILLING_NOTICE}" size="4">
days</td>
</tr>
<tr valign="top" class="row2">
<td colspan="2"> {literal}
<script language="JavaScript">
function doAdminCheckout(option)
{
var email=document.getElementById('email').checked;
if(email) email='true'; else email = 'false';
var due_date=document.forms[0].due_date.value;
var grace_period=document.getElementById('grace_period').value;
var notice_max=document.getElementById('notice_max').value;
var adminurl ='?_page=core:blank&do[]=checkout:admin_checkoutnow&option='+option+'&account_id={/literal}{$VAR.account_id}{literal}&send_email='+email+'&due_date='+due_date+'&grace_period='+grace_period+'&notice_max='+notice_max;
document.location=adminurl;
}
</script>
{/literal} <b><a href="javascript:doAdminCheckout('999');">{translate module=cart}admin_create_invoice{/translate}</a></b></td>
</tr>
</table>
</form>
<br> </td>
<td width="27%" valign="top" align="center">
<table width="150" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b>
{translate}
currency
{/translate}
</b></td>
</tr>
<tr valign="top" class="row1">
<td width="50%" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="78%">
{literal}
<script language="JavaScript"> function CurrencyChange(obj) { document.location='?_page=checkout:admin_checkout&account_id={/literal}{$VAR.account_id}{literal}&_escape=1&cyid='+obj.value; } </script>
{/literal}
{$list->currency_list("cyid_arr")}
<select name="currency" onChange="CurrencyChange(this);">
{foreach key=key item=item from=$cyid_arr}
<option value="{$key}" {if $key == $smarty.const.SESS_CURRENCY}{assign var=currency_thumbnail value=$item.iso}selected{/if}>
{$item.iso}
</option>
{/foreach}
</select>
</td>
<td width="22%"> <img src="themes/{$THEME_NAME}/images/currency/{$currency_thumbnail}.gif" border="0">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="40%" valign="top" align="right">
<table width="225" border="0" cellspacing="3" cellpadding="1" class="row1" align="right">
<tr valign="top" class="row2">
<td width="50%"><b>
{translate module=checkout}
totals
{/translate}
</b></td>
</tr>
<tr valign="top" class="row1">
<td width="50%" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row1">
<tr>
<td width="63%">
{translate module=cart}
subtotal
{/translate}
</td>
<td width="37%" align="right">
{$list->format_currency_num($sub_total, $smarty.const.SESS_CURRENCY)}
</td>
</tr>
{foreach from=$discount item=discount}
{if $discount.total > 0}
<tr>
<td width="63%">
{translate module=cart}
discount
{/translate}
(
{$discount.name}
) </td>
<td width="37%" align="right">
{$list->format_currency_num($discount.total, $smarty.const.SESS_CURRENCY)}
</td>
</tr>
{/if}
{/foreach}
{if $tax != false}
{foreach from=$tax item=tax }
<tr>
<td width="63%">
{$tax.name}
</td>
<td width="37%" align="right">
{$list->format_currency_num($tax.rate, $smarty.const.SESS_CURRENCY)}
</td>
</tr>
{/foreach}
{/if}
<tr>
<td width="63%"><b>
{translate module=cart}
total
{/translate}
</b></td>
<td width="37%" align="right"><b>
{$list->format_currency_num($total, $smarty.const.SESS_CURRENCY)}
</b></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<script language="javascript">var confirmCheckoutMsg='{translate module=checkout}redirect{/translate}';</script>
<script src="themes/default/blocks/checkout/ajax.js" type="text/javascript"></script>
<!-- CHECKOUT CONFIRM -->
<div id="checkout_confirm_div">
{if $VAR.option!=''}{$method->exe("checkout","checkoutoption")}{if $plugin_template != false}{$block->display($plugin_template)}{/if}{/if}
</div>
<p id="checkout_options_show" {style_hide}>
<a href="#" onClick="document.getElementById('checkout_confirm_div').style.display='none';document.getElementById('checkout_options_show').style.display='none';document.getElementById('checkout_options').style.display='block';">View More Payment Options</a>
</p>
<!-- CHECKOUT OPTIONS -->
<div id="checkout_options">
<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="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="2" class="body">
{if $checkout}
{foreach from=$checkout item=checkout key=key}
<tr valign="top">
<td width="20%"><a href="javascript:void(0);" onClick="changeCheckoutOption({$checkout.fields.id},'checkout',false,{$VAR.account_id})">{$checkout.fields.name}</a></td>
<td width="80%">{$checkout.fields.description}</td>
</tr>
{/foreach}
{else}
<tr valign="top">
<td>{translate module=cart}no_checkout_options{/translate}</td>
</tr>
{/if}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
</div>
<!-- SINGLE CHECKOUT OPTIONS -->
{if $VAR.option=='' && $checkout_c == 1}
<script language=javascript>changeCheckoutOption(last_checkout_id);</script>
{elseif $VAR.option>0}
<script language=javascript>
{literal}
try { document.getElementById('checkout_options_show').style.display='block'; } catch(e) {}
try { document.getElementById('checkout_options').style.display='none'; } catch(e) {}
{/literal}
</script>
{/if}
{/if}
{/if}
{/if}

View File

@@ -0,0 +1,56 @@
var http=getHTTPObject();
var last_checkout_id = '{/literal}{$checkout.fields.id}{literal}';
function changeCheckoutOption(option,type,invoice_id,account_id) {
var doRedirect=false;
var noConfirm=false;
if(type=='invoice' || type=='multi')
var url ='?_page=invoice:checkoutoption&option='+option+'&_escape=1&invoice_id='+invoice_id;
else
var url ='?_page=checkout:checkoutoption&option='+option+'&_escape=1';
if(account_id) url += '&admin=1&account_id='+account_id;
http.open("GET", url, true);
http.onreadystatechange = function() {
if (http.readyState == 4) {
try { document.getElementById('checkout_options_show').style.display='block'; } catch(e) {}
try { document.getElementById('checkout_confirm_div').innerHTML = http.responseText } catch(e) {}
try { document.getElementById('checkout_confirm_div').style.display='block'; } catch(e) {}
try { document.getElementById('checkout_options').style.display='none'; } catch(e) {}
try { doRedirect=document.getElementById('doredirect').value } catch(e) { doRedirect=false; }
try { noConfirm=document.getElementById('noconf').value } catch(e) { noConfirm=false; }
if(doRedirect=='true') if(noConfirm) {checkoutNow(0);} else {verifyCheckout();}
}
}
http.send(null);
}
function getCheckoutOption() {
return getElementById("checkout_option").value;
}
function checkoutNow(type) {
try { document.getElementById('submit_checkout_form').disabled=true; } catch(e) {}
try { document.getElementById('checkout_form').submit(); } catch(e) { alert('Unable to submit checkout form for processing'); }
}
function verifyCheckout() {
if (confirm(confirmCheckoutMsg)) {
checkoutNow(0);
} else {
document.getElementById('checkout_confirm_div').style.display='none';
document.getElementById('checkout_options_show').style.display='none';
document.getElementById('checkout_options').style.display='block';
}
}
function enter_new_card() {
try { document.getElementById('new_card').value=1; } catch(e) {}
document.getElementById('onfile').style.display='none';
document.getElementById('newcard').style.display='block';
}
function editSavedCard(admin) {
try{var id=document.getElementById('account_billing_id').value;}catch(e){var id=false;}
if(id) {
if(admin) {
var url = '?_page=account_billing:view&id='+id;
} else {
var url = '?_page=account_billing:user_view&id='+id;
}
document.location=url;
}
}

View File

@@ -0,0 +1,33 @@
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td height="17" width="50%"> <b>
{translate module=checkout}
ccv_visa_mc
{/translate}
</b></td>
<td height="17" width="50%"> <b>
{translate module=checkout}
ccv_visa_mc
{/translate}
</b></td>
</tr>
<tr>
<td width="50%">
{translate module=checkout}
ccv_visa_mc_full
{/translate}
</td>
<td width="50%">
{translate module=checkout}
ccv_visa_mc_full
{/translate}
</td>
</tr>
<tr>
<td width="50%"><img src="{$SSL_URL}themes/{$THEME_NAME}/images/CCV_help_visa_mc.gif"></td>
<td width="50%"><img src="{$SSL_URL}themes/{$THEME_NAME}/images/CCV_help_amex.gif"></td>
</tr>
</table>
<p align="center"><a href="javascript:window.close()">{translate}close{/translate}</a></p>

View File

@@ -0,0 +1,689 @@
{if $SESS_LOGGED != "1"}
{ $block->display("account:login") }
{else}
{$method->exe("checkout","preview")}
{if ($method->result == FALSE)}
{$block->display("core:method_error")}
{else}
{if $results == 0}
{translate module=cart}
empty
{/translate}
<br><br>
{$block->display("product:cat")}
{else}
<script language="javascript">var confirmCheckoutMsg='{translate module=checkout}redirect{/translate}';</script>
<script src="themes/default/blocks/checkout/ajax.js" type="text/javascript"></script>
<!-- CHECKOUT CONFIRM -->
<div id="checkout_confirm_div">
{if $VAR.option!=''}{$method->exe("checkout","checkoutoption")}{if $plugin_template != false}{$block->display($plugin_template)}{/if}{/if}
</div>
<p id="checkout_options_show" {style_hide}>
<a href="#" onClick="document.getElementById('checkout_confirm_div').style.display='none';document.getElementById('checkout_options_show').style.display='none';document.getElementById('checkout_options').style.display='block';">View More Payment Options</a>
</p>
<!-- CHECKOUT OPTIONS -->
<div id="checkout_options">
<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%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td class="table_heading">{translate module=cart}payment_option{/translate} </td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="4" cellpadding="3" bgcolor="#FFFFFF">
{if $checkout}
{foreach from=$checkout item=checkout key=key}
<tr valign="top">
<td width="20%"><a href="javascript:void(0);" onClick="changeCheckoutOption({$checkout.fields.id},'checkout',false,0)">{if $checkout.fields.graphic_url==''}{$checkout.fields.name}{else}<img src="{$checkout.fields.graphic_url}" alt="{$checkout.fields.name}" border="0">{/if}</a></td>
<td width="80%">{$checkout.fields.description}</td>
</tr>
{/foreach}
{else}
<tr valign="top">
<td>{translate module=cart}no_checkout_options{/translate}</td>
</tr>
{/if}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
</div>
<!-- SIGNLE CHECOUT OPTIONS -->
{if $VAR.option=='' && $checkout_c == 1}
<script language=javascript>changeCheckoutOption('{$last_checkout_id}');</script>
{elseif $VAR.option>0}
<script language=javascript>
{literal}
try { document.getElementById('checkout_options_show').style.display='block'; } catch(e) {}
try { document.getElementById('checkout_options').style.display='none'; } catch(e) {}
{/literal}
</script>
{/if}
{/if}
<!-- CURRENCY OPTIONS & DISCOUNT CODE ENTRY -->
<div>
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
<tr>
<td width="33%" align="left" valign="top">
<table width="150" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b>
{translate}
currency
{/translate}
</b></td>
</tr>
<tr valign="top" class="row1">
<td width="50%" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="78%">
{literal}
<script language="JavaScript"> function CurrencyChange(obj) { document.location='{/literal}{$SSL_URL}{literal}?_page=checkout:checkout&cyid='+obj.value; } </script>
{/literal}
{$list->currency_list("cyid_arr")}
<select name="currency" onChange="CurrencyChange(this);">
{foreach key=key item=item from=$cyid_arr}
<option value="{$key}" {if $key == $smarty.const.SESS_CURRENCY}{assign var=currency_thumbnail value=$item.iso}selected{/if}>
{$item.iso}
</option>
{/foreach}
</select>
</td>
<td width="22%"> <img src="themes/{$THEME_NAME}/images/currency/{$currency_thumbnail}.gif" border="0">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="33%" valign="top" align="center">
{ if $smarty.const.SHOW_DISCOUNT_CODE == 1 }
<form name="form1" method="post" action="javascript:addDiscount()">
<table width="150" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b>
{translate module=checkout}
discounts
{/translate}
</b></td>
</tr>
<tr valign="top" class="row1">
<td width="50%" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="92%">
{literal}
<script language="JavaScript">
function addDiscount() {
var discount = document.getElementById("discount").value;
document.location='{/literal}{$SSL_URL}{literal}?_page=checkout:checkout&discount='+discount+'&do[]=checkout:adddiscount';
}
</script>
{/literal}
<input type="text" id="discount" name="discount" size="12" onBlur="addDiscount()">
</td>
<td width="8%"><a href="javascript:addDiscount();"><img src="themes/{$THEME_NAME}/images/icons/calc_16.gif" border="0"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}
</td>
<td width="33%" valign="top" align="right">
{ if $list->is_installed('affiliate') == 1 && $smarty.const.SHOW_AFFILIATE_CODE == 1 }
<form name="aid" method="post" action="{$SSL_URL}">
<input type="hidden" name="_page" value="checkout:checkout">
<table width="150" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b>
{translate module=checkout}
affiliate
{/translate}
</b></td>
</tr>
<tr valign="top" class="row1">
<td width="50%" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="92%">
<input type="text" id="discount" name="aid" size="12" value="{$smarty.const.SESS_AFFILIATE}" onBlur="document.aid.submit()">
</td>
<td width="8%">
<a href="javascript:document.aid.submit();">
<img src="themes/{$THEME_NAME}/images/icons/exp_16.gif" border="0"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}
</td>
</tr>
</table>
</div>
<!-- LOOP THROUGH EACH RECORD -->
<div id="cart_items" {style_hide}>
<p><a href="?_page=cart:cart">{translate module=cart}remove_items{/translate}</a></p>
<p><a href="javascript:void(0);" onclick="javascript:getElementById('cart_items').style.display='none'; getElementById('cart_items_show').style.display='block';">{translate module=cart}hide_items{/translate}</a></p>
{foreach from=$cart item=cart}
<DIV id="{$cart.id}">
{if $cart.cart_type == "2"}
<!-- Show domain -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td width="67%" class="row2"><b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="51%"><b> <u>
{$cart.domain_name|upper}
.
{$cart.domain_tld|upper}
</u> </b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="67%"> &nbsp;&nbsp;<b>
{if $cart.host_type == "register"}
{translate module=cart}
register
{/translate}
{elseif $cart.host_type == "transfer"}
{translate module=cart}
transfer
{/translate}
{elseif $cart.host_type == "park"}
{translate module=cart}
park
{/translate}
{/if}
</b></td>
</tr>
{if $cart.cart_type == "1"}
{if $cart.host_type == "ns_transfer"}
{/if}
{if $cart.host_type == "ip"}
{/if}
{/if}
</table>
</td>
<td width="30%" class="row1" valign="top" align="right">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="70%">
{translate module=cart}
base_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<div id="def_base_price_{$cart_assoc.id}">
<DIV id="def_base_price_{$cart.id}">
{$list->format_currency_num($cart.price, $smarty.const.SESS_CURRENCY)}
</DIV>
<DIV id="base_price_{$cart.id}"></DIV>
</div>
<div id="base_price_{$cart_assoc.id}"></div>
</td>
</tr>
</table>
{if $cart.host_type == 'register'}
<select id="quantity_{$cart.id}" disabled>
{foreach from=$cart.tld_arr item=tld_price key=tld_term}
<option value="{$tld_term}" {if $tld_term == $cart.domain_term}selected{/if}>
{$tld_term}
Year
{$list->format_currency($tld_price, $smarty.const.SESS_CURRENCY)}
</option>
{/foreach}
</select>
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
{elseif $cart.cart_type == "3"}
<!-- Show ad-hoc item -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td width="67%" class="row2"><b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="51%"><b> <u>
{$cart.ad_hoc_name}
</u> </b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="67%"> &nbsp;&nbsp;<b>
{translate module=cart}
price_type
{/translate}
: </b>
{translate module=cart}
price_type_one
{/translate}
</td>
</tr>
{if $cart.cart_type == "1"}
{if $cart.host_type == "ns_transfer"}
{/if}
{if $cart.host_type == "ip"}
{/if}
{/if}
</table>
</td>
<td width="30%" class="row1" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="70%">
{translate module=cart}
base_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<div id="def_base_price_{$cart.id}">
{$list->format_currency_num($cart.price_base, $smarty.const.SESS_CURRENCY)}
</div>
<div id="base_price_{$cart.id}"></div>
</td>
</tr>
<tr>
<td width="70%">
{translate module=cart}
quantity
{/translate}
</td>
<td width="30%" valign="middle" align="right">
{$cart.quantity}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{else}
<!-- Show product -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td width="67%" class="row2"><b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="51%"><b>
{if $list->translate("product_translate","name", "product_id", $cart.product_id, "translate_product")}
{/if}
<U>
{$translate_product.name}
</U> </b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="67%"> &nbsp;&nbsp;<b>
{translate module=cart}
price_type
{/translate}
: </b>
{if $cart.product.price_type == "0"}
{translate module=cart}
price_type_one
{/translate}
{/if}
{if $cart.product.price_type == "1"}
{translate module=cart}
price_type_recurr
{/translate}
{/if}
{if $cart.product.price_type == "2"}
{translate module=cart}
price_type_trial
{/translate}
{/if}
</td>
</tr>
<tr>
<td width="67%">
{if $cart.product.price_type == "1"}
&nbsp;&nbsp;
<select id="recurr_schedule_{$cart.id}" name="recurr_schedule_{$cart.id}" disabled>
{foreach from=$cart.price item=price_recurr key=key}
<option value="{$key}" {if $cart.recurr_schedule == $key} selected{/if}>
{$list->format_currency_num($price_recurr.base,$smarty.const.SESS_CURRENCY)}
&nbsp;
{if $key == "0" }
{translate module=cart}
recurr_week
{/translate}
{/if}
{if $key == "1" }
{translate module=cart}
recurr_month
{/translate}
{/if}
{if $key == "2" }
{translate module=cart}
recurr_quarter
{/translate}
{/if}
{if $key == "3" }
{translate module=cart}
recurr_semianual
{/translate}
{/if}
{if $key == "4" }
{translate module=cart}
recurr_anual
{/translate}
{/if}
{if $key == "5" }
{translate module=cart}
recurr_twoyear
{/translate}
{/if}
{if $key == "6" }
{translate module=cart}
recurr_threeyear
{/translate}
{/if}
{if $price_recurr.setup > 0 }
&nbsp;&nbsp; + &nbsp;
{$list->format_currency_num($price_recurr.setup,$smarty.const.SESS_CURRENCY)}
{translate module=cart}
setup
{/translate}
{/if}
</option>
{/foreach}
</select>
{/if}
</td>
</tr>
{if $cart.service_id != "" && $cart.service_id > 0}
<tr>
<td width="67%">&nbsp;&nbsp;
{translate module=cart service=$cart.service_id}
service_upgrade
{/translate}
</td>
</tr>
{/if}
{if $cart.cart_type == "1"}
{if $cart.host_type == "ns_transfer"}
<tr>
<td width="67%">&nbsp;&nbsp;
{translate module=cart}
host_type_domain
{/translate}
- <u>
{$cart.domain_name}.{$cart.domain_tld}
</u></td>
</tr>
{/if}
{if $cart.host_type == "ip"}
<tr>
<td width="67%">&nbsp;&nbsp;
{translate module=cart}
host_type_ip
{/translate}
</td>
</tr>
{/if}
{/if}
{if $cart.attr}
<tr>
<td width="67%"> {$cart.attr} </td>
</tr>
{/if}
</table>
</td>
<td width="30%" class="row1" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="70%">
{translate module=cart}
base_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<DIV id="def_base_price_{$cart.id}">
{$list->format_currency_num($cart.price_base, $smarty.const.SESS_CURRENCY)}
</DIV>
<DIV id="base_price_{$cart.id}"></DIV>
</td>
</tr>
<tr>
<td width="70%">
{translate module=cart}
setup_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<DIV id="def_setup_price_{$cart.id}">
{$list->format_currency_num($cart.price_setup, $smarty.const.SESS_CURRENCY)}
</DIV>
<DIV id="setup_price_{$cart.id}"></DIV>
</td>
</tr>
<tr>
<td width="70%">
{translate module=cart}
quantity
{/translate}
</td>
<td width="30%" valign="middle" align="right">
{$cart.quantity}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}
<br>
{foreach from=$cart.assoc item=cart_assoc}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td width="67%" class="row2"><b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="51%"><b> <u>
{$cart_assoc.domain_name|upper}
.
{$cart_assoc.domain_tld|upper}
</u> </b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="67%"> &nbsp;&nbsp;<b> </b>
{if $cart_assoc.host_type == "register"}
{translate module=cart} host_type_register {/translate}
{elseif $cart_assoc.host_type == "transfer"}
{translate module=cart} host_type_transfer {/translate}
{elseif $cart_assoc.host_type == "park"}
{translate module=cart} host_type_park {/translate}
{/if}
{$cart.product.sku}
</td>
</tr>
</table>
</td>
<td width="30%" class="row1" valign="top" align="right">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="70%">
{translate module=cart}
base_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<div id="def_base_price_{$cart_assoc.id}">
{$list->format_currency_num($cart_assoc.price, $smarty.const.SESS_CURRENCY)}
</div>
<div id="base_price_{$cart_assoc.id}"></div>
</td>
</tr>
</table>
{if $cart_assoc.host_type == 'register'}
<select id="quantity_{$cart_assoc.id}" disabled>
{foreach from=$cart_assoc.tld_arr item=tld_price key=tld_term}
<option value="{$tld_term}" {if $tld_term == $cart_assoc.domain_term}selected{/if}>
{$tld_term}
Year
{$list->format_currency($tld_price, $smarty.const.SESS_CURRENCY)}
</option>
{/foreach}
</select>
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
{/foreach}
</DIV>
{/foreach}
</div>
<!-- END OF RESULT LOOP -->
<!-- TOTALS -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td valign="top" width="67%">
<p id="cart_items_show"><a href="javascript:void(0);" onclick="javascript:getElementById('cart_items').style.display='block'; getElementById('cart_items_show').style.display='none';">{translate module=cart}view_items{/translate}</a></p>
</td>
<td width="33%">
<table width="225" border="0" cellspacing="3" cellpadding="1" class="row1" align="right">
<tr valign="top" class="row2">
<td width="50%"><b>
{translate module=checkout}
totals
{/translate}
</b></td>
</tr>
<tr valign="top" class="row1">
<td width="50%" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row1">
<tr>
<td width="63%">
{translate module=cart}
subtotal
{/translate}
</td>
<td width="37%" align="right">
{$list->format_currency_num($sub_total, $smarty.const.SESS_CURRENCY)}
</td>
</tr>
{foreach from=$discount item=discount}
{if $discount.total > 0}
<tr>
<td width="63%">
{translate module=cart}
discount
{/translate}
(
{$discount.name}
) </td>
<td width="37%" align="right"> -
{$list->format_currency_num($discount.total, $smarty.const.SESS_CURRENCY)}
</td>
</tr>
{/if}
{/foreach}
{if $tax != false}
{foreach from=$tax item=tax }
<tr>
<td width="63%">
{$tax.name}
</td>
<td width="37%" align="right">
{$list->format_currency_num($tax.rate, $smarty.const.SESS_CURRENCY)}
</td>
</tr>
{/foreach}
{/if}
<tr>
<td width="63%"> <b>
{translate module=cart}
total
{/translate}
</b> </td>
<td width="37%" align="right"><b>
{$list->format_currency_num($total, $smarty.const.SESS_CURRENCY)}
</b></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}
{/if}

View File

@@ -0,0 +1,7 @@
{$method->exe("checkout","checkoutoption")}
{if $plugin_template != false}
{ $block->display($plugin_template) }
{else}
<p>Sorry, that checkout option is not valid.</p>
{/if}

View File

@@ -0,0 +1,111 @@
{$method->exe("checkout","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 = 'checkout';
{/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="5%" class="table_heading">&nbsp;</td>
<td width="31.6666666667%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=checkout}field_name{/translate}{literal}','name'));
</script>
{/literal}
</td>
<td width="31.6666666667%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=checkout}field_active{/translate}{literal}','active'));
</script>
{/literal}
</td>
<td width="31.6666666667%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=checkout}field_checkout_plugin{/translate}{literal}','checkout_plugin'));
</script>
{/literal}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$checkout item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=checkout: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="5%">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td>&nbsp;{$record.name}</td>
<td>&nbsp;{if $record.active == "1"}{translate}true{/translate}{else}{translate}false{/translate}{/if}</td>
<td>&nbsp;{$record.checkout_plugin}</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>
<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">
<br>
</center>
{/if}
{/if}
</div>

Some files were not shown because too many files have changed in this diff Show More