{# begin {templatelocation} #}

<form action="{site_url}/search.php" method="get" id="advsearchform" class="compact">

  <div class="user_basic">
    <p class="message">{search_intro}</p>

    <dl>
      <dt><label for="advsearchform-query">{lang_keywords}</label></dt>
      <dd>
        <input type="text" size="35" maxlength="35" value="{query}" name="query" id="advsearchform-query" class="text"{xhtml}>
        <br{xhtml}>
        <select name="keyType" title="{lang_keytype}" id="advsearchform-keyType">
          <option value="phrase" {key_phrase_selected}>{lang_exact_phrase}</option>
          <option value="all" {key_all_selected}>{lang_all_words}</option>
          <option value="any" {key_any_selected}>{lang_any_word}</option>
        </select>
        <span>
          {lang_titles} <input type="checkbox" value="true" name="title"{title_checked}{xhtml}>
        </span>
      </dd>

      <dt><label for="advsearchform-datestart">{lang_date}</label></dt>
      <dd>
        <input type="text" size="10" maxlength="10" name="datestart" value="{datestart}" id="advsearchform-datestart" class="text"{xhtml}> {lang_to} <input type="text" size="10" maxlength="10" name="dateend" value="{dateend}" id="advsearchform-dateend" class="text"{xhtml}>
      </dd>
      <dd class="description">{date_format}</dd>

      <dt><label for="advsearchform-topic">{lang_topic}</label></dt>
      <dd>
        <select name="topic" id="advsearchform-topic">
          {topic_option_list}
        </select>
      </dd>

      <dt><label for="advsearchform-type">{lang_type}</label></dt>
      <dd>
        <select name="type" id="advsearchform-type">
          {plugin_types}
        </select>
      </dd>

      {author_form_element}

      <dt><label for="advsearchform-results">{lang_results}</label></dt>
      <dd>
        <select name="results" id="advsearchform-results">
          {search_limits}
        </select>
        {lang_per_page}
      </dd>
    </dl>

    <ul class="submit">
      <li>
        <input type="hidden" name="mode" value="search"{xhtml}>
        <input type="submit" value="{lang_search}" class="submit"{xhtml}>
      </li>
    </ul>
  </div>
</form>

<!-- BEGIN author_form_element -->
    <dt><label for="advsearchform-author">{lang_authors}</label></dt>
    <dd>
      <select name="author" id="advsearchform-author">
        <option selected="selected" value="0">{lang_all}</option>
        {author_option_list}
      </select>
    </dd>
<!-- END author_form_element -->

<!-- BEGIN author_form_element_disabled -->
    <input type="hidden" name="author" value="0"{XHTML}>
<!-- END author_form_element_disabled -->

{# end {templatelocation} #}
