This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/themes/default/blocks/invoice/search_form.tpl
2011-05-03 09:49:01 +10:00

143 lines
7.0 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}
<form id="search_form" 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=invoice}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}field_id{/translate}</td>
<td width="65%"><input type="text" name="invoice_id" value="{$VAR.invoice_id}" {if $invoice_id == true}class="form_field_error"{/if}/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td width="35%">{translate module=invoice}field_account_id{/translate}</td>
<td width="65%">{osb f=html_select_account name='invoice_account_id' default=$VAR.invoice_account_id}</td>
</tr>
{if $list->is_installed('affiliate')}
<tr valign="top">
<td width="35%">{translate module=invoice}field_affiliate_id{/translate}</td>
<td width="65%">{osb f=html_select_affiliate name='invoice_affiliate_id' default=$VAR.invoice_affiliate_id}</td>
</tr>
{/if}
{if $list->is_installed('campaign')}
<tr valign="top">
<td width="35%">{translate module=invoice}field_campaign_id{/translate}</td>
<td width="65%">{$list->menu('no','invoice_campaign_id','campaign','name','','form_menu',true)}</td>
</tr>
{/if}
<tr valign="top">
<td width="35%">{translate module=invoice}field_process_status{/translate}</td>
<td width="65%">{$list->bool('invoice_process_status','all')}</td>
</tr>
<tr valign="top">
<td width="35%">{translate module=invoice}field_refund_status{/translate}</td>
<td width="65%">{$list->bool('invoice_refund_status','all')}</td>
</tr>
<tr valign="top">
<td width="35%">{translate module=invoice}paid{/translate}</td>
<td width="65%">{$list->bool('invoice_billing_status','all')}</td>
</tr>
<tr valign="top">
<td width="35%">{translate module=invoice}field_print_status{/translate}</td>
<td width="65%">{$list->bool('invoice_print_status','all')}</td>
</tr>
<tr valign="top">
<td width="35%">{translate module=invoice}field_checkout_plugin_id{/translate}</td>
<td width="65%">{$list->menu('','invoice_checkout_plugin_id','checkout','name','','form_menu',true)}</td>
</tr>
<tr valign="top">
<td width="35%">{translate module=invoice}field_billed_currency_id{/translate}</td>
<td width="65%">{$list->menu('','invoice_billed_currency_id','currency','name','','form_menu',true)}</td>
</tr>
<tr valign="top">
<td width="35%">{translate module=invoice}field_date_orig{/translate}</td>
<td width="65%">{$list->calender_search('invoice_date_orig',$VAR.invoice_date_orig,'form_field','')}</td>
</tr>
<tr valign="top">
<td width="35%">{translate module=invoice}field_due_date{/translate}</td>
<td width="65%">{$list->calender_search('invoice_due_date',$VAR.invoice_due_date,'form_field','')}</td>
</tr>
<tr valign="top">
<td width="35%">{translate module=invoice}field_notice_next_date{/translate}</td>
<td width="65%">{$list->calender_search('invoice_notice_next_date',$VAR.invoice_notice_next_date,'form_field','')}</td>
</tr>
<tr valign="top">
<td width="35%">{translate module=invoice}search_memo{/translate}</td>
<td width="65%"><input type="text" name="join_memo_text" value="{$VAR.join_memo_text}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
{if $list->is_installed('host_server')}
<tr valign="top">
<td width="35%">{translate module=service}field_domain_name{/translate}</td>
<td width="65%">
<input type="text" name="join_domain_name" value="{$VAR.join_domain_name}"/>
<input type="text" name="join_domain_tld" value="{$VAR.join_domain_tld}" size="6"/>&nbsp;&nbsp;{t}"%" for partial match{/t}
</td>
</tr>
{/if}
<!-- Define the results per page -->
<tr class="row1" valign="top">
<td width="35%">{translate module=product}field_sku{/translate}</td>
<td width="65%">
{$list->menu('','join_product_id','product','sku','','" onchange="showAttributes(this)',true)}
{literal}
<script type="text/javascript" language="javascript">
function showAttributes(obj) {
if(obj.value == '') {
document.getElementById("attributes1").style.display='none';
document.getElementById("attributes2").style.display='none';
} else {
document.getElementById("attributes1").style.display='block';
document.getElementById("attributes2").style.display='block';
}
}
</script>
{/literal}
</td>
</tr>
<tr class="row1" valign="top">
<td width="35%"><div id="attributes1" style="display:none">{translate module=product}attributes{/translate}</div></td>
<td width="65%">
<div id="attributes2" style="display:none">
<input type="text" name="item_attributes[0][0]" class=form_field size="16"/> =
<input type="text" name="item_attributes[0][1]" class=form_field size="16"/><br/>
<input type="text" name="item_attributes[1][0]" class=form_field size="16"/> =
<input type="text" name="item_attributes[1][1]" class=form_field size="16"/><br/>
<input type="text" name="item_attributes[2][0]" class=form_field size="16"/> =
<input type="text" name="item_attributes[2][1]" class=form_field size="16"/><br/>
<input type="text" name="item_attributes[3][0]" class=form_field size="16"/> =
<input type="text" name="item_attributes[3][1]" class=form_field size="16"/><br/>
<input type="text" name="item_attributes[4][0]" class=form_field size="16"/> =
<input type="text" name="item_attributes[4][1]" class=form_field size="16"/><br/>
<input type="text" name="item_attributes[5][0]" class=form_field size="16"/> =
<input type="text" name="item_attributes[5][1]" class=form_field size="16"/>
</div>
</td>
</tr>
{include file='file:../core/search_post.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{$block->display('core:saved_searches')}
{$block->display('core:recent_searches')}
{/if}