Changes to AgileBill

This commit is contained in:
Deon George
2009-08-03 14:10:16 +10:00
parent 0a22cfe22c
commit 27aee719b0
1051 changed files with 219109 additions and 117219 deletions

View File

@@ -1,262 +1,165 @@
{if $smarty.const.SESS_LOGGED != true }
{ $block->display("account:login") }
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{if $smarty.const.SESS_LOGGED != true}
{$block->display('account:user_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>
{if $list->is_installed('radius')}
{$block->display('radius:user')}
{/if}
{$method->exe('invoice','has_unpaid')}
{if $has_unpaid}
<table width="100%" border="0" 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 class="row1">
<table width="100%" border="0" cellspacing="5" cellpadding="1" class="row1">
<tr>
<td>
<div style="text-align: center;">
{t}You presently have unpaid invoices that total:{/t} <b>{$has_unpaid}</b><br/>
To pay all unpaid invoices now, please <a href="?_page=invoice:checkout_multiple"><b>CLICK HERE</b></a>.<br/>
To select the invoices you wish to pay, please <a href="?_page=core:user_search&module=invoice&_next_page=user_search_show&invoice_refund_status=0&invoice_billing_status=0&_next_page_one=user_view">CLICK HERE</>.</a>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>&nbsp;</p>
{/if}
<br/>
{/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 width="50%" border="0" cellspacing="0" cellpadding="0" class="table_background" style="margin-left: auto; margin-right: auto;">
<tr>
<td>
<table width="100%" border="0" cellspacing="5" cellpadding="1" class="row1">
<tr>
<td style="text-align: center;">
<a href="{$SSL_URL}?_page=account:user_view">{t}View Account{/t}</a><br/>
<a href="{$SSL_URL}?_page=core:user_search&amp;module=account_billing&amp;_next_page=user_search_show&amp;_next_page_one=user_view">{t}Billing Details{/t}</a><br/>
<a href="{$SSL_URL}?_page=core:user_search&amp;module=discount&amp;_next_page=user_search_show">{t module=account}Discounts{/t}</a><br/>
{if $smarty.const.SHOW_CONTACT_LINK}<a href="?_page=staff:staff">{t}Contact{/t}</a><br/>{/if}
{if $smarty.const.SHOW_NEWSLETTER_LINK}<a href="?_page=newsletter:newsletter">{t}Newsletter{/t}</a><br/>{/if}
{if $list->is_installed('affiliate') && $smarty.const.SHOW_AFFILIATE_LINK == 1}<a href="{$SSL_URL}?_page=affiliate:affiliate">{t}Affiliate{/t}</a>{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
<br/>
<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>
<!-- @todo Move these blocks to the respective modules -->
<table width="100%" border="0" cellpadding="0" class="body" cellspacing="0">
<tr>
<td style="width: 50%;">
<table width="65%" border="0" cellspacing="0" cellpadding="0" class="table_background" style="margin-left: auto; margin-right: auto;">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading">{t}Invoices{/t}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="5" cellpadding="1" class="row1">
<tr>
<td style="width: 75%;">{t}Due Invoices{/t}</td>
<td style="width: 25%; text-align: right;">
<a href="{$SSL_URL}?_page=core:user_search&amp;module=invoice&amp;_next_page=user_search_show&amp;invoice_billing_status=0&amp;_next_page_one=user_view">{t}List{/t}</a>
</td>
</tr>
<tr>
<td style="width: 75%">{t}Paid Invoices{/t}</td>
<td style="width: 25%; text-align: right;">
<a href="{$SSL_URL}?_page=core:user_search&amp;module=invoice&amp;_next_page=user_search_show&amp;invoice_billing_status=1&amp;_next_page_one=user_view">{t}List{/t}</a>
</td>
</tr>
<tr>
<td style="width: 75%">{t}All Invoices{/t}</td>
<td style="width: 25%; text-align: right;">
<a href="{$SSL_URL}?_page=core:user_search&amp;module=invoice&amp;_next_page=user_search_show&amp;_next_page_one=user_view">{t}List{/t}</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td style="width: 50%;">
<table width="65%" border="0" cellspacing="0" cellpadding="0" class="table_background" style="margin-left: auto; margin-right: auto;">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading">{t}Services{/t}</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellspacing="5" cellpadding="1" class="row1">
<tr>
<td style="width: 75%;">{t}Active Services{/t}</td>
<td style="width: 25%; text-align: right;">
<a href="{$SSL_URL}?_page=core:user_search&amp;module=service&amp;_next_page=user_search_show&amp;service_active=1&amp;_next_page_one=user_view">{t}List{/t}</a>
</td>
</tr>
<tr>
<td style="width: 75%;">{t}Inactive Services{/t}</td>
<td style="width: 25%; text-align: right;">
<a href="{$SSL_URL}?_page=core:user_search&amp;module=service&amp;_next_page=user_search_show&amp;service_active=0&amp;_next_page_one=user_view">{t}List{/t}</a>
</td>
</tr>
<tr>
<td style="width: 75%;">{t}All Services{/t}</td>
<td style="width: 25%; text-align: right;">
<a href="{$SSL_URL}?_page=core:user_search&amp;module=service&amp;_next_page=user_search_show&amp;_next_page_one=user_view">{t}List{/t}</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br/>
<br/>
<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}
{if $list->is_installed('file') }
<table width="600" align="center">
<tr align="center">
<td valign="top">{$block->display('file:file')}</td>
</tr>
</table>
{/if}
<!-- custom tracking code -->
{ $method->exe("invoice","custom_tracking") }
{$method->exe('invoice','custom_tracking')}
{/if}
{/if}

View File

@@ -1,317 +1,267 @@
<!-- 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>
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{$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"> -->
<form id="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 class="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td style="width: 33%;"><b>{osb f=tf field=username}</b></td>
<td style="width: 33%;"><b><input id="focus" type="text" name="account_username" value="{$VAR.account_username}"/></b></td>
<td style="width: 33%;">{t}Leave blank to allow the system auto-generate{/t}</td>
</tr>
<tr valign="top">
<td style="width: 33%;"><b>{osb f=tf field=password}</b></td>
<td style="width: 33%;"><input type="text" name="account_password" value="{$VAR.account_password}"/></td>
<td style="width: 33%;">{t}Leave blank to allow the system auto-generate{/t}</td>
</tr>
<tr valign="top">
<td style="width: 33%;"><b>{t}Send user welcome email?{/t}</b></td>
<td style="width: 33%;"><input type="checkbox" name="welcome_email" value="1" checked="checked" /></td>
<td style="width: 33%;">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td style="width: 33%;"><b>{osb f=tf field=status}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=email}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=company}</b></td>
</tr>
<tr valign="top">
<td style="width: 33%;">
{if $VAR.account_status == ''}
{if $smarty.const.DEFAULT_ACCOUNT_STATUS != '1'}
{$list->bool('account_status','1')}
{else}
{$list->bool('account_status','0')}
{/if}
{else}
{$list->bool('account_status',$VAR.account_status)}
{/if}
</td>
<td style="width: 33%;"><input type="text" name="account_email" value="{$VAR.account_email}" {if $account_email == true}class="form_field_error"{/if}/></td>
<td style="width: 33%;"><input type="text" name="account_company" value="{$VAR.account_company}" {if $account_company == true}class="form_field_error"{/if}/></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td style="width: 33%;"><b>{osb f=tf field=first_name}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=middle_name}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=last_name}</b></td>
</tr>
<tr valign="top">
<td style="width: 33%;"><input type="text" name="account_first_name" value="{$VAR.account_first_name}" {if $account_first_name == true}class="form_field_error"{/if}/></td>
<td style="width: 33%;"><input type="text" name="account_middle_name" value="{$VAR.account_middle_name}" {if $account_middle_name == true}class="form_field_error"{/if}/></td>
<td style="width: 33%;"><input type="text" name="account_last_name" value="{$VAR.account_last_name}" {if $account_last_name == true}class="form_field_error"{/if}/></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td style="width: 33%;"><b>{osb f=tf field=title}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=address1}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=address2}</b></td>
</tr>
<tr valign="top">
<td style="width: 33%;">{$list->menu_staticlist('nametitle','account_title','account_title','','form_menu','all')}</td>
<td style="width: 33%;"><input type="text" name="account_address1" value="{$VAR.account_address1}" {if $account_address1 == true}class="form_field_error"{/if}/></td>
<td style="width: 33%;"><input type="text" name="account_address2" value="{$VAR.account_address2}" {if $account_address2 == true}class="form_field_error"{/if}/></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td style="width: 33%;"><b>{osb f=tf field=city}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=state}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=zip}</b></td>
</tr>
<tr valign="top">
<td style="width: 33%;"><input type="text" name="account_city" value="{$VAR.account_city}" {if $account_city == true}class="form_field_error"{/if}/></td>
<td style="width: 33%;"><input type="text" name="account_state" value="{$VAR.account_state}" {if $account_state == true}class="form_field_error"{/if}/></td>
<td style="width: 33%;"><input type="text" name="account_zip" value="{$VAR.account_zip}" {if $account_zip == true}class="form_field_error"{/if}/></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td style="width: 33%;"><b>{osb f=tf field=country_id}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=date_expire}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=email_type}</b></td>
</tr>
<tr valign="top">
<td style="width: 33%;">
{if $VAR.account_country_id != ''}
{$list->mmenu('no','account_country_id','country','name',$VAR.account_country_id,'','form_field" onchange="taxIdsDisplay(this.value)')}
{else}
{$list->mmenu('no','account_country_id','country','name',$smarty.const.DEFAULT_COUNTRY,'','form_field" onchange="taxIdsDisplay(this.value)')}
{/if}
</td>
<td style="width: 33%;">{$list->calender_add('account_date_expire',$VAR.account_date_expire,'form_field')}</td>
<td style="width: 33%;">{$list->bool('account_email_type',$VAR.account_email_type)}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td style="width: 33%;"><b>{osb f=tf field=language_id}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=theme_id}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=currency_id}</b></td>
</tr>
<tr valign="top">
<td style="width: 33%;">
{if $VAR.account_language_id != ''}
{$list->menu_files('','account_language_id',$VAR.account_language_id,'language','','_core.xml','form_menu')}
{else}
{$list->menu_files('','account_language_id',$smarty.const.DEFAULT_LANGUAGE,'language','','_core.xml','form_menu')}
{/if}
</td>
<td style="width: 33%;">
{if $VAR.account_theme_id != ''}
{$list->menu_files('','account_theme_id',$VAR.account_theme_id,'theme','','.user_theme','form_menu')}
{else}
{$list->menu_files('','account_theme_id',$smarty.const.DEFAULT_THEME,'theme','','.user_theme','form_menu')}
{/if}
</td>
<td style="width: 33%;">
{if $VAR.account_currency_id != ''}
{$list->mmenu('no','account_currency_id','currency','name',$VAR.account_currency_id,'','form_menu')}
{else}
{$list->mmenu('no','account_currency_id','currency','name',$smarty.const.DEFAULT_CURRENCY,'','form_menu')}
{/if}
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td style="width: 33%;"><b>{translate}authorized_groups{/translate}</b></td>
<td style="width: 33%;">{if $list->is_installed('affiliate')}<b>{osb f=tf field=affiliate_id}</b>{/if}</td>
<td style="width: 33%;"><b>{osb f=tf field=misc}</b></td>
</tr>
<tr valign="top">
<td style="width: 33%;">{$list->select_groups($VAR.groups,'groups','form_field','10','')}</td>
<td style="width: 33%;">
{if $list->is_installed('affiliate')}
{osb f=html_select_affiliate name='account_affiliate_id' default=$VAR.account_affiliate_id}<br/>
<br/>
<b>{osb f=tf field=campaign_id}</b><br/>
{$list->mmenu('','account_campaign_id','campaign','name',$VAR.account_campaign_id,'','form_menu',true)}
{/if}
</td>
<td style="width: 33%;">
<textarea name="account_misc" cols="25" rows="2" {if $account_misc == true}class="form_field_error"{/if}>{$VAR.account_misc}</textarea>
</td>
</tr>
</table>
</td>
</tr>
{$method->exe_noauth('tax','get_tax_ids')}
{if $tax_ids}
<tr valign="top">
<td class="row1">
<script type="text/javascript" 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>
<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_country_id !=''}{if $VAR.account_country_id!=$tax.country_id}{osb f=style_hide}{/if}{else}{if $smarty.const.DEFAULT_COUNTRY!=$tax.country_id}{osb f=style_hide}{/if}{/if}>
<td style="width: 33%;">{$tax.tax_id_name}</td>
<td style="width: 67%;" colspan="2">
<input type="text" name="account_tax_id[{$tax.country_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}
</table>
</td>
</tr>
{/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}">
{$method->exe('account','static_var')}
{if $static_var}
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
{$block->display('core:method_error')}
{foreach from=$static_var item=record}
<tr valign="top">
<td style="width: 33%;">{$record.name}</td>
<td style="width: 67%;" colspan="2">{$record.html}</td>
</tr>
{/foreach}
</table>
</td>
</tr>
{/if}
<input type="hidden" name="do[]" value="account:add">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 0px;">&nbsp;</td>
<td>&nbsp;</td>
</tr>
{include file='file:../core/add_tr_submit.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{if $VAR.account_account_id}
<div>
<input type="hidden" name="account_parent_id" value="{$VAR.account_account_id}"/>
</div>
{/if}
</form>

View File

@@ -1,107 +0,0 @@
{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

@@ -1,40 +0,0 @@
{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

@@ -1,40 +0,0 @@
{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

@@ -1,61 +0,0 @@
<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,68 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$method->exe('account','search_form')}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
<form id="mail_multi" 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 class="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{t}Mail From{/t}</td>
<td style="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 style="width: 35%;">{t}Mail To{/t}</td>
<td style="width: 65%;">
<a href="?_page=account:search_show&search_id={$VAR.search_id}">{t}Send to all search results{/t}</a>
</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{t}Subject{/t}</td>
<td style="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 style="width: 35%;">{t}Message{/t}</td>
<td style="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 style="width: 35%;">{t}Priority{/t}</td>
<td style="width: 65%;">{$list->bool('mail_priority',$VAR.mail_priority)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">&nbsp;</td>
<td style="width: 65%;">
<input type="submit" name="Submit" value="{t}Submit{/t}" class="form_button"/>
<input type="hidden" name="_page" value="{$meth.0}:view"/>
<input type="hidden" name="do[]" value="{$meth.0}:{$meth.1}"/>
<input type="hidden" name="search_id" value="{$VAR.search_id}"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}
{$block->display('core:bottom_frame')}

View File

@@ -0,0 +1,67 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$method->exe('account','search_form')}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
<form id="mail_one" 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 class="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{t}Mail From{/t}</td>
<td style="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 style="width: 35%;">{t}Mail To{/t}</td>
<td style="width: 65%;">{osb f=html_select_account name='mail_account_id' default=$VAR.mail_account_id}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{t}Subject{/t}</td>
<td style="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 style="width: 35%;">{t}Message{/t}</td>
<td style="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 style="width: 35%;">{t}Priority{/t}</td>
<td style="width: 65%;">{$list->bool('mail_priority',$VAR.mail_priority)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">&nbsp;</td>
<td style="width: 65%;">
<input type="submit" name="Submit" value="{t}Submit{/t}" class="form_button"/>
<input type="hidden" name="_page" value="{$meth.0}:view"/>
<input type="hidden" name="do[]" value="{$meth.0}:{$meth.1}"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<script type="text/javascript">
document.getElementById('focus').focus();
</script>
</form>
{/if}

View File

@@ -0,0 +1,44 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<form id="merge" 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 class="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="6" cellpadding="1" class="row1">
<tr valign="top">
<td colspan="2">Select the account you wish to merge with the current account.<br/>
<br/>
This action will delete the selected account and associate all its invoices, services, logs, and other records with the current account.<br/>
<br/>
<b>Warning:</b> This action cannot be undone!
</td>
</tr>
<tr valign="top">
<td colspan="2">&nbsp;</td>
</tr>
<tr valign="top">
<td style="width: 50%; text-align: left;">{osb f=html_select_account name='merge_acct_id'}</td>
<td style="width: 50%; text-align: right;">
<input type="submit" name="Submit" value="{t}Submit{/t}" class="form_button"/>
<input type="hidden" name="_page" value="{$meth.0}:view"/>
<input type="hidden" name="do[]" value="{$meth.0}:{$meth.0}"/>
<input type="hidden" name="id" value="{$VAR.id}"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -1,73 +0,0 @@
<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

@@ -1,90 +0,0 @@
{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,322 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
<form id="search_form" 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 class="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=username}</td>
<td style="width: 65%;"><input type="text" name="account_username" value="{$VAR.account_username}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=email}</td>
<td style="width: 65%;"><input type="text" name="account_email" value="{$VAR.account_email}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=first_name}</td>
<td style="width: 65%;"><input type="text" name="account_first_name" value="{$VAR.account_first_name}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=middle_name}</td>
<td style="width: 65%;"><input type="text" name="account_middle_name" value="{$VAR.account_middle_name}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=last_name}</td>
<td style="width: 65%;"><input type="text" name="account_last_name" value="{$VAR.account_last_name}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=company}</td>
<td style="width: 65%;"><input type="text" name="account_company" value="{$VAR.account_company}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=address1}</td>
<td style="width: 65%;"><input type="text" name="account_address1" value="{$VAR.account_address1}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=address2}</td>
<td style="width: 65%;"><input type="text" name="account_address2" value="{$VAR.account_address2}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=city}</td>
<td style="width: 65%;"><input type="text" name="account_city" value="{$VAR.account_city}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=state}</td>
<td style="width: 65%;"><input type="text" name="account_state" value="{$VAR.account_state}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=zip}</td>
<td style="width: 65%;"><input type="text" name="account_zip" value="{$VAR.account_zip}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=misc}</td>
<td style="width: 65%;"><input type="text" name="account_misc" value="{$VAR.account_misc}" {if $account_misc == true}class="form_field_error"{/if}/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=date_orig}</td>
<td style="width: 65%;">{$list->calender_search('account_date_orig',$VAR.account_date_orig,'form_field','')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=date_expire}</td>
<td style="width: 65%;">{$list->calender_search('account_date_expire',$VAR.account_date_expire,'form_field','')}</td>
</tr>
{if $list->is_installed('affiliate')}
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=affiliate_id}</td>
<td style="width: 65%;">{osb f=html_select_affiliate name='account_affiliate_id' default=$VAR.account_affiliate_id}</td>
</tr>
{/if}
{if $list->is_installed('campaign')}
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=campaign_id}</td>
<td style="width: 65%;">{$list->menu('no','account_campaign_id','campaign','name','','form_menu',true)}</td>
</tr>
{/if}
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=country_id}</td>
<td style="width: 65%;">{$list->menu('no','account_country_id','country','name','','form_menu',true)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=language_id}</td>
<td style="width: 65%;">{$list->menu_files('','account_language_id','all','language','','_core.xml','form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=currency_id}</td>
<td style="width: 65%;">{$list->menu('no','account_currency_id','currency','name','','form_menu',true)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=theme_id}</td>
<td style="width: 65%;">{$list->menu_files('','account_theme_id','all','theme','','.user_theme','form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=status}</td>
<td style="width: 65%;">{$list->bool('account_status','all','form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=account_group}</td>
<td style="width: 65%;">{$list->menu('no','account_group','group','name','','form_menu',true)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=title}</td>
<td style="width: 65%;">{$list->menu_staticlist('nametitle','account_title','account_title','','form_menu','all')}</td>
</tr>
{$method->exe('account','static_var')}
{foreach from=$static_var item=record}
<tr valign="top">
<td style="width: 35%;">{$record.name}</td>
<td style="width: 65%;">{$record.html}</td>
</tr>
{/foreach}
<tr valign="top">
<td style="width: 35%;">{t}Results per page{/t}</td>
<td style="width: 65%;"><input type="text" name="limit" size="5" value="{$account_limit}"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{t}Order results by{/t}</td>
<td style="width: 65%;">
<select name="order_by">
{foreach from=$account item=record}
<option value="{$record.field}">{$record.translate}</option>
{/foreach}
</select>
</td>
</tr>
<tr valign="top">
<td style="width: 35%;">&nbsp;</td>
<td style="width: 65%;">&nbsp;</td>
</tr>
<tr valign="top">
<td style="width: 35%;">&nbsp;</td>
<td style="width: 65%;">
<input type="submit" name="Submit" value="{t}Search{/t}" class="form_button"/>
<input type="hidden" name="_page" value="core:search"/>
<input type="hidden" name="_next_page_one" value="view"/>
<input type="hidden" name="module" value="account"/>
</td>
</tr>
<tr valign="top">
<td style="width: 35%;">&nbsp;</td>
<td style="width: 65%;">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<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 style="width: 65%;" class="table_heading"><div style="text-align: center;">Custom Group Search</div></td>
</tr>
<tr valign="top">
<td style="width: 65%;" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=date_orig}</td>
<td style="width: 65%;">
<select name="dates[expr][]">
<option value="<">&lt;</option>
<option value=">">&gt;</option>
</select>
{$list->calender_add('dates','','','val')}<br/>
<select name="dates[expr][]">
<option value="<">&lt;</option>
<option value=">">&gt;</option>
</select>
{$list->calender_add('dates','','','val')}
</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{translate module=account}account_group{/translate}</td>
<td style="width: 65%;">{$list->menu_multi('','groups','group','name','10','10','form_menu')}</td>
</tr>
{$method->exe('account','static_var')}
{foreach from=$static_var item=record}
{/foreach}
<tr valign="top">
<td style="width: 35%;">&nbsp;</td>
<td style="width: 65%;">&nbsp;</td>
</tr>
<tr valign="top">
<td style="width: 35%;">&nbsp;</td>
<td style="width: 65%;"><input type="submit" name="Submit" value="{t}Search{/t}" class="form_button"/>
<input type="hidden" name="_page" value="core:blank"/>
<input type="hidden" name="_escape" value="Y"/>
<input type="hidden" name="do[]" value="{$meth.0}:group_search"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{if $list->is_installed('product')}
<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 style="width: 65%;" class="table_heading"><div style="text-align: center;">Custom Product Search</div></td>
</tr>
<tr valign="top">
<td style="width: 65%;" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=date_orig}</td>
<td style="width: 65%;">
<select name="dates[expr][]">
<option value="<">&lt;</option>
<option value=">">&gt;</option>
</select>
{$list->calender_add('dates','','','val')}<br/>
<select name="dates[expr][]">
<option value="<">&lt;</option>
<option value=">">&gt;</option>
</select>
{$list->calender_add('dates','','','val')}
</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{translate module=account}account_group{/translate}</td>
<td style="width: 65%;">{$list->menu_multi('','products','product','sku','10','10','form_menu')}</td>
</tr>
{$method->exe('account','static_var')}
{foreach from=$static_var item=record}
{/foreach}
<tr valign="top">
<td style="width: 35%;">&nbsp;</td>
<td style="width: 65%;">&nbsp;</td>
</tr>
<tr valign="top">
<td style="width: 35%;">&nbsp;</td>
<td style="width: 65%;"><input type="submit" name="Submit" value="{t}Search{/t}" class="form_button"/>
<input type="hidden" name="_page" value="core:blank"/>
<input type="hidden" name="_escape" value="Y"/>
<input type="hidden" name="do[]" value="{$meth.0}:product_search"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}
{if $list->is_installed('account_billing')}
<br/>
<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 style="width: 65%;" class="table_heading"><center>{translate module=account_billing}title_search{/translate}</center></td>
</tr>
<tr valign="top">
<td style="width: 65%;" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=card_num4}</td>
<td style="width: 65%;"><input name="account_billing_card_num4" type="text" size="6" maxlength="4"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=checkout_plugin_id}</td>
<td style="width: 65%;">{$list->menu('no','account_billing_checkout_plugin_id','checkout','name','','form_menu',true)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=card_type}</td>
<td style="width: 65%;">{$list->card_type_menu($VAR.account_billing_card_type,$VAR.option,'account_billing_card_type','form_menu',true)}</td>
</tr>
{include file='file:../core/search_post.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}
{/if}

View File

@@ -0,0 +1,12 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/search_show_pre.tpl'}
{$method->exe_noauth($meth.0,'tpl_search_show',$search_show)}
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl' mail=true}
{/if}

View File

@@ -1,29 +1,36 @@
<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>
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<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&amp;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&amp;id={$sub.id}">Sub-Account Management</a></div></td>
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</tr>
</table>

View File

@@ -1,280 +1,208 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Make sure user is logged out -->
{if !$smarty.const.SESS_LOGGED}
{literal}<script language="javascript">document.location='?_page=account:login';</script>{/literal}
{$block->display('account:user_login')}
{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%">
<!-- Display the form validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
{ $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>
<!-- Display the form to collect the input values -->
<form id="{$meth.0}_{$meth.1}" 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">
<div style="text-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%">{$list->menu_nametitles('account_title','account_title',$VAR.account_title,'form_menu','')}</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)',true)}
{else}
{$list->menu('no','account_country_id','country','name',$smarty.const.DEFAULT_COUNTRY,'form_field" onChange="taxIdsDisplay(this.value)',true)}
{/if}
{$method->exe_noauth('tax','get_tax_ids')}
{if $tax_ids}
<script type="text/javascript" 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>
{/if}
</td>
</tr>
{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}{osb f=style_hide}{/if}{else}{if $smarty.const.DEFAULT_COUNTRY!=$tax.country_id}{osb f=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}
{$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>
</tr>
{/if}
<tr valign="top">
<td width="43%">{translate module=account}field_email_type{/translate}</td>
<td width="57%">{$list->bool('account_email_type',$VAR.account_email_type)}</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="{$meth.0}:{$meth.0}"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}

View File

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

View File

@@ -0,0 +1,169 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Make sure user is logged out -->
{if $smarty.const.SESS_LOGGED}
{literal}<script type="text/javascript" language="javascript">document.location='?_page=account:account';</script>{/literal}
{else}
<!-- Display the form validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- Display the form to collect the input values -->
<form id="user_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 class="table_heading">{osb f=tt module=account method=user_add}</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td>{osb f=tf module=account field=username}</td>
<td><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>{osb f=tf module=account field=password}</td>
<td><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>{t}Confirm Password{/t}</td>
<td><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>{osb f=tf module=account field=email}</td>
<td><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>{osb f=tf module=account field=company}</td>
<td><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>{osb f=tf module=account field=first_name}</td>
<td><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>{osb f=tf module=account field=middle_name}</td>
<td><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>{osb f=tf module=account field=last_name}</td>
<td><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>{osb f=tf module=account field=title}</td>
<td>{$list->menu_staticlist('nametitle','account_title','account_title','','form_menu','all')}</td>
</tr>
<tr valign="top">
<td>{osb f=tf module=account field=address1}</td>
<td><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>{osb f=tf module=account field=address2}</td>
<td><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>{osb f=tf module=account field=city}</td>
<td><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>{osb f=tf module=account field=state}</td>
<td><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>{osb f=tf module=account field=zip}</td>
<td><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>{osb f=tf module=account field=country_id}</td>
<td>
{if $VAR.account_country_id != ''}
{$list->menu('no','account_country_id','country','name',$VAR.account_country_id,'form_field" onchange="taxIdsDisplay(this.value)',true)}
{else}
{$list->menu('no','account_country_id','country','name',$smarty.const.DEFAULT_COUNTRY,'form_field" onchange="taxIdsDisplay(this.value)',true)}
{/if}
{$method->exe_noauth('tax','get_tax_ids')}
{if $tax_ids}
<script type="text/javascript" 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>
</td>
</tr>
{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}{osb f=style_hide}{/if}{else}{if $smarty.const.DEFAULT_COUNTRY!=$tax.country_id}{osb f=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[$tax.country_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} -->
{/foreach}
{/if}
</td>
</tr>
{$method->exe('account','static_var')}
{foreach from=$static_var item=record}
<tr valign="top">
<td>{$record.name}</td>
<td>{$record.html}</td>
</tr>
{/foreach}
{if $smarty.const.NEWSLETTER_REGISTRATION == "1"}
<tr valign="top">
<td>{t module=account}subscribe_newsletters{/t}</td>
<td>{$method->exe('newsletter','check_list_registration')}</td>
</tr>
{/if}
<tr valign="top">
<td>{osb f=tf module=account field=email_type}</td>
<td>{$list->bool('account_email_type',$VAR.account_email_type)}</td>
</tr>
<tr valign="top">
<td>&nbsp;</td>
<td>
<input type="submit" name="Submit" value="{t}Submit{/t}" class="form_button"/>
<input type="hidden" name="_page" value="account:account"/>
{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="{$meth.0}:user_add"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}

View File

@@ -0,0 +1,69 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{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">
<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 class="table_heading"><div style="text-align: center;">{t}Account Login{/t}</div></td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="5" cellpadding="1" class="row1">
<tr>
<td style="width: 25%;">{t}Username{/t}</td>
<td style="width: 75%;"><input type="text" name="_username" id="loginUsername" value="{$VAR._username}" size="12"/></td>
</tr>
<tr>
<td style="width: 25%;">{t}Password{/t}</td>
<td style="width: 75%;"><input type="password" name="_password" size="12"/></td>
</tr>
<tr>
<td style="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}
</td>
<td style="width: 75%;"><input type="submit" name="_login2" value="{t}Login{/t}" class="form_button"/></td>
</tr>
<tr align="right">
<td colspan="2"><a href="?_page=account:user_password">{t}Reset Password{/t}</a></td>
</tr>
{if $smarty.const.DEFAULT_ACCOUNT_STATUS == '1'}
<tr align="right">
<td colspan="2"><a href="?_page=account:user_verify">{t}Verify Account{/t}</a></td>
</tr>
{/if}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<script type="text/javascript">document.getElementById('loginUsername').focus()</script>
</td>
<td>&nbsp;</td>
<td style="width: 65%;" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>{$block->display('account:user_add')}</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}

View File

@@ -0,0 +1,49 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<form id="user_password" 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 class="table_heading">{osb f=tt module=account method=user_password}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="middle" align="left">
<td>{t}If you have forgotten your password, we can issue you a temporary access code via email that will allow you to change your password. To start this process, please enter either your e-mail address or username to begin. Please do not enter both, simply providing one or the other will do just fine.{/t}</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="middle" align="left">
<td style="width: 25%;">{osb f=tf field=email}</td>
<td style="width: 75%;"><input type="text" name="account_email" value="{$VAR.account_email}" size="22"/></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 25%;">{osb f=tf field=username}</td>
<td style="width: 75%;"><input type="text" name="account_username" value="{$VAR.account_username}" size="22"/></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 25%;">&nbsp;</td>
<td style="width: 75%;"><input type="submit" name="Submit" value="{t}Submit{/t}" class="form_button"/></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div>
<input type="hidden" name="_page" value="{$VAR._page}"/>
<input type="hidden" name="do[]" value="{$meth.0}:{$meth.1}"/>
</div>
</form>

View File

@@ -0,0 +1,68 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{if $VAR.validate == ''}
{t}The link you followed has either expired, or been malformed by your email reader. If you suspect that it did not copy correctly from your email reader, please paste the entire link from your email reader to the address bar in your browser. Otherwise, you can restart your password reset request by clicking the link below:{/t}<br/>
<br/>
<a href="?_page=account:user_password">{t}Submit{/t}</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 id="user_password_reset" 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 class="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="middle" align="left">
<td>{t}Please enter the new password for your account below.{/t}<br/>
<br/>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="middle" align="left">
<td class="width: 25%;">{osb f=tf field=password}</td>
<td class="width: 75%;"><input type="password" name="account_password" value="" size="32"/></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td class="width: 25%;">{t}Confirm Password{/t}</td>
<td class="width: 75%;"><input type="password" name="confirm_password" value="" size="32"/></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td class="width: 25%;">&nbsp;</td>
<td class="width: 75%;"><input type="submit" name="Submit" value="{t}Submit{/t}" class="form_button"/></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div>
<input type="hidden" name="_page" value="{$VAR._page}"/>
<input type="hidden" name="do[]" value="{$meth.0}:{$meth.1}"/>
<input type="hidden" name="validate" value="{$VAR.validate}"/>
</div>
</form>
{else}
<input id="" type="submit" name="{t}Account Options{/t}" value="{t}Account Options{/t}" onclick="document.location='?_page=account:account'"/>
{/if}

View File

@@ -0,0 +1,107 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{if $VAR.verify != ''}
{$method->exe_noauth('account','user_verify')}
{else}
{assign var='verify_results' value='none'}
{/if}
{if $verify_results == false || $VAR.verify == ''}
<form id="user_verify" 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 class="table_heading">{osb f=tt module=account method=user_verify}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="middle" align="left">
<td>{t}Please enter the verification code from the email you recieved below. If you have not recieved the verification email, or are having trouble, you can use the form below to request that the verification email be resent.{/t}<br/>
<br/>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="middle" align="left">
<td style="width: 25%;">{t}Verification Code{/t}</td>
<td style="width: 75%;"><input type="text" name="verify" value="{$VAR.verify}" size="32"/></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 25%;"></td>
<td style="width: 75%;"><input type="submit" name="Submit" value="{t}Submit{/t}" class="form_button"/></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div>
<input type="hidden" name="_page" value="{$VAR._page}"/>
<input type="hidden" name="do[]" value="{$meth.0}:{$meth.0}"/>
</div>
</form>
{/if}
{if $verify_results != '1'}
<br/>
<form id="user_verify_resend" 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 class="table_heading">{osb f=tt module=account method=user_verify_resend}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="middle" align="left">
<td>{t}If you are having trouble with the verification code, or never received the verification email, you can use this form to request that we resend the verification email to you. Please enter either your username or email address, not both.{/t}<br/>
<br/>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="middle" align="left">
<td style="width: 25%;">{osb f=tf module=account field=email}</td>
<td style="width: 75%;"><input type="text" name="account_email" value="{$VAR.account_email}" size="22"/></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 25%;">{osb f=tf module=account field=username}</td>
<td style="width: 75%;"><input type="text" name="account_username"/></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 25%;"></td>
<td style="width: 75%;"><input type="submit" name="Submit" value="{t}Submit{/t}" class="form_button"/></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div>
<input type="hidden" name="_page" value="{$VAR._page}"/>
<input type="hidden" name="do[]" value="{$meth.0}:user_verify_resend"/>
</div>
</form>
{/if}

View File

@@ -0,0 +1,197 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Make sure user is logged out -->
{if $smarty.const.SESS_LOGGED != true}
{$block->display('account:user_login')}
{else}
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
<!-- Display the field validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- Display the form to collect the input values -->
<form id="user_view" 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 class="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row4" valign="top">
<td style="width: 30%;">{osb f=tf field=date_last}</td>
<td style="width: 70%;">{$list->date_time($record.date_last)}</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 30%;">{osb f=tf field=username}</td>
<td style="width: 70%;"><b>{$record.username}</b><input type="hidden" name="account_username" value="{$record.username}"/></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 30%;">{osb f=tf field=password}</td>
<td style="width: 70%;"><input type="text" name="account_password" value=""/></td></tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 30%;">{t}Confirm Password{/t}</td>
<td style="width: 70%;"><input type="text" name="confirm_password" value=""/></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 30%;">{osb f=tf field=email}</td>
<td style="width: 70%;"><input type="text" name="account_email" value="{$record.email}"/></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 30%;">{osb f=tf field=company}</td>
<td style="width: 70%;"><input type="text" name="account_company" value="{$record.company}"/></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 30%;">{osb f=tf field=first_name}</td>
<td style="width: 70%;"><input type="text" name="account_first_name" value="{$record.first_name}"/></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 30%;">{osb f=tf field=middle_name}</td>
<td style="width: 70%;"><input type="text" name="account_middle_name" value="{$record.middle_name}"/></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 30%;">{osb f=tf field=last_name}</td>
<td style="width: 70%;"><input type="text" name="account_last_name" value="{$record.last_name}"/></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 30%;">{osb f=tf field=title}</td>
<td style="width: 70%;">{$list->menu_staticlist('nametitle','account_title','account_title',$record.title,'form_menu','')}</td>
</tr>
<tr valign="top" class="row1">
<td style="width: 30%;">{osb f=tf field=address1}</td>
<td style="width: 70%;"><input type="text" name="account_address1" value="{$record.address1}" {if $account_address1 == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top" class="row1">
<td style="width: 30%;">{osb f=tf field=address2}</td>
<td style="width: 70%;"><input type="text" name="account_address2" value="{$record.address2}" {if $account_address2 == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top" class="row1">
<td style="width: 30%;">{osb f=tf field=city}</td>
<td style="width: 70%;"><input type="text" name="account_city" value="{$record.city}" {if $account_city == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top" class="row1">
<td style="width: 30%;">{osb f=tf field=state}</td>
<td style="width: 70%;"><input type="text" name="account_state" value="{$record.state}" {if $account_state == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top" class="row1">
<td style="width: 30%;">{osb f=tf field=zip}</td>
<td style="width: 70%;"><input type="text" name="account_zip" value="{$record.zip}" {if $account_zip == true}class="form_field_error"{/if}/></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 30%;">{osb f=tf field=country_id}</td>
<td style="width: 70%;">
{$list->menu('no','cid','country','name',$record.country_id,'form_field" onchange="taxIdsDisplay(this.value)')}
{$method->exe_noauth('tax','get_tax_ids')}
{if $tax_ids}
<script type="text/javascript" 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>
{/if}
</td>
</tr>
{foreach from=$tax_ids item=tax}
<tr class="row1" valign="middle" align="left" id="tax_country_id_{$tax.country_id}" {if $record.country_id!=$tax.country_id}{osb f=style_hide}{/if}>
<td style="width: 30%;">{$tax.tax_id_name}</td>
<td style="width: 70%;">
<input type="text" name="account_tax_id[{$tax.country_id}]" value="{$record.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 !$record.tax_id}checked{/if} />{/if}
-->
</td>
</tr>
{/foreach}
<tr class="row1" valign="middle" align="left">
<td style="width: 30%;">{osb f=tf field=language_id}</td>
<td style="width: 70%;">{$list->menu_files('','lid',$record.language_id,'language','','_core.xml','form_menu')}</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 30%;">{osb f=tf field=currency_id}</td>
<td style="width: 70%;">
{$list->currency_list('cyid_arr')}
<select name="cyid">
{foreach key=key item=item from=$cyid_arr}
<option value="{$key}" {if $key == $record.currency_id}{assign var=currency_thumbnail value=$item.iso}selected="selected"{/if}>{$item.iso}</option>
{/foreach}
</select>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 30%;">{osb f=tf field=theme_id}</td>
<td style="width: 70%;">{$list->menu_files('','tid',$record.theme_id,'theme','','.user_theme','form_menu')}</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 30%;">{osb f=tf field=email_type}</td>
<td style="width: 70%;">{$list->bool('account_email_type',$record.email_type)}</td>
</tr>
{foreach from=$static_var item=record}
<tr valign="top">
<td style="width: 30%;">{$record.name}</td>
<td style="width: 70%;">{$record.html}</td>
</tr>
{/foreach}
{if $issubaccount}
{$method->exe_noauth('account','get_auth_groups')}
{if $groups}
<tr valign="top">
<td style="width: 30%;">{translate} authorized_groups {/translate}</td>
<td style="width: 70%;">
{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 style="width: 30%;"></td>
{include file='file:../core/view_td_submit.tpl'}
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{include file='file:../core/view_post.tpl'}
</form>
{if $record.max_child > 0}
{$block->display('account:sub_account')}
{elseif $issubaccount == true}
{$block->display('account:sub_account_view')}
{/if}
{/if}
{/if}

View File

@@ -1,157 +0,0 @@
{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

@@ -1,369 +1,519 @@
<!-- 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>
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{if $smarty.const.SESS_LOGGED != true }
{ $block->display("account:login") }
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
<script type="text/javascript">
<!--
var module = '{$meth.0}';
var locations = '{$VAR.module_id}';
var id = '{$VAR.id}';
var ids = '{$VAR.ids}';
{ $method->exe("account","view") } { if ($method->result == FALSE) }
{ $block->display("core:method_error") } {else}
var elements = new Array();
elements[0] = 'main';
elements[1] = 'options';
elements[2] = 'custom';
elements[3] = 'notes';
elements[4] = 'overview';
elements[5] = 'collapse';
<!-- Loop through each record -->
{foreach from=$account item=account}
{literal}
function accountJumpView(account_id,parent_account_id) {
var module = document.getElementById('JumpView').value;
document.getElementById('JumpView').value = '';
var url = '?_page=core:search&module='+module+'&_next_page_one=view&'+module+'_account_id='+account_id;
if(module != 'invoice' && module != 'service' && module != 'subaccount' && module != 'parentaccount' ) {
view_show('collapse');
showIFrame('iframe',getPageWidth(600),500,url);
} else if (module == 'subaccount') {
var url = '?_page=core:search&module=account&account_parent_id='+account_id;
document.location = url;
} else if (module == 'parentaccount') {
var url = '?_page=account:view&id='+parent_account_id;
document.location = url;
} else {
document.location = url;
}
}
{/literal}
//-->
</script>
<script type="text/javascript" src="themes/{$THEME_NAME}/view.js"></script>
<script type="text/javascript" src="themes/{$THEME_NAME}/view-advanced.js"></script>
<!-- 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}
<!-- Display the field validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- Display each record -->
<form id="view" 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 class="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="6" cellpadding="0" class="body">
<tr class="row1">
<td style="width: 33%; text-align: left;">
<select name="Jump" id="Jump" onchange="view_Jump('{$record.id}')">
<option value="">---- {t}QUICK ACTIONS{/t} ----</option>
<option value="refresh">{t}Refresh View{/t}</option>
{if $smarty.const.SESS_ACCOUNT != $record.id}<option value="become">{t}Become User{/t}</option>{/if}
{if $record.status == 1}
<option value="suspend">{t}Suspend User Login{/t}</option>
{else}
<option value="unsuspend">{t}Unsuspend User Login{/t}</option>
<option value="verify_email">{t}Resend Verification Email{/t}</option>
{/if}
{if $record.duesoon}<option value="generate_invoice">{t}Generate Invoice{/t}</option>{/if}
<option value="merge">{t}Merge User Accounts{/t}</option>
<option value="email">{t}Send Email to User{/t}</option>
<option value="pw">{t}Password Reminder{/t}</option>
</select>
</td>
<td style="width: 33%; text-align: center;">
<select name="JumpView" id="JumpView" onchange="accountJumpView('{$record.id}','{$record.parent_id}')">
<option value="">---- {t}QUICK VIEW{/t} ----</option>
<option value="account_memo">{t}Memos{/t}</option>
{if $record.invoice}<option value="invoice">{t}Invoices{/t}</option>{/if}
{if $record.service}<option value="service">{t}Services{/t}</option>{/if}
<option value="login_log">{t}Login Logs{/t}</option>
<option value="session">{t}Sessions{/t}</option>
{if $list->is_installed('affiliate')}<option value="affiliate">{t}Affiliate Details{/t}</option>{/if}
<option value="account_billing">{t}Billing Details{/t}</option>
<option value="discount">{t}Discounts{/t}</option>
{if $record.parent_id == 0 || $record.parent_id == ''}
<option value="subaccount">{t}Sub Accounts{/t}</option>
{elseif $record.parent_id > 0}
<option value="parentaccount">{t}Parent Account{/t}</option>
{/if}
</select>
</td>
<td style="width: 33%; text-align: right;">
<select name="JumpAdd" id="JumpAdd" onchange="view_JumpAdd('{$record.id}')">
<option value="">---- {t}QUICK ADD{/t} ----</option>
<option value="account_memo">{t}Memo{/t}</option>
<option value="invoice">{t}Invoice{/t}</option>
<option value="service">{t}Service{/t}</option>
<option value="account_billing">{t}Billing Details{/t}</option>
<option value="discount">{t}Discount{/t}</option>
{if $list->is_installed('affiliate')}<option value="affiliate">{t}Affiliate{/t}</option>{/if}
{if $record.parent_id == 0 || $record.parent_id == ''}<option value="account">{t}Sub Account{/t}</option>{/if}
</select>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="table_heading">
<a href="javascript:view_show('overview');" style="color: #FFFFFF;">{t}Account Overview{/t}</a>
| <a href="javascript:view_show('main');" style="color: #FFFFFF;">{t}Login & Contact Details{/t}</a>
| <a href="javascript:view_show('options');" style="color: #FFFFFF;">{t}Account Settings{/t}</a>
| <a href="javascript:view_show('notes');" style="color: #FFFFFF;">{t}Notes{/t}</a>
{if $record.static_var}| <a href="javascript:view_show('custom');" style="color: #FFFFFF;">{t}Custom Fields{/t}</a>{/if}
</td>
</tr>
<tr valign="top">
<td class="row1">
<!-- COLLAPSED VIEW -->
<div id="collapse" {osb f=style_hide}>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row1">
<td><b><a href="javascript:view_show('overview');">{t}Click here to restore account overview{/t}...</a></b></td>
</tr>
</table>
</div>
<!-- ACCOUNT OVERVIEW -->
<div id="overview" {osb f=style_hide}>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row1">
<td style="width: 25%;">
<table width="100%" border="0" cellspacing="4" cellpadding="0" class="body">
<tr><td colspan="3"><b>{t}Account Overview{/t}</b></td></tr>
<tr>
<td style="width: 5px;">&nbsp;</td>
<td colspan="2">{$record.first_name} {$record.middle_name} {$record.last_name}</td>
</tr>
<tr>
<td style="width: 5px;">&nbsp;</td>
<td colspan="2">{$record.address1} {if $record.address2 != ''}, {$record.address2}{/if}</td>
</tr>
<tr>
<td style="width: 5px;">&nbsp;</td>
<td colspan="2">{$record.city}, {$record.state} {$record.zip}</td>
</tr>
<tr>
<td style="width: 5px;">&nbsp;</td>
<td colspan="2"><a href="javascript:showIFrame('iframe',getPageWidth(600),350,'?_page=account:mail_one&amp;mail_account_id={$record.id}')">{$record.email}</a></td>
</tr>
<tr>
<td colspan="3"><b>{osb f=tf field=date_orig}</b></td>
</tr>
<tr>
<td style="width: 5px;">&nbsp;</td>
<td colspan="2">{$list->date_time($record.date_orig)}</td>
</tr>
<tr>
<td colspan="3"><b>{osb f=tf field=date_last}</b></td>
</tr>
<tr>
<td style="width: 5px;">&nbsp;</td>
<td colspan="2">{$list->date_time($record.date_last)}<input type="hidden" name="account_date_last" value="{$smarty.now}"/></td>
</tr>
<tr>
<td colspan="3"><b>{t module=account}last_activity{/t}</b></td>
</tr>
<tr>
<td style="width: 5px;">&nbsp;</td>
<td colspan="2">{if $record.last_activity}{$list->date_time($record.last_activity)}{else}{t module=account}none{/t}{/if}</td>
</tr>
<tr>
<td style="width: 5px;">&nbsp;</td>
<td colspan="2">
{if $record.last_ip != ''}
<a href="javascript:showIFrame('iframe',getPageWidth(600),250,'?_page=login_log:whois&amp;ip={$record.last_ip}')">{$record.last_ip}</a>
&nbsp;&nbsp;[ <a href="javascript:showIFrame('iframe',getPageWidth(600),250,'?_page=login_log:map&amp;ip={$record.last_ip}')">?</a> ]
{/if}
</td>
</tr>
</table>
</td>
<td style="width: 37%;">
<table width="100%" border="0" cellspacing="4" cellpadding="0" class="body">
<tr><td>&nbsp;</td></tr>
<!-- Invoices -->
{if $record.invoice}
<tr>
<td colspan="6"><b>{t}Invoice Overview{/t}</b></td>
</tr>
{foreach from=$record.invoice item=invoice}
<tr valign="middle">
<td width="6">&nbsp;</td>
<td width="38">
{if $invoice.process_status == '1'}
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" style="border: 0px;"/>
{else}
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" style="border: 0px;"/>
{/if}
</td>
<td width="70"><a href="?_page=invoice:view&amp;id={$invoice.id}">{$invoice.id}</a></td>
<td width="70" align="right">
{if $invoice.due > 0}
<font color="#666666">{$list->format_currency_num($invoice.total_amt,'')}</font>
{else}
<font color="#006600"><b>{$list->format_currency_num($invoice.total_amt,'')}</b></font>
{/if}
</td>
<td width="100" align="right">
{if $invoice.due > 0}
<font color="#CC0000"><b>{$list->format_currency_num($invoice.due,'')}</b></font>
{else}
<font color="#999999">{$list->format_currency_num('0','')}</font>
{/if}
</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;{$list->date($invoice.date_orig)}</td>
</tr>
{/foreach}
{/if}
{if $record.service}
<tr>
<td colspan="6"><b><br/>{t}Service Overview{/t}</b></td>
</tr>
{foreach from=$record.service item=service}
<tr valign="middle">
<td width="6">&nbsp;</td>
<td width="38">
{if $service.active == '1'}
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" style="border: 0px;"/>
{else}
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" style="border: 0px;"/>
{/if}
</td>
<td><a href="?_page=service:view&amp;id={$service.id}">{$service.id}</a></td>
<td align="right">
{$list->format_currency_num($service.price,'')}
</td>
<td align="right"><acronym title="{$service.sku}">{$service.sku|truncate:18:'...'}</acronym></td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;
{if $service.type == 'domain'}
{$service.domain_name|lower}.{$service.domain_tld|lower}
{else}
{t module=service}{$service.type}{/t}
{/if}
</td>
</tr>
{/foreach}
{/if}
</table>
</td>
<td style="width: 37%;">
<table width="100%" border="0" cellspacing="4" cellpadding="0" class="body">
<tr><td>&nbsp;</td></tr>
{if $record.duesoon}
<tr>
<td colspan="6"><b><br/>{t}Invoices Due Soon{/t}</b></td>
</tr>
{foreach from=$record.duesoon item=service}
<tr valign="middle">
<td width="6">&nbsp;</td>
<td width="38">
{if $service.active == '1'}
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" style="border: 0px;"/>
{else}
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" style="border: 0px;"/>
{/if}
</td>
<td><a href="?_page=service:view&amp;id={$service.sid}">{$service.sid}</a></td>
<td align="right">{$list->format_currency_num($service.price,'')}</td>
<td align="right"><acronym title="{$service.sku}">{$service.sku|truncate:18:'...'}</acronym></td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;
{if $service.type == 'domain'}
{$service.domain_name|lower}.{$service.domain_tld|lower}
{else}
{t module=service}{$service.type}{/t}
{/if}
</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;{$list->date($service.date_next_invoice)}</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;{$list->date($service.bill_date)}</td>
</tr>
{/foreach}
{/if}
</table>
</td>
</tr>
</table>
</div>
<!-- MAIN ACCOUNT DETAILS -->
<div id="main" {osb f=style_hide}>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row1">
<td style="width: 33%;"><b>{osb f=tf field=username}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=password}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=email}</b></td>
</tr>
<tr valign="top">
<td style="width: 33%;"><input type="text" name="account_username" value="{$record.username}"/></td>
<td style="width: 33%;"><input type="text" name="process_account_password"/></td>
<td style="width: 33%;"><input type="text" name="account_email" value="{$record.email}"/></td>
</tr>
<tr valign="top" class="row1">
<td style="width: 33%;"><b>{osb f=tf field=first_name}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=middle_name}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=last_name}</b></td>
</tr>
<tr valign="top">
<td style="width: 33%;"><input type="text" name="account_first_name" value="{$record.first_name}"/></td>
<td style="width: 33%;"><input type="text" name="account_middle_name" value="{$record.middle_name}"/></td>
<td style="width: 33%;"><input type="text" name="account_last_name" value="{$record.last_name}"/></td>
</tr>
<tr valign="top" class="row1">
<td style="width: 33%;"><b>{osb f=tf field=title}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=address1}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=address2}</b></td>
</tr>
<tr valign="top">
<td style="width: 33%;">{$list->menu_staticlist('nametitle','account_title','account_title',$record.title,'form_menu',true)}</td>
<td style="width: 33%;"><input type="text" name="account_address1" value="{$record.address1}"/></td>
<td style="width: 33%;"><input type="text" name="account_address2" value="{$record.address2}"/></td>
</tr>
<tr valign="top" class="row1">
<td style="width: 33%;"><b>{osb f=tf field=city}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=state}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=zip}</b></td>
</tr>
<tr valign="top">
<td style="width: 33%;"><input type="text" name="account_city" value="{$record.city}"/></td>
<td style="width: 33%;"><input type="text" name="account_state" value="{$record.state}"/></td>
<td style="width: 33%;"><input type="text" name="account_zip" value="{$record.zip}"/></td>
</tr>
<tr valign="top" class="row1">
<td style="width: 33%;"><b>{osb f=tf field=country_id}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=status}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=company}</b></td>
</tr>
<tr valign="top">
<td style="width: 33%;">{$list->menu('no','account_country_id','country','name',$record.country_id,'" onchange="submit()')}</td>
<td style="width: 33%;">{$list->bool('account_status',$record.status,'" onchange="submit()')}</td>
<td style="width: 33%;"><input type="text" name="account_company" value="{$record.company}"/></td>
</tr>
</table>
{$method->exe_noauth('tax','get_tax_ids')}
{if $tax_ids}
<script type="text/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>
<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 $record.country_id!=$tax.country_id}{osb f=style_hide}{/if}>
<td style="width: 33%;"><strong>{$tax.tax_id_name}</strong></td>
<td width="67%">
<input type="text" name="account_tax_id[{$tax.country_id}]" value="{$record.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 !$record.tax_id}checked{/if} />
{/if} -->
</td>
</tr>
{/foreach}
</table>
{/if}
</div>
<!-- OPTIONAL ACCOUNT DETAILS -->
<div id="options" {osb f=style_hide}>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row1">
<td style="width: 33%;"><b>{osb f=tf field=currency_id}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=language_id}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=date_expire}</b></td>
</tr>
<tr valign="top">
<td style="width: 33%;">{$list->menu('no','account_currency_id','currency','name',$record.currency_id,'" onchange="submit()')}</td>
<td style="width: 33%;"><b>{$list->menu_files('','account_language_id',$record.language_id,'language','','_core.xml',"\" onchange=\"document.getElementById('view').submit()")}</b></td>
<td style="width: 33%;">{$list->calender_view('account_date_expire',$record.date_expire,'form_field')}</td>
</tr>
<tr>
<td style="width: 33%; vertical-align: top;">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row1">
<td><b>{t}authorized_groups{/t}</b></td>
</tr>
<tr valign="top">
<td>{$list->select_groups($record.groups,'groups','form_field','10',$record.own_account)}</td>
</tr>
</table>
</td>
<td style="width: 66%;" colspan="2">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row1">
<td style="width: 50%;"><b>{osb f=tf field=email_type}</b></td>
<td style="width: 50%;"><b>{osb f=tf field=theme_id}</b></td>
</tr>
<tr valign="top">
<td style="width: 50%;">{$list->bool('account_email_type',$record.email_type,'" onchange="submit()')}</td>
<td style="width: 50%;">{$list->menu_files('','account_theme_id',$record.theme_id,'theme','','.user_theme','onchange="submit()"')}</td>
</tr>
<tr valign="top">
<td style="width: 50%;">{if $list->is_installed('affiliate')}<b>{osb f=tf field=affiliate_id}</b>{/if}</td>
<td style="width: 50%;">{if $list->is_installed('campaign')}<b>{osb f=tf field=campaign_id}</b>{/if}</td>
</tr>
<tr valign="top">
<td style="width: 50%;">{if $list->is_installed('affiliate')}{osb f=autoselect module=account return=id field=account_affiliate_id default=$record.affiliate_id}{/if}</td>
<td style="width: 50%;">{if $list->is_installed('campaign')}{$list->menu('no','account_campaign_id','campaign','name',$record.campaign_id,'" onchange="submit()"',true)}{/if}</td>
</tr>
<tr valign="top">
<td style="width: 50%;"><b>{osb f=tf field=invoice_delivery}</b></td>
<td style="width: 50%;"><b>{osb f=tf field=invoice_show_itemized}</b></td>
</tr>
<tr valign="top">
<td style="width: 50%;">{$list->menu_staticlist('invoice_delivery','account_invoice_delivery','account_invoice_delivery',$record.invoice_delivery,'form_menu','')}</td>
<td style="width: 50%;">{$list->menu_staticlist('invoice_show_itemized','account_invoice_show_itemized','account_invoice_show_itemized',$record.invoice_show_itemized,'form_menu','')}</td>
</tr>
<tr valign="top">
<td style="width: 50%;"><b>{osb f=tf field=invoice_grace}</b></td>
<td style="width: 50%;"><b>{osb f=tf field=invoice_advance_gen}</b></td>
</tr>
<tr valign="top">
<td style="width: 50%;"><input name="account_invoice_grace" type="text" value="{$record.invoice_grace}" size="5"/></td>
<td style="width: 50%;"><input name="account_invoice_advance_gen" type="text" value="{$record.invoice_advance_gen}" size="5"/></td>
</tr>
<tr valign="top">
<td style="width: 50%;"><b>{osb f=tf field=parent_id}</b></td>
<td style="width: 50%;">&nbsp;</td>
</tr>
<tr valign="top">
<td style="width: 50%;">{osb f=autoselect module=account return=id field=account_parent_id default=$record.parent_id}</td>
<td style="width: 50%;">&nbsp;</td>
</tr>
{if $record.parent_id == 0 || $record.parent_id == ''}
<tr valign="top">
<td style="width: 50%;"><b>{osb f=tf field=max_child}</b></td>
<td style="width: 50%;">&nbsp;</td>
</tr>
<tr valign="top">
<td style="width: 50%;"><input name="account_max_child" type="text" value="{$record.max_child}" size="5"/></td>
<td style="width: 50%;">&nbsp;</td>
</tr>
{/if}
</table>
</td>
</tr>
</table>
</div>
<!-- CUSTOM FIELDS -->
<div id="custom" {osb f=style_hide}>
{if $record.static_var}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
{foreach from=$record.static_var item=custom}
<tr valign="top">
<td style="width: 33%;">{$custom.name}</td>
<td style="width: 67%;">{$custom.html}</td>
</tr>
{/foreach}
</table>
{/if}
</div>
<!--NOTES & MEMOS FOR ACCOUNT -->
<div id="notes" {osb f=style_hide}>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="text-align: center;"><textarea name="account_misc" cols="85" rows="10" {if $account_misc == true}class="form_field_error"{/if}>{$record.misc}</textarea></td>
</tr>
</table>
</div>
</td>
</tr>
{include file='file:../core/view_tr_submit_delete.tpl'}
</table>
</td>
</tr>
</table>
{include file='file:../core/view_post.tpl'}
<div>
<input type="hidden" name="tab" id="tab" value="{$VAR.tab}"/>
</div>
</form>
<iframe name="iframe" id="iframe" style="border:0px; width:0px; height:0px;" scrolling="auto" allowtransparency="true" frameborder="0" src="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe>
<script type="text/javascript">
<!--
{if $VAR.tab == ''}
view_show('overview');
{else}
view_show('{$VAR.tab}');
{/if}
//-->
</script>
{/if}