1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62. |
{capture name="section"}
<form action="{$index_script}" name="orders_search_form" method="get">
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td class="nowrap search-field">
<label for="cname">{$lang.customer}:</label>
<div class="break">
<input type="text" name="cname" id="cname" value="{$search.cname}" size="30" class="search-input-text" />
{include file="buttons/search_go.tpl" search="Y" but_name="orders.search"}
</div>
</td>
<td class="search-field">
<label for="email">{$lang.email}:</label>
<div class="break">
<input type="text" name="email" id="email" value="{$search.email}" size="30" class="input-text" />
</div>
</td>
<td class="nowrap search-field">
<label for="total_from">{$lang.total} ({$currencies.$primary_currency.symbol}):</label>
<div class="break">
<input type="text" name="total_from" id="total_from" value="{$search.total_from}" size="3" class="input-text-price" /> – <input type="text" name="total_to" value="{$search.total_to}" size="3" class="input-text-price" />
</div>
</td>
<td width="100%">
<div class="buttons-container">
{include file="buttons/button.tpl" but_text=$lang.search but_name="dispatch[orders.search]" but_role="submit"}
</div>
</td>
</tr>
</table>
{capture name="advanced_search"}
<div class="form-field">
<label for="tax_exempt">{$lang.tax_exempt}:</label>
<select name="tax_exempt" id="tax_exempt">
<option value="">--</option>
<option value="Y" {if $search.tax_exempt == "Y"}selected="selected"{/if}>{$lang.yes}</option>
<option value="N" {if $search.tax_exempt == "N"}selected="selected"{/if}>{$lang.no}</option>
</select>
</div>
<div class="form-field">
<label>{$lang.order_status}:</label>
{include file="orders_pages/order_status.tpl" status=$search.status display="checkboxes" name="status"}
</div>
{if !($search.tax_exempt || $search.status || $search.period || $search.order_id || $search.products)} {* FIXME: need another solution *}
{assign var="hide" value=true}
{else}
{assign var="hide" value=false}
{/if}
{/capture}
{include file="common_templates/advanced_search.tpl" content=$smarty.capture.advanced_search hide=$hide dispatch="orders.search"}
</form>
{/capture}
{include file="common_templates/section.tpl" section_title=$lang.search section_content=$smarty.capture.section} |