{include file="$incpath/forums/user_panel_forums.tpl"}
{strip}
<div class="box_innerhead"><strong>{#Forums_ForumsSearch#}</strong></div>
<form action="index.php" method="get">
  <input type="hidden" name="p" value="forum" />
  <input type="hidden" name="action" value="xsearch" />
  
 
<fieldset>
<legend>{#Forums_Header_search_key#}</legend>
  <!--<strong>/strong>&nbsp;-->
  <input class="input" type="text" name="pattern" size="50"  style="width:300px" />&nbsp;
  <select class="input" name="type">
    <option value="-1">{#Forums_TypeNorm#}</option>
    <option value="1">{#Forums_Sticky#}</option>
    <option value="2">{#Forums_Announcement#}</option>
  </select>&nbsp;
    <label><input type="radio" name="search_post" value="1" checked="checked" />{#Forums_Field_search_in_post#}</label>
    <label><input type="radio" name="search_post" value="0" />{#Forums_Field_search_in_title#} </label>
</fieldset>
 
  
<table width="100%">
<tr>
<td>
<fieldset style="height:120px">
<legend>{#Forums_Header_search_forums#} </legend>
<select name="search_in_forums[]" class="input" size="5" style="width:300px; height:100px" id="search_in_forums" multiple="multiple">
<option value="0" {if $smarty.request.fid == ''}selected="selected"{/if}>{#Forums_SearchAllForums#}</option>
{foreach from=$forums_dropdown item=forum_dropdown}
{if $forum_dropdown->category_id == 0}
<option style="font-weight: bold; font-style: italic;" value="{$forum_dropdown->id}" {if $smarty.request.fid == $forum_dropdown->id} selected="selected" {/if}> {$forum_dropdown->visible_title} </option>
{else}
<option value="{$forum_dropdown->id}" {if $smarty.request.fid == $forum_dropdown->id} selected="selected" {/if}> {$forum_dropdown->visible_title} </option>
{/if}
{/foreach}
</select>
</fieldset>
</td>
<td>
<fieldset style="height:120px">
<legend>{#Forums_Header_search_date#} </legend>
<select class="input" name="date">
<option value="0">{#Forums_AnyDate#}</option>
<option value="1" {if $smarty.post.period == 1}selected{/if}>{#Forums_OptYesterday#}</option>
<option value="7" {if $smarty.post.period == 2}selected{/if}>{#Forums_OptLast_week#}</option>
<option value="14" {if $smarty.post.period == 5}selected{/if}>{#Forums_OptLast_2_weeks#}</option>
<option value="30" {if $smarty.post.period == 10}selected{/if}>{#Forums_OptLast_month#}</option>
<option value="90" {if $smarty.post.period == 20}selected{/if}>{#Forums_OptLast_3_months#}</option>
<option value="180" {if $smarty.post.period == 30}selected{/if}>{#Forums_OptLast_6_months#}</option>
<option value="365" {if $smarty.post.period == 40}selected{/if}>{#Forums_OptLast_year#}</option>
</select>
<br /><br />
<label><input type="radio" name="b4after" value="0" checked="checked" />{#Forums_AndNewer#}</label><br />
<label><input type="radio" name="b4after" value="1" />{#Forums_AndOlder#} </label>
</fieldset>
</td>
<td>
<fieldset style="height:120px">
<legend>{#Forums_Header_search_sort#} </legend>
<select class="input" name="search_sort">
<option value="1">{#Forums_Label_sort_by#} {#Forums_Field_subject#}</option>
<option value="2">{#Forums_Label_sort_by#} {#Forums_Field_posts#}</option>
<option value="3">{#Forums_Label_sort_by#} {#Forums_Author#}</option>
<option value="4">{#Forums_Label_sort_by#} {#Forums_Field_forum#}</option>
<option value="5">{#Forums_Label_sort_by#} {#Forums_Field_hits#}</option>
<option value="6">{#Forums_Label_sort_by#} {#Forums_Field_date#}</option>
</select>
<br /><br />
<label><input type="radio" name="ascdesc" value="ASC" />{#Forums_SortAsc#}</label><br />
<label><input type="radio" name="ascdesc" value="DESC" checked="checked" /></label>{#Forums_SortDesc#} 

</fieldset>
</td>
</tr>
</table>  
<br />
  <p align="center">
    <input type="submit" class="button" style="padding:5px; font-size:120%" value="{#Forums_ButtonSend#}" />
  </p>
</form>

{/strip}
{include file="$incpath/forums/forums_footer.tpl"}