<!-- Search -->
<div class="search_widget_wrapper">

	<div class="widget_content_wrapper">
	
		<form action="/" method="post" name="easyshop_search">
			<input type="text" id="search_item" name="search_item" autocomplete="off" data-defaultv="{$template_text.main_widget_search.search_field_text}" value="{if isset($search_item)}{$search_item}{else}{$template_text.main_widget_search.search_field_text}{/if}" />
			<select id="search_item_category" class="search_item_categories" name="search_item_categories">
				<option value="0">--{$template_text.main_widget_search.category_selection_all}--</option>
				{foreach from=$main_widget_search.item_categories item=item_category}
					<option value="{$item_category->id}">{$item_category->name}</option>
				{/foreach}
			</select>
			<input class="search_button" type="submit" value="{$template_text.default.search}" />
		</form>
		
		{if $template_text.main_widget_search.subsearch_field_text}
			<div class="subsearch_field_text">{$template_text.main_widget_search.subsearch_field_text}</div>
		{/if}
		
		<div id="search_result"></div>
	</div>
</div>
