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
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
{$method->exe($meth.0,$meth.1)}
|
|
|
|
{if ($method->result == false)}
|
|
|
|
{$block->display('core:method_error')}
|
|
|
|
{else}
|
|
|
|
{include file='file:../core/view_pre.tpl'}
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
<!-- Display the field validation -->
|
|
|
|
{if $form_validation}
|
|
|
|
{$block->display('core:alert_fields')}
|
|
|
|
{/if}
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
<!-- Display each record -->
|
|
|
|
<form id="view" method="post" action="" enctype="multipart/form-data">
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
<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=country_id}</td>
|
|
|
|
<td style="width: 65%;">{$list->menu('','tax_country_id','country','name',$record.country_id,'form_menu')}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td style="width: 35%;">{osb f=tf field=zone}</td>
|
|
|
|
<td style="width: 65%;"><input type="text" name="tax_zone" value="{$record.zone}" size="32"/></td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td style="width: 35%;">{osb f=tf field=description}</td>
|
|
|
|
<td style="width: 65%;"><input type="text" name="tax_description" value="{$record.description}" size="32"/></td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td style="width: 35%;">{osb f=tf field=rate}</td>
|
|
|
|
<td style="width: 65%;"><input type="text" name="tax_rate" value="{$record.rate}" size="5"/></td>
|
|
|
|
</tr>
|
|
|
|
<tr class="row1" valign="middle" align="left">
|
|
|
|
<td style="width: 35%;">{osb f=tf field=tax_id_collect}</td>
|
|
|
|
<td style="width: 65%;">{$list->bool('tax_tax_id_collect',$record.tax_id_collect,'" onchange="if (this.value==1) document.getElementById(\'tax_id\').style.display=\'block\'; else document.getElementById(\'tax_id\').style.display=\'none\';')}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td colspan="2">
|
|
|
|
<div id="tax_id" {if !$record.tax_id_collect}{osb f=style_hide}{/if}>
|
|
|
|
<table width="100%" class="row1">
|
|
|
|
<tr class="row1" valign="middle" align="left">
|
|
|
|
<td style="width: 35%;">{osb f=tf field=tax_id_name}</td>
|
|
|
|
<td style="width: 65%;"><input type="text" name="tax_tax_id_name" value="{$record.tax_id_name}" size="32"/></td>
|
|
|
|
</tr>
|
|
|
|
<!-- <tr class="row1" valign="middle" align="left">
|
|
|
|
<td height="22">{osb f=tf field=tax_id_exempt}</td>
|
|
|
|
<td> { $list->bool("tax_tax_id_exempt", $record.tax_id_exempt, "") } </td>
|
|
|
|
</tr> -->
|
|
|
|
<tr class="row1" valign="middle" align="left">
|
|
|
|
<td>{osb f=tf field=tax_id_req}</td>
|
|
|
|
<td>{$list->bool('tax_tax_id_req',$record.tax_id_req)}</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="row1" valign="middle" align="left">
|
|
|
|
<td>{osb f=tf field=tax_id_regex}</td>
|
|
|
|
<td><input type="text" name="tax_tax_id_regex" value="{$record.tax_id_regex}" size="32"/></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{include file='file:../core/view_tr_submit_delete.tpl'}
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
{include file='file:../core/view_post.tpl'}
|
|
|
|
</form>
|
2008-11-26 22:50:40 +00:00
|
|
|
{/if}
|