{include file="shared:errorlist.tpl"}
<form id="search" method="get" action="{$smarty.const.BLOG_BASEURL}search.php" enctype="multipart/form-data">
		
	<fieldset><legend>{$lang.search.fset1}</legend>
	<p><label for="keywords">{$lang.search.keywords}</label><br />
	<input type="text" name="q" id="keywords" />
	<label><input type="radio" name="stype" value="titles" id="onlytitles" checked="checked" />{$lang.search.onlytitles}</label>
	<label><input type="radio" name="stype" value="full" id="fulltext" />{$lang.search.fulltext}</label></p>
	</fieldset>
	
	<fieldset><legend>{$lang.search.fset2}</legend>
	<p>{html_select_date reverse_years="true" start_year=2000 end_year=$smarty.now|date_format:"%Y" field_separator=" - " field_order="DMY" time="0000-00-00" all_empty="--"}</p>
	<p>{$lang.search.datedescr}</p>
	</fieldset>
	
	<fieldset><legend>{$lang.search.fset3}</legend>
	{if !isset($categories)} {assign var=categories value=""} {/if}
	{list_categories type="radio" selected=$categories}
	<p>{$lang.search.catdescr}</p>
	</fieldset>
	
	
	<div class="buttonbar">
	<input type="submit" name="submit" id="submit" value="{$lang.search.submit}" />
	</div>
</form>
