198 lines
9.0 KiB
Smarty
198 lines
9.0 KiB
Smarty
|
{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}
|