Changes to AgileBill
This commit is contained in:
@@ -1,131 +1,76 @@
|
||||
|
||||
|
||||
<!-- 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="invoice_item_add" name="invoice_item_add" method="post" action="">
|
||||
<form id="add" method="post" action="" enctype="multipart/form-data">
|
||||
|
||||
<table width="500" 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=invoice_item}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=invoice_item}
|
||||
field_sku
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_sku" value="{$VAR.invoice_item_sku}" {if $invoice_item_sku == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_item_type
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
{ $list->bool("invoice_item_item_type", $VAR.invoice_item_item_type, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_product_attr
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_product_attr" value="{$VAR.invoice_item_product_attr}" {if $invoice_item_product_attr == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_price_base
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_price_base" value="{$VAR.invoice_item_price_base}" {if $invoice_item_price_base == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_price_setup
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_price_setup" value="{$VAR.invoice_item_price_setup}" {if $invoice_item_price_setup == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_recurring_schedule
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_recurring_schedule" value="{$VAR.invoice_item_recurring_schedule}" {if $invoice_item_recurring_schedule == true}class="form_field_error"{/if} size="5">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_domain_name
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_domain_name" value="{$VAR.invoice_item_domain_name}" {if $invoice_item_domain_name == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_domain_tld
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_domain_tld" value="{$VAR.invoice_item_domain_tld}" {if $invoice_item_domain_tld == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_domain_term
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_domain_term" value="{$VAR.invoice_item_domain_term}" {if $invoice_item_domain_term == true}class="form_field_error"{/if} size="5">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_domain_type
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_domain_type" value="{$VAR.invoice_item_domain_type}" {if $invoice_item_domain_type == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%"></td>
|
||||
<td width="65%">
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
<input type="hidden" name="_page" value="invoice_item:view">
|
||||
<input type="hidden" name="_page_current" value="invoice_item:add">
|
||||
<input type="hidden" name="do[]" value="invoice_item: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 width="65%" class="table_heading"><center>{translate module=invoice_item}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=invoice_item}field_sku{/translate}</td>
|
||||
<td width="65%"><input type="text" name="invoice_item_sku" value="{$VAR.invoice_item_sku}" {if $invoice_item_sku == true}class="form_field_error"{/if}/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice_item}field_item_type{/translate}</td>
|
||||
<td width="65%">{$list->bool('invoice_item_item_type',$VAR.invoice_item_item_type)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice_item}field_product_attr{/translate}</td>
|
||||
<td width="65%"><input type="text" name="invoice_item_product_attr" value="{$VAR.invoice_item_product_attr}" {if $invoice_item_product_attr == true}class="form_field_error"{/if}/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice_item}field_price_base{/translate}</td>
|
||||
<td width="65%"><input type="text" name="invoice_item_price_base" value="{$VAR.invoice_item_price_base}" {if $invoice_item_price_base == true}class="form_field_error"{/if}/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice_item}field_price_setup{/translate}</td>
|
||||
<td width="65%"><input type="text" name="invoice_item_price_setup" value="{$VAR.invoice_item_price_setup}" {if $invoice_item_price_setup == true}class="form_field_error"{/if}/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice_item}field_recurring_schedule{/translate}</td>
|
||||
<td width="65%"><input type="text" name="invoice_item_recurring_schedule" value="{$VAR.invoice_item_recurring_schedule}" {if $invoice_item_recurring_schedule == true}class="form_field_error"{/if} size="5"/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice_item}field_domain_name{/translate}</td>
|
||||
<td width="65%"><input type="text" name="invoice_item_domain_name" value="{$VAR.invoice_item_domain_name}" {if $invoice_item_domain_name == true}class="form_field_error"{/if}/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice_item}field_domain_tld{/translate}</td>
|
||||
<td width="65%"><input type="text" name="invoice_item_domain_tld" value="{$VAR.invoice_item_domain_tld}" {if $invoice_item_domain_tld == true}class="form_field_error"{/if}/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice_item}field_domain_term{/translate}</td>
|
||||
<td width="65%"><input type="text" name="invoice_item_domain_term" value="{$VAR.invoice_item_domain_term}" {if $invoice_item_domain_term == true}class="form_field_error"{/if} size="5"/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice_item}field_domain_type{/translate}</td>
|
||||
<td width="65%"><input type="text" name="invoice_item_domain_type" value="{$VAR.invoice_item_domain_type}" {if $invoice_item_domain_type == true}class="form_field_error"{/if}/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%"></td>
|
||||
<td width="65%">
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button"/>
|
||||
<input type="hidden" name="_page" value="invoice_item:view"/>
|
||||
<input type="hidden" name="_page_current" value="invoice_item:add"/>
|
||||
<input type="hidden" name="do[]" value="invoice_item:add"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
@@ -1,27 +1,20 @@
|
||||
|
||||
<table width="500" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="500" border="0" cellspacing="1" cellpadding="0" align="center">
|
||||
<tr>
|
||||
<td class="table_heading">
|
||||
<center>
|
||||
{translate module=invoice_item}
|
||||
menu
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1">
|
||||
<table width="100%" border="0" cellpadding="5" class="row1">
|
||||
<tr>
|
||||
<td>{translate module=invoice_item}help_file{/translate}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="500" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="500" border="0" cellspacing="1" cellpadding="0" align="center">
|
||||
<tr>
|
||||
<td class="table_heading"><center>{translate module=invoice_item}menu{/translate}</center></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1">
|
||||
<table width="100%" border="0" cellpadding="5" class="row1">
|
||||
<tr>
|
||||
<td>{translate module=invoice_item}help_file{/translate}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@@ -1,152 +1,92 @@
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{ $method->exe("invoice_item","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="invoice_item_search" method="post" action="">
|
||||
|
||||
<table width="500" 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=invoice_item}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=invoice_item}
|
||||
field_sku
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_sku" value="{$VAR.invoice_item_sku}" {if $invoice_item_sku == true}class="form_field_error"{/if}> {translate}search_partial{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_item_type
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
{ $list->bool("invoice_item_item_type", "all", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_product_attr
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_product_attr" value="{$VAR.invoice_item_product_attr}" {if $invoice_item_product_attr == true}class="form_field_error"{/if}> {translate}search_partial{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_price_base
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_price_base" value="{$VAR.invoice_item_price_base}" {if $invoice_item_price_base == true}class="form_field_error"{/if}> {translate}search_partial{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_price_setup
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_price_setup" value="{$VAR.invoice_item_price_setup}" {if $invoice_item_price_setup == true}class="form_field_error"{/if}> {translate}search_partial{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_recurring_schedule
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_recurring_schedule" value="{$VAR.invoice_item_recurring_schedule}" {if $invoice_item_recurring_schedule == true}class="form_field_error"{/if} size="5"> {translate}search_partial{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_domain_name
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_domain_name" value="{$VAR.invoice_item_domain_name}" {if $invoice_item_domain_name == true}class="form_field_error"{/if}> {translate}search_partial{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_domain_tld
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_domain_tld" value="{$VAR.invoice_item_domain_tld}" {if $invoice_item_domain_tld == true}class="form_field_error"{/if}> {translate}search_partial{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_domain_term
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_domain_term" value="{$VAR.invoice_item_domain_term}" {if $invoice_item_domain_term == true}class="form_field_error"{/if} size="5"> {translate}search_partial{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_domain_type
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_domain_type" value="{$VAR.invoice_item_domain_type}" {if $invoice_item_domain_type == true}class="form_field_error"{/if}> {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="{$invoice_item_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=$invoice_item 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 width="65%" class="table_heading"><center>{translate module=invoice_item}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=invoice_item}field_sku{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_sku" value="{$VAR.invoice_item_sku}" {if $invoice_item_sku == true}class="form_field_error"{/if}/> {t}"%" for partial match{/t}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice_item}field_item_type{/translate}</td>
|
||||
<td width="65%">{$list->bool('invoice_item_item_type','all')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice_item}field_product_attr{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_product_attr" value="{$VAR.invoice_item_product_attr}" {if $invoice_item_product_attr == true}class="form_field_error"{/if}/> {t}"%" for partial match{/t}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice_item}field_price_base{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_price_base" value="{$VAR.invoice_item_price_base}" {if $invoice_item_price_base == true}class="form_field_error"{/if}/> {t}"%" for partial match{/t}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice_item}field_price_setup{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_price_setup" value="{$VAR.invoice_item_price_setup}" {if $invoice_item_price_setup == true}class="form_field_error"{/if}/> {t}"%" for partial match{/t}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice_item}field_recurring_schedule{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_recurring_schedule" value="{$VAR.invoice_item_recurring_schedule}" {if $invoice_item_recurring_schedule == true}class="form_field_error"{/if} size="5"/> {t}"%" for partial match{/t}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice_item}field_domain_name{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_domain_name" value="{$VAR.invoice_item_domain_name}" {if $invoice_item_domain_name == true}class="form_field_error"{/if}/> {t}"%" for partial match{/t}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice_item}field_domain_tld{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_domain_tld" value="{$VAR.invoice_item_domain_tld}" {if $invoice_item_domain_tld == true}class="form_field_error"{/if}/> {t}"%" for partial match{/t}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice_item}field_domain_term{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_domain_term" value="{$VAR.invoice_item_domain_term}" {if $invoice_item_domain_term == true}class="form_field_error"{/if} size="5"/> {t}"%" for partial match{/t}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice_item}field_domain_type{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_item_domain_type" value="{$VAR.invoice_item_domain_type}" {if $invoice_item_domain_type == true}class="form_field_error"{/if}/> {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="invoice_item">
|
||||
</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}
|
||||
|
@@ -1,167 +1,100 @@
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
|
||||
{$method->exe("invoice_item","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>
|
||||
{include file='file:../core/search_show_pre.tpl'}
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
||||
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
<!-- START
|
||||
var module = 'invoice_item';
|
||||
{/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}
|
||||
<!-- DISPLAY THE SEARCH HEADING -->
|
||||
<tr valign="middle" align="center" class="table_heading">
|
||||
<td width="5%" class="table_heading"> </td>
|
||||
<td width="9.5%" class="table_heading">
|
||||
{literal}
|
||||
<script type="text/javascript" language="javascript">document.write(search_heading('{/literal}{translate module=invoice_item}field_sku{/translate}{literal}','sku'));</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="9.5%" class="table_heading">
|
||||
{literal}
|
||||
<script type="text/javascript" language="javascript">document.write(search_heading('{/literal}{translate module=invoice_item}field_item_type{/translate}{literal}','item_type'));</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="9.5%" class="table_heading">
|
||||
{literal}
|
||||
<script type="text/javascript" language="javascript">document.write(search_heading('{/literal}{translate module=invoice_item}field_product_attr{/translate}{literal}','product_attr'));</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="9.5%" class="table_heading">
|
||||
{literal}
|
||||
<script type="text/javascript" language="javascript">document.write(search_heading('{/literal}{translate module=invoice_item}field_price_base{/translate}{literal}','price_base'));</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="9.5%" class="table_heading">
|
||||
{literal}
|
||||
<script type="text/javascript" language="javascript">document.write(search_heading('{/literal}{translate module=invoice_item}field_price_setup{/translate}{literal}','price_setup'));</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="9.5%" class="table_heading">
|
||||
{literal}
|
||||
<script type="text/javascript" language="javascript">document.write(search_heading('{/literal}{translate module=invoice_item}field_recurring_schedule{/translate}{literal}','recurring_schedule'));</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="9.5%" class="table_heading">
|
||||
{literal}
|
||||
<script type="text/javascript" language="javascript">document.write(search_heading('{/literal}{translate module=invoice_item}field_domain_name{/translate}{literal}','domain_name'));</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="9.5%" class="table_heading">
|
||||
{literal}
|
||||
<script type="text/javascript" language="javascript">document.write(search_heading('{/literal}{translate module=invoice_item}field_domain_tld{/translate}{literal}','domain_tld'));</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="9.5%" class="table_heading">
|
||||
{literal}
|
||||
<script type="text/javascript" language="javascript">document.write(search_heading('{/literal}{translate module=invoice_item}field_domain_term{/translate}{literal}','domain_term'));</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="9.5%" class="table_heading">
|
||||
{literal}
|
||||
<script type="text/javascript" language="javascript">document.write(search_heading('{/literal}{translate module=invoice_item}field_domain_type{/translate}{literal}','domain_type'));</script>
|
||||
{/literal}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- SHOW THE SEARCH NAVIGATION MENU -->
|
||||
<center><script language="JavaScript">document.write(search_nav_top());</script></center>
|
||||
<!-- LOOP THROUGH EACH RECORD -->
|
||||
{foreach from=$invoice_item item=record}
|
||||
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=invoice_item: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}');"/>
|
||||
{literal}
|
||||
<script type="text/javascript" language="javascript">row_sel('{/literal}{$record.id}{literal}', 0, '{/literal}{$record._C}{literal}'); record_arr[i] = '{/literal}{$record.id}{literal}'; i++; </script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td> {$record.sku}</td>
|
||||
<td> {if $record.item_type == "1"}{translate}true{/translate}{else}{translate}false{/translate}{/if}</td>
|
||||
<td> {$record.product_attr}</td>
|
||||
<td> {$record.price_base}</td>
|
||||
<td> {$record.price_setup}</td>
|
||||
<td> {$record.recurring_schedule}</td>
|
||||
<td> {$record.domain_name}</td>
|
||||
<td> {$record.domain_tld}</td>
|
||||
<td> {$record.domain_term}</td>
|
||||
<td> {$record.domain_type}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<!-- END OF RESULT LOOP -->
|
||||
|
||||
<!-- 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"> </td>
|
||||
<td width="9.5%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice_item}field_sku{/translate}{literal}','sku'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="9.5%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice_item}field_item_type{/translate}{literal}','item_type'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="9.5%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice_item}field_product_attr{/translate}{literal}','product_attr'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="9.5%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice_item}field_price_base{/translate}{literal}','price_base'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="9.5%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice_item}field_price_setup{/translate}{literal}','price_setup'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="9.5%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice_item}field_recurring_schedule{/translate}{literal}','recurring_schedule'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="9.5%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice_item}field_domain_name{/translate}{literal}','domain_name'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="9.5%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice_item}field_domain_tld{/translate}{literal}','domain_tld'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="9.5%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice_item}field_domain_term{/translate}{literal}','domain_term'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="9.5%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice_item}field_domain_type{/translate}{literal}','domain_type'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<!-- LOOP THROUGH EACH RECORD -->
|
||||
{foreach from=$invoice_item item=record}
|
||||
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=invoice_item: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> {$record.sku}</td>
|
||||
<td> {if $record.item_type == "1"}{translate}true{/translate}{else}{translate}false{/translate}{/if}</td>
|
||||
<td> {$record.product_attr}</td>
|
||||
<td> {$record.price_base}</td>
|
||||
<td> {$record.price_setup}</td>
|
||||
<td> {$record.recurring_schedule}</td>
|
||||
<td> {$record.domain_name}</td>
|
||||
<td> {$record.domain_tld}</td>
|
||||
<td> {$record.domain_term}</td>
|
||||
<td> {$record.domain_type}</td>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</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_post-1.tpl'}
|
||||
{include file='file:../core/search_show_post-2.tpl'}
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
|
@@ -1,181 +1,79 @@
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{ $method->exe("invoice_item","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}
|
||||
<!-- Define the update delete function -->
|
||||
<script language="JavaScript">
|
||||
<!-- START
|
||||
var module = 'invoice_item';
|
||||
var locations = '{/literal}{$VAR.module_id}{literal}';
|
||||
if (locations != "")
|
||||
{
|
||||
refresh(0,'#'+locations)
|
||||
}
|
||||
// Mass update, view, and delete controller
|
||||
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=$invoice_item item=invoice_item} <a name="{$invoice_item.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="invoice_item_view" method="post" action="">
|
||||
|
||||
<table width="500" 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=invoice_item}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=invoice_item}
|
||||
field_sku
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
{$list->date_time($invoice_item.sku)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_item_type
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
{if $invoice_item.item_type == "1"}{translate}true{/translate}{else}{translate}false{/translate}{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_product_attr
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
{$list->date_time($invoice_item.product_attr)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_price_base
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
{$list->date_time($invoice_item.price_base)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_price_setup
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
{$list->date_time($invoice_item.price_setup)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_recurring_schedule
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
{$list->date_time($invoice_item.recurring_schedule)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_domain_name
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
{$list->date_time($invoice_item.domain_name)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_domain_tld
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
{$list->date_time($invoice_item.domain_tld)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_domain_term
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
{$list->date_time($invoice_item.domain_term)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice_item}
|
||||
field_domain_type
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
{$list->date_time($invoice_item.domain_type)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="35%"></td>
|
||||
<td width="65%">
|
||||
<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('{$invoice_item.id}','{$VAR.id}');">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="_page" value="invoice_item:view">
|
||||
<input type="hidden" name="invoice_item_id" value="{$invoice_item.id}">
|
||||
<input type="hidden" name="do[]" value="invoice_item: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 width="35%">{osb f=tf field=sku}</td>
|
||||
<td width="65%">{$list->date_time($record.sku)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{osb f=tf field=item_type}</td>
|
||||
<td width="65%">{if $record.item_type == '1'}{t}True{/t}{else}{t}False{/t}{/if}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{osb f=tf field=product_attr}</td>
|
||||
<td width="65%">{$list->date_time($record.product_attr)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{osb f=tf field=price_base}</td>
|
||||
<td width="65%">{$list->date_time($record.price_base)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{osb f=tf field=price_setup}</td>
|
||||
<td width="65%">{$list->date_time($record.price_setup)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{osb f=tf field=recurring_schedule}</td>
|
||||
<td width="65%">{$list->date_time($record.recurring_schedule)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{osb f=tf field=domain_name}</td>
|
||||
<td width="65%">{$list->date_time($record.domain_name)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{osb f=tf field=domain_tld}</td>
|
||||
<td width="65%">{$list->date_time($record.domain_tld)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{osb f=tf field=domain_term}</td>
|
||||
<td width="65%">{$list->date_time($record.domain_term)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{osb f=tf field=domain_type}</td>
|
||||
<td width="65%">{$list->date_time($record.domain_type)}</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}
|
||||
|
Reference in New Issue
Block a user