2009-12-23 13:06:42 +00:00
|
|
|
<div style="width:98%; margin:auto">
|
2009-12-25 17:13:06 +00:00
|
|
|
|
2009-12-23 13:06:42 +00:00
|
|
|
<div id="simple_search" class="simple_container" style="border:none">
|
2009-12-25 17:13:06 +00:00
|
|
|
<div class="quick_search">
|
|
|
|
<form name="search-form" method="get" action="">
|
2010-02-10 05:54:08 +00:00
|
|
|
<span class='title'>{$title} › {lang code='search'} –</span>
|
|
|
|
<input type="text" name="query" value="{'query'|get_form_val:true}" id="query" />
|
2009-12-25 17:13:06 +00:00
|
|
|
type
|
2011-01-06 15:07:18 +00:00
|
|
|
<select id="SearchType" name="type">
|
2009-12-25 17:13:06 +00:00
|
|
|
{foreach from=$Cbucket->search_types item=t key=stypes}
|
|
|
|
<option value="{$stypes}" {if $smarty.get.type==$stypes} selected="selected"{/if}>{$stypes}</option>
|
|
|
|
{/foreach}
|
|
|
|
</select>
|
2010-02-10 05:54:08 +00:00
|
|
|
<input type="submit" name="cbsearch" id="cbsearch" value="{lang code='search'}" class="cb_button" />
|
2009-12-25 17:13:06 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
2009-12-23 13:06:42 +00:00
|
|
|
</div>
|
2010-04-26 14:54:40 +00:00
|
|
|
<div class="simple_container clearfix" style="min-height:400px; overflow:visible; display:none" id="advance_search">
|
2009-12-23 13:06:42 +00:00
|
|
|
{foreach from=$Cbucket->search_types item=search_type key=search_type_key}
|
2010-12-14 13:53:51 +00:00
|
|
|
|
2009-12-23 13:06:42 +00:00
|
|
|
{if $search_type}
|
2011-01-03 11:02:54 +00:00
|
|
|
|
2009-12-23 13:06:42 +00:00
|
|
|
{assign var='type' value=$cbsearch->init_search($search_type_key)}
|
2010-12-14 13:53:51 +00:00
|
|
|
|
2009-12-23 13:06:42 +00:00
|
|
|
{if $type}
|
|
|
|
{assign var='types' value=$type->search_type}
|
2010-12-14 13:53:51 +00:00
|
|
|
|
2009-12-23 13:06:42 +00:00
|
|
|
{foreach from=$types key=stype item=search}
|
2011-01-06 15:07:18 +00:00
|
|
|
<div id="{$stype}" class="search_type">
|
2010-02-10 05:54:08 +00:00
|
|
|
{lang code='search_for_s' assign='searchfor'}
|
|
|
|
<h2>{$searchfor|sprintf:$search.title}</h2>
|
2009-12-23 13:06:42 +00:00
|
|
|
<div>
|
|
|
|
<form name="search-form-{$search.title}" method="get" action="">
|
|
|
|
<input type="hidden" name="type" value="{$stype}" />
|
|
|
|
{foreach from=$search.fields item=field}
|
|
|
|
<div>
|
|
|
|
<label class="label">{$field.title}</label>
|
2010-02-10 05:54:08 +00:00
|
|
|
{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_after}
|
2009-12-23 13:06:42 +00:00
|
|
|
</div>
|
|
|
|
{/foreach}
|
|
|
|
<label for="button"></label>
|
|
|
|
<input type="submit" name="cbsearch" id="cbsearch" value="Search" class="cb_button" />
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/foreach}
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
{/foreach}
|
2009-11-30 19:46:45 +00:00
|
|
|
</div>
|
2011-01-06 15:07:18 +00:00
|
|
|
<span class="more_button" style="margin-bottom:10px"><a href="javascript:void(0)" onClick="showAdvanceSearch('simple_search','advance_search','more_button','more_button_up');">{lang code='more_options'}</a></span>
|
2009-12-23 13:06:42 +00:00
|
|
|
|
|
|
|
<div>
|
|
|
|
<div class="heading">{$search_type_title}</div>
|
2010-03-03 11:40:20 +00:00
|
|
|
<div style="height:10px"></div>
|
|
|
|
|
|
|
|
<div style="width:810px; float:left">
|
2009-12-23 13:06:42 +00:00
|
|
|
{if $results}
|
|
|
|
{foreach item=result from=$results}
|
|
|
|
{assign var=$template_var value =$result}
|
|
|
|
{include file="$display_template" }
|
|
|
|
{/foreach}
|
2010-03-03 12:16:07 +00:00
|
|
|
{else}
|
|
|
|
{lang code='no_results_found'}
|
2009-12-23 13:06:42 +00:00
|
|
|
{/if}
|
|
|
|
<div class="clearfix"></div>
|
2010-03-03 11:40:20 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
<div style="width:160px; float:right">
|
|
|
|
{AD place='ad_160x600'}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
2009-11-30 19:46:45 +00:00
|
|
|
</div>
|
|
|
|
|
2009-12-23 13:06:42 +00:00
|
|
|
{include file="$style_dir/blocks/pagination.html"}
|
|
|
|
</div>
|