520 lines
25 KiB
Smarty
520 lines
25 KiB
Smarty
{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}
|
|
<script type="text/javascript">
|
|
<!--
|
|
var module = '{$meth.0}';
|
|
var locations = '{$VAR.module_id}';
|
|
var id = '{$VAR.id}';
|
|
var ids = '{$VAR.ids}';
|
|
|
|
var elements = new Array();
|
|
elements[0] = 'main';
|
|
elements[1] = 'options';
|
|
elements[2] = 'custom';
|
|
elements[3] = 'notes';
|
|
elements[4] = 'overview';
|
|
elements[5] = 'collapse';
|
|
|
|
{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="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;"> </td>
|
|
<td colspan="2">{$record.first_name} {$record.middle_name} {$record.last_name}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width: 5px;"> </td>
|
|
<td colspan="2">{$record.address1} {if $record.address2 != ''}, {$record.address2}{/if}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width: 5px;"> </td>
|
|
<td colspan="2">{$record.city}, {$record.state} {$record.zip}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width: 5px;"> </td>
|
|
<td colspan="2"><a href="javascript:showIFrame('iframe',getPageWidth(600),350,'?_page=account:mail_one&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;"> </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;"> </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;"> </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;"> </td>
|
|
<td colspan="2">
|
|
{if $record.last_ip != ''}
|
|
<a href="javascript:showIFrame('iframe',getPageWidth(600),250,'?_page=login_log:whois&ip={$record.last_ip}')">{$record.last_ip}</a>
|
|
[ <a href="javascript:showIFrame('iframe',getPageWidth(600),250,'?_page=login_log:map&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> </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"> </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&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> {$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"> </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&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>
|
|
{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> </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"> </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&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>
|
|
{if $service.type == 'domain'}
|
|
{$service.domain_name|lower}.{$service.domain_tld|lower}
|
|
{else}
|
|
{t module=service}{$service.type}{/t}
|
|
{/if}
|
|
</td>
|
|
<td> {$list->date($service.date_next_invoice)}</td>
|
|
<td> {$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%;"> </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%;"> </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%;"> </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%;"> </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}
|