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,109 +1,82 @@
{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="tax_add" name="tax_add" method="post" action="">
<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 width="65%" class="table_heading">
<center>
{translate module=tax}title_add{/translate}
</center>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="35%">
{translate module=tax}
field_country_id
{/translate}</td>
<td width="65%">
{if $VAR.tax_country_id != ""}
{ $list->menu("", "tax_country_id", "country", "name", $VAR.tax_country_id, "form_menu") }
{else}
{ $list->menu("", "tax_country_id", "country", "name", $smarty.const.DEFAULT_COUNTRY, "form_menu") }
{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=tax}
field_zone
{/translate}</td>
<td width="65%">
<input type="text" name="tax_zone" value="{$VAR.tax_zone}" {if $tax_zone == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=tax}
field_description
{/translate}</td>
<td width="65%">
<input type="text" name="tax_description" value="{$VAR.tax_description}" {if $tax_description == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=tax}
field_rate
{/translate}</td>
<td width="65%">
<input type="text" name="tax_rate" value="{$VAR.tax_rate}" {if $tax_rate == true}class="form_field_error"{/if} size="5">
</td>
</tr>
<tr valign="middle" align="left">
<td>{translate module=tax} field_tax_id_collect{/translate}</td>
<td>{ $list->bool("tax_tax_id_collect", $VAR.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" {style_hide}>
<table width="100%" class="row1">
<tr valign="middle" align="left">
<td width="35%">{translate module=tax} field_tax_id_name{/translate}</td>
<td width="65%"><input type="text" name="tax_tax_id_name" value="{$VAR.tax_id_name}" size="32"></td>
</tr>
<!-- <tr valign="middle" align="left">
<td>{translate module=tax} field_tax_id_exempt{/translate}</td>
<td> { $list->bool("tax_tax_id_exempt", $VAR.tax_id_exempt, "") } </td>
</tr> -->
<tr valign="middle" align="left">
<td>{translate module=tax} field_tax_id_req{/translate}</td>
<td>{ $list->bool("tax_tax_id_req", $VAR.tax_id_req, "") }</td>
</tr>
<tr valign="middle" align="left">
<td>{translate module=tax} field_tax_id_regex{/translate}</td>
<td><input type="text" name="tax_tax_id_regex" value="{$VAR.tax_id_regex}" size="32"></td>
</tr>
</table>
</div>
</td>
</tr>
<tr valign="top">
<td></td>
<td><input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="tax:view">
<input type="hidden" name="_page_current" value="tax:add">
<input type="hidden" name="do[]" value="tax:add"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<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%;">
{if $VAR.tax_country_id != ''}
{$list->menu('','tax_country_id','country','name',$VAR.tax_country_id,'form_menu')}
{else}
{$list->menu('','tax_country_id','country','name',$smarty.const.DEFAULT_COUNTRY,'form_menu')}
{/if}
</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="{$VAR.tax_zone}" {if $tax_zone == true}class="form_field_error"{/if}/></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="{$VAR.tax_description}" {if $tax_description == true}class="form_field_error"{/if}/></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="{$VAR.tax_rate}" {if $tax_rate == true}class="form_field_error"{/if} size="5"/></td>
</tr>
<tr valign="top">
<td>{osb f=tf field=tax_id_collect}</td>
<td>{$list->bool('tax_tax_id_collect',$VAR.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" {osb f=style_hide}>
<table width="100%" class="row1">
<tr valign="middle">
<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="{$VAR.tax_id_name}" size="32"/></td>
</tr>
<!-- <tr valign="middle">
<td>{osb f=tf field=tax_id_exempt}</td>
<td>{$list->bool('tax_tax_id_exempt',$VAR.tax_id_exempt)}</td>
</tr> -->
<tr valign="middle">
<td>{osb f=tf field=tax_id_req}</td>
<td>{$list->bool('tax_tax_id_req',$VAR.tax_id_req)}</td>
</tr>
<tr valign="middle">
<td>{osb f=tf field=tax_id_regex}</td>
<td><input type="text" name="tax_tax_id_regex" value="{$VAR.tax_id_regex}" size="32"/></td>
</tr>
</table>
</div>
</td>
</tr>
{include file='file:../core/add_tr_submit.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -1,27 +0,0 @@
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width=100% border="0" cellspacing="1" cellpadding="0" align="center">
<tr>
<td class="table_heading">
<center>
{translate module=tax}
menu
{/translate}
</center>
</td>
</tr>
<tr>
<td class="row1">
<table width="100%" border="0" cellpadding="5" class="row1">
<tr>
<td>{translate module=tax}help_file{/translate}</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

View File

@@ -1,98 +1,50 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{ $method->exe("tax","search_form") }
{ if ($method->result == FALSE) }
{ $block->display("core:method_error") }
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
<form name="tax_search" 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">
<center>
{translate module=tax}title_search{/translate}
</center>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="35%">
{translate module=tax}
field_country_id
{/translate}</td>
<td width="65%">
{ $list->menu("", "tax_country_id", "country", "name", "all", "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=tax}
field_zone
{/translate}</td>
<td width="65%">
<input type="text" name="tax_zone" value="{$VAR.tax_zone}" {if $tax_zone == true}class="form_field_error"{/if}> &nbsp;&nbsp;{translate}search_partial{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=tax}
field_description
{/translate}</td>
<td width="65%">
<input type="text" name="tax_description" value="{$VAR.tax_description}" {if $tax_description == true}class="form_field_error"{/if}> &nbsp;&nbsp;{translate}search_partial{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=tax}
field_rate
{/translate}</td>
<td width="65%">
<input type="text" name="tax_rate" value="{$VAR.tax_rate}" {if $tax_rate == true}class="form_field_error"{/if} size="5"> &nbsp;&nbsp;{translate}search_partial{/translate}
</td>
</tr>
<!-- Define the results per page -->
<tr class="row1" valign="top">
<td width="35%">{translate}search_results_per{/translate}</td>
<td width="65%">
<input type="text" name="limit" size="5" value="{$tax_limit}">
</td>
</tr>
<form id="search_form" method="post" action="" enctype="multipart/form-data">
<!-- Define the order by field per page -->
<tr class="row1" valign="top">
<td width="35%">{translate}search_order_by{/translate}</td>
<td width="65%">
<select name="order_by">
{foreach from=$tax item=record}
<option value="{$record.field}">{$record.translate}</option>
{/foreach}
</select>
</td>
</tr>
<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','','form_menu',true)}</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="{$VAR.tax_zone}" {if $tax_zone == 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=description}</td>
<td style="width: 65%;"><input type="text" name="tax_description" value="{$VAR.tax_description}" {if $tax_description == 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=rate}</td>
<td style="width: 65%;"><input type="text" name="tax_rate" value="{$VAR.tax_rate}" {if $tax_rate == true}class="form_field_error"{/if} size="5"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
{include file='file:../core/search_post.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<tr class="row1" valign="top">
<td width="35%"></td>
<td width="65%">
<input type="submit" name="Submit" value="{translate}search{/translate}" class="form_button">
<input type="hidden" name="_page" value="core:search">
<input type="hidden" name="_escape" value="Y">
<input type="hidden" name="module" value="tax">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{ $block->display("core:saved_searches") }
{ $block->display("core:recent_searches") }
</form>
{$block->display('core:saved_searches')}
{$block->display('core:recent_searches')}
{/if}

View File

@@ -1,119 +1,12 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$method->exe("tax","search_show")}
{if ($method->result == FALSE)}
{$block->display("core:method_error")}
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{if $results == 1}
{translate results=$results}search_result_count{/translate}
{else}
{translate results=$results}search_results_count{/translate}
{/if}
<BR>
{literal}
<script language="JavaScript">
<!-- START
var module = 'tax';
{/literal}
{if $VAR._print == TRUE}
var p = '&_escape=y&_print=y';
{else}
var p = '';
{/if}{literal}
var IMAGE = '{/literal}{$NONSSL_IMAGE}{literal}';
var order = '{/literal}{$order}{literal}';
var sort1 = '{/literal}{$sort}{literal}';
var search_id = '{/literal}{$search_id}{literal}';
var page = {/literal}{$page}{literal};
var pages = '{/literal}{$pages}{literal}';
var results = '{/literal}{$results}{literal}';
var limit = '{/literal}{$limit}{literal}';
record_arr = new Array ({/literal}{$limit}{literal});
var i = 0;
// END -->
</script>
<SCRIPT SRC="themes/{/literal}{$THEME_NAME}{literal}/search.js"></SCRIPT>
{/literal}
<!-- SHOW THE SEARCH NAVIGATION MENU -->
<center><script language="JavaScript">document.write(search_nav_top());</script></center>
<!-- BEGIN THE RESULTS CONTENT AREA -->
<div id="search_results" onKeyPress="key_handler(event);">
<table id="main1" width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<form id="form1" name="form1" method="post" action="">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<!-- DISPLAY THE SEARCH HEADING -->
<tr valign="middle" align="center" class="table_heading">
<td width="5%" class="table_heading">&nbsp;</td>
<td width="23.75%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=tax}field_country_id{/translate}{literal}','country_id'));
</script>
{/literal}
</td>
<td width="23.75%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=tax}field_zone{/translate}{literal}','zone'));
</script>
{/literal}
</td>
<td width="23.75%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=tax}field_description{/translate}{literal}','description'));
</script>
{/literal}
</td>
<td width="23.75%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=tax}field_rate{/translate}{literal}','rate'));
</script>
{/literal}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$tax item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=tax:view&id={$record.id},';" onMouseOver="row_mouseover('{$record.id}', 'row_mouse_over_select', 'row_mouse_over');" onMouseOut="row_mouseout('{$record.id}', '{$record._C}', 'row_select');" class="{$record._C}">
<td align="center" width="5%">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td>&nbsp;{$record.country_id}</td>
<td>&nbsp;{$record.zone}</td>
<td>&nbsp;{$record.description}</td>
<td>&nbsp;{$record.rate}</td>
</tr>
{literal}
<script language="JavaScript">row_sel('{/literal}{$record.id}{literal}', 0, '{/literal}{$record._C}{literal}'); record_arr[i] = '{/literal}{$record.id}{literal}'; i++; </script>
{/literal}
{/foreach}
<!-- END OF RESULT LOOP -->
</table>
</td>
</tr>
</form>
</table>
{if $VAR._print != TRUE}<br>
<center>
<input type="submit" name="Submit" value="{translate}view_edit{/translate}" onClick="mass_do('', module+':view', limit, module);" class="form_button">
<input type="submit" name="Submit" value="{translate}delete{/translate}" onClick="mass_do('delete', module+':search_show&search_id={$search_id}&page={$page}&order_by={$order}&{$sort}', limit, module);" class="form_button">
<input type="submit" name="Submit" value="{translate}select_all{/translate}" onClick="all_select(record_arr);" class="form_button">
<input type="submit" name="Submit" value="{translate}deselect_all{/translate}" onClick="all_deselect(record_arr);" class="form_button">
<input type="submit" name="Submit" value="{translate}range_select{/translate}" onClick="all_range_select(record_arr,limit);" class="form_button">
<br>
</center>
{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'}
{/if}
{/if}
</div>

View File

@@ -1,158 +1,83 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{ $method->exe("tax","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/view_pre.tpl'}
{literal}
<script src="themes/{/literal}{$THEME_NAME}{literal}/view.js"></script>
<script language="JavaScript">
var module = 'tax';
var locations = '{/literal}{$VAR.module_id}{literal}';
var id = '{/literal}{$VAR.id}{literal}';
var ids = '{/literal}{$VAR.ids}{literal}';
var array_id = id.split(",");
var array_ids = ids.split(",");
var num=0;
if(array_id.length > 2) {
document.location = '?_page='+module+':view&id='+array_id[0]+'&ids='+id;
}else if (array_ids.length > 2) {
document.write(view_nav_top(array_ids,id,ids));
}
function delete_record(id,ids)
{
temp = window.confirm("{/literal}{translate}alert_delete{/translate}{literal}");
if(temp == false) return;
var replace_id = id + ",";
ids = ids.replace(replace_id, '');
if(ids == '') {
var url = '?_page=core:search&module=' + module + '&do[]=' + module + ':delete&delete_id=' + id + COOKIE_URL;
window.location = url;
return;
} else {
var page = 'view&id=' +ids;
}
var doit = 'delete';
var url = '?_page='+ module +':'+ page +'&do[]=' + module + ':' + doit + '&delete_id=' + id + COOKIE_URL;
window.location = url;
}
// END -->
</script>
{/literal}
<!-- Display the field validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- Loop through each record -->
{foreach from=$tax item=tax} <a name="{$tax.id}"></a>
<!-- Display each record -->
<form id="view" method="post" action="" enctype="multipart/form-data">
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display each record -->
<form name="tax_view" 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">
<center>
{translate module=tax}title_view{/translate}
</center>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="35%">
{translate module=tax}
field_country_id
{/translate}</td>
<td width="65%">
{ $list->menu("", "tax_country_id", "country", "name", $tax.country_id, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=tax}
field_zone
{/translate}</td>
<td width="65%">
<input type="text" name="tax_zone" value="{$tax.zone}" size="32">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=tax}
field_description
{/translate}</td>
<td width="65%">
<input type="text" name="tax_description" value="{$tax.description}" size="32">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=tax}
field_rate
{/translate}</td>
<td width="65%">
<input type="text" name="tax_rate" value="{$tax.rate}" size="5">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%">{translate module=tax} field_tax_id_collect{/translate}</td>
<td width="65%">{ $list->bool("tax_tax_id_collect", $tax.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 !$tax.tax_id_collect}{style_hide}{/if}>
<table width="100%" class="row1">
<tr class="row1" valign="middle" align="left">
<td width="35%">{translate module=tax} field_tax_id_name{/translate}</td>
<td width="65%"><input type="text" name="tax_tax_id_name" value="{$tax.tax_id_name}" size="32"></td>
</tr>
<!-- <tr class="row1" valign="middle" align="left">
<td height="22">{translate module=tax} field_tax_id_exempt{/translate}</td>
<td> { $list->bool("tax_tax_id_exempt", $tax.tax_id_exempt, "") } </td>
</tr> -->
<tr class="row1" valign="middle" align="left">
<td>{translate module=tax} field_tax_id_req{/translate}</td>
<td>{ $list->bool("tax_tax_id_req", $tax.tax_id_req, "") }</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{translate module=tax} field_tax_id_regex{/translate}</td>
<td><input type="text" name="tax_tax_id_regex" value="{$tax.tax_id_regex}" size="32"></td>
</tr>
</table>
</div>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td></td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
</td>
<td align="right"><input type="button" name="delete" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$tax.id}','{$VAR.id}');">
</td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="tax:view">
<input type="hidden" name="tax_id" value="{$tax.id}">
<input type="hidden" name="do[]" value="tax:update">
<input type="hidden" name="id" value="{$VAR.id}">
</form>
{/foreach}
<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>
{include file='file:../core/view_post.tpl'}
</form>
{/if}