{strip}

<p class="forum_navi"> {$navigation} </p>
<form action="index.php" method="get">
  <input type="hidden" name="p" value="forum" />
  <input type="hidden" name="action" value="xsearch" />
  <input type="hidden" name="area" value="{$area|default:'1'}" />
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td><table width="100%" border="0" cellpadding="3" cellspacing="1" class="forum_tableborder">
          <tr>
            <td class="forum_header_bolder"> <strong>{$lang.f_header_search_key} </strong></td>
            <td class="forum_header_bolder"> <strong>{$lang.f_header_search_user} </strong></td>
          </tr>
          <tr>
            <td valign="top" class="forum_info_main"><select name="type">
                <option value="-1"></option>
                <option value="1">{$lang.f_type_sticky}</option>
                <option value="2">{$lang.f_type_announce}</option>
                <option value="3">{$lang.f_type_moved}</option>
              </select>
              <input type="text" name="pattern" size="50" />
            </td>
            <td valign="top" class="forum_info_main"><input type="text" name="user_name" size="30" />
              <p>
                <input type="radio" name="user_opt" value="1" checked="checked" />
                {$lang.f_field_exact_search}<br />
                <input type="radio" name="user_opt" value="0" />
                {$lang.f_field_part_search} </p></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td><br />
        <table width="100%" border="0" cellpadding="3" cellspacing="1" class="forum_tableborder">
          <tr>
            <td colspan="4" valign="top" class="forum_header_bolder"><strong>{$lang.f_header_search_options}</strong></td>
          </tr>
          <tr>
            <td valign="top" class="forum_header">{$lang.f_header_search_forums} </td>
            <td valign="top" class="forum_header">{$lang.f_header_search_content}</td>
            <td valign="top" class="forum_header">{$lang.f_header_search_date} </td>
            <td valign="top" class="forum_header">{$lang.f_header_search_sort} </td>
          </tr>
          <tr>
            <td valign="top" class="forum_info_main"><p>
                <select name="search_in_forums[]" size="5" id="search_in_forums" multiple="multiple">
                  <option value="0">{$lang.f_opt_search_all_forums}</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.get.fid == $forum_dropdown->id} selected="selected" {/if}> {$forum_dropdown->visible_title} </option>
                  
                  
									{else}
									
                  
                  <option value="{$forum_dropdown->id}" {if $smarty.get.fid == $forum_dropdown->id} selected="selected" {/if}> {$forum_dropdown->visible_title} </option>
                  
                  
									{/if}
								{/foreach}
								
                
                </select>
            </p></td>
            <td valign="top" class="forum_info_main"> 
                <small>
                <input type="radio" name="search_post" value="1" checked="checked" />
{$lang.f_field_search_in_post}<br />
<input type="radio" name="search_post" value="0" />
{$lang.f_field_search_in_title} </small></td>
            <td valign="top" class="forum_info_main"> <p>
                  <select name="date">
                    <option value="0">{$lang.f_opt_any_date}</option>
                    <option value="1" {if $smarty.post.period == 1}selected{/if}>{$lang.f_opt_yesterday}</option>
                    <option value="7" {if $smarty.post.period == 2}selected{/if}>{$lang.f_opt_last_week}</option>
                    <option value="14" {if $smarty.post.period == 5}selected{/if}>{$lang.f_opt_last_2_weeks}</option>
                    <option value="30" {if $smarty.post.period == 10}selected{/if}>{$lang.f_opt_last_month}</option>
                    <option value="90" {if $smarty.post.period == 20}selected{/if}>{$lang.f_opt_last_3_months}</option>
                    <option value="180" {if $smarty.post.period == 30}selected{/if}>{$lang.f_opt_last_6_months}</option>
                    <option value="365" {if $smarty.post.period == 40}selected{/if}>{$lang.f_opt_last_year}</option>
                  </select></p>
                <p> <small>
                  <input type="radio" name="b4after" value="0" checked="checked" />
  {$lang.f_field_and_newer}<br />
  <input type="radio" name="b4after" value="1" />
  {$lang.f_field_and_older} </small></p></td>
            <td valign="top" class="forum_info_main"> <p>
                  <select name="search_sort">
                    <option value="1">{$lang.f_lbl_sort_by} {$lang.f_field_subject}</option>
                    <option value="2">{$lang.f_lbl_sort_by} {$lang.f_field_posts}</option>
                    <option value="3">{$lang.f_lbl_sort_by} {$lang.f_field_author}</option>
                    <option value="4">{$lang.f_lbl_sort_by} {$lang.f_field_forum}</option>
                    <option value="5">{$lang.f_lbl_sort_by} {$lang.f_field_hits}</option>
                    <option value="6">{$lang.f_lbl_sort_by} {$lang.f_field_date}</option>
                  </select></p>
                <p> <small>
                  <input type="radio" name="ascdesc" value="ASC" />
  {$lang.f_opt_asc}<br />
  <input type="radio" name="ascdesc" value="DESC" checked="checked" />
  {$lang.f_opt_desc} </small></p></td>
          </tr>
        </table></td>
    </tr>
  </table>
  <p align="center">
    <input type="submit" class="button" value="{$lang.f_btn_submit}" />
  </p>
</form>

{/strip}