2009-08-03 04:10:16 +00:00
|
|
|
{assign var=meth value=':'|explode:$VAR._page}
|
|
|
|
<!-- {$meth.0}:{$meth.1} -->
|
2008-11-26 22:50:40 +00:00
|
|
|
|
|
|
|
<!-- Display the form validation -->
|
|
|
|
{if $form_validation}
|
2009-08-03 04:10:16 +00:00
|
|
|
{$block->display('core:alert_fields')}
|
2008-11-26 22:50:40 +00:00
|
|
|
{/if}
|
2009-08-03 04:10:16 +00:00
|
|
|
|
2008-11-26 22:50:40 +00:00
|
|
|
<!-- Display the form to collect the input values -->
|
2009-08-03 04:10:16 +00:00
|
|
|
<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%;"> </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>
|
2008-11-26 22:50:40 +00:00
|
|
|
{/if}
|
2009-08-03 04:10:16 +00:00
|
|
|
{$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>
|
2008-11-26 22:50:40 +00:00
|
|
|
{/if}
|
2009-08-03 04:10:16 +00:00
|
|
|
<tr valign="top">
|
|
|
|
<td class="row1">
|
|
|
|
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
|
|
|
<tr valign="top">
|
|
|
|
<td style="width: 0px;"> </td>
|
|
|
|
<td> </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>
|