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/account/search_form.tpl
2011-05-03 09:49:01 +10:00

323 lines
13 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 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=username}</td>
<td style="width: 65%;"><input type="text" name="account_username" value="{$VAR.account_username}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=email}</td>
<td style="width: 65%;"><input type="text" name="account_email" value="{$VAR.account_email}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=first_name}</td>
<td style="width: 65%;"><input type="text" name="account_first_name" value="{$VAR.account_first_name}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=middle_name}</td>
<td style="width: 65%;"><input type="text" name="account_middle_name" value="{$VAR.account_middle_name}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=last_name}</td>
<td style="width: 65%;"><input type="text" name="account_last_name" value="{$VAR.account_last_name}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=company}</td>
<td style="width: 65%;"><input type="text" name="account_company" value="{$VAR.account_company}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=address1}</td>
<td style="width: 65%;"><input type="text" name="account_address1" value="{$VAR.account_address1}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=address2}</td>
<td style="width: 65%;"><input type="text" name="account_address2" value="{$VAR.account_address2}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=city}</td>
<td style="width: 65%;"><input type="text" name="account_city" value="{$VAR.account_city}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=state}</td>
<td style="width: 65%;"><input type="text" name="account_state" value="{$VAR.account_state}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=zip}</td>
<td style="width: 65%;"><input type="text" name="account_zip" value="{$VAR.account_zip}"/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=misc}</td>
<td style="width: 65%;"><input type="text" name="account_misc" value="{$VAR.account_misc}" {if $account_misc == 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=date_orig}</td>
<td style="width: 65%;">{$list->calender_search('account_date_orig',$VAR.account_date_orig,'form_field','')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=date_expire}</td>
<td style="width: 65%;">{$list->calender_search('account_date_expire',$VAR.account_date_expire,'form_field','')}</td>
</tr>
{if $list->is_installed('affiliate')}
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=affiliate_id}</td>
<td style="width: 65%;">{osb f=html_select_affiliate name='account_affiliate_id' default=$VAR.account_affiliate_id}</td>
</tr>
{/if}
{if $list->is_installed('campaign')}
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=campaign_id}</td>
<td style="width: 65%;">{$list->menu('no','account_campaign_id','campaign','name','','form_menu',true)}</td>
</tr>
{/if}
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=country_id}</td>
<td style="width: 65%;">{$list->menu('no','account_country_id','country','name','','form_menu',true)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=language_id}</td>
<td style="width: 65%;">{$list->menu_files('','account_language_id','all','language','','_core.xml','form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=currency_id}</td>
<td style="width: 65%;">{$list->menu('no','account_currency_id','currency','name','','form_menu',true)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=theme_id}</td>
<td style="width: 65%;">{$list->menu_files('','account_theme_id','all','theme','','.user_theme','form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=status}</td>
<td style="width: 65%;">{$list->bool('account_status','all','form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=account_group}</td>
<td style="width: 65%;">{$list->menu('no','account_group','group','name','','form_menu',true)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=title}</td>
<td style="width: 65%;">{$list->menu_staticlist('nametitle','account_title','account_title','','form_menu','all')}</td>
</tr>
{$method->exe('account','static_var')}
{foreach from=$static_var item=record}
<tr valign="top">
<td style="width: 35%;">{$record.name}</td>
<td style="width: 65%;">{$record.html}</td>
</tr>
{/foreach}
<tr valign="top">
<td style="width: 35%;">{t}Results per page{/t}</td>
<td style="width: 65%;"><input type="text" name="limit" size="5" value="{$account_limit}"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{t}Order results by{/t}</td>
<td style="width: 65%;">
<select name="order_by">
{foreach from=$account item=record}
<option value="{$record.field}">{$record.translate}</option>
{/foreach}
</select>
</td>
</tr>
<tr valign="top">
<td style="width: 35%;">&nbsp;</td>
<td style="width: 65%;">&nbsp;</td>
</tr>
<tr valign="top">
<td style="width: 35%;">&nbsp;</td>
<td style="width: 65%;">
<input type="submit" name="Submit" value="{t}Search{/t}" class="form_button"/>
<input type="hidden" name="_page" value="core:search"/>
<input type="hidden" name="_next_page_one" value="view"/>
<input type="hidden" name="module" value="account"/>
</td>
</tr>
<tr valign="top">
<td style="width: 35%;">&nbsp;</td>
<td style="width: 65%;">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<form 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 style="width: 65%;" class="table_heading"><div style="text-align: center;">Custom Group Search</div></td>
</tr>
<tr valign="top">
<td style="width: 65%;" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=date_orig}</td>
<td style="width: 65%;">
<select name="dates[expr][]">
<option value="<">&lt;</option>
<option value=">">&gt;</option>
</select>
{$list->calender_add('dates','','','val')}<br/>
<select name="dates[expr][]">
<option value="<">&lt;</option>
<option value=">">&gt;</option>
</select>
{$list->calender_add('dates','','','val')}
</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{translate module=account}account_group{/translate}</td>
<td style="width: 65%;">{$list->menu_multi('','groups','group','name','10','10','form_menu')}</td>
</tr>
{$method->exe('account','static_var')}
{foreach from=$static_var item=record}
{/foreach}
<tr valign="top">
<td style="width: 35%;">&nbsp;</td>
<td style="width: 65%;">&nbsp;</td>
</tr>
<tr valign="top">
<td style="width: 35%;">&nbsp;</td>
<td style="width: 65%;"><input type="submit" name="Submit" value="{t}Search{/t}" class="form_button"/>
<input type="hidden" name="_page" value="core:blank"/>
<input type="hidden" name="_escape" value="Y"/>
<input type="hidden" name="do[]" value="{$meth.0}:group_search"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{if $list->is_installed('product')}
<form 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 style="width: 65%;" class="table_heading"><div style="text-align: center;">Custom Product Search</div></td>
</tr>
<tr valign="top">
<td style="width: 65%;" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=date_orig}</td>
<td style="width: 65%;">
<select name="dates[expr][]">
<option value="<">&lt;</option>
<option value=">">&gt;</option>
</select>
{$list->calender_add('dates','','','val')}<br/>
<select name="dates[expr][]">
<option value="<">&lt;</option>
<option value=">">&gt;</option>
</select>
{$list->calender_add('dates','','','val')}
</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{translate module=account}account_group{/translate}</td>
<td style="width: 65%;">{$list->menu_multi('','products','product','sku','10','10','form_menu')}</td>
</tr>
{$method->exe('account','static_var')}
{foreach from=$static_var item=record}
{/foreach}
<tr valign="top">
<td style="width: 35%;">&nbsp;</td>
<td style="width: 65%;">&nbsp;</td>
</tr>
<tr valign="top">
<td style="width: 35%;">&nbsp;</td>
<td style="width: 65%;"><input type="submit" name="Submit" value="{t}Search{/t}" class="form_button"/>
<input type="hidden" name="_page" value="core:blank"/>
<input type="hidden" name="_escape" value="Y"/>
<input type="hidden" name="do[]" value="{$meth.0}:product_search"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}
{if $list->is_installed('account_billing')}
<br/>
<form 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 style="width: 65%;" class="table_heading"><center>{translate module=account_billing}title_search{/translate}</center></td>
</tr>
<tr valign="top">
<td style="width: 65%;" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=card_num4}</td>
<td style="width: 65%;"><input name="account_billing_card_num4" type="text" size="6" maxlength="4"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=checkout_plugin_id}</td>
<td style="width: 65%;">{$list->menu('no','account_billing_checkout_plugin_id','checkout','name','','form_menu',true)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=card_type}</td>
<td style="width: 65%;">{$list->card_type_menu($VAR.account_billing_card_type,$VAR.option,'account_billing_card_type','form_menu',true)}</td>
</tr>
{include file='file:../core/search_post.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}
{/if}