<!-- search/searchform.thtml { -->

<form action="{site_url}/search.php" method="get" id="advsearchform" class="compact">
  <fieldset>
    <legend>検索条件</legend><!-- Geeklog Japanese -->

    <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}>
        <select name="keyType" id="advsearchform-keyType">
          <option value="phrase" {key_phrase_selected}>{lang_exact_phrase}</option>
          <option value="all"   selected="selected" {key_all_selected}>{lang_all_words}</option>
          <option value="any" {key_any_selected}>{lang_any_word}</option>
        </select>
      </dd>

      <dt><label for="advsearchform-datestart">{lang_date}</label></dt>
      <dd>
        <input type="text" size="10" maxlength="10" value="{datestart}" name="datestart" id="advsearchform-datestart" class="text"{xhtml}>
        {lang_to}
        <input type="text" size="10" maxlength="10" value="{dateend}" name="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">
          <option selected="selected" value="0">{lang_all}</option>
          {topic_option_list}
        </select>
      </dd>

      <dt><label for="advsearchform-type">{lang_type}</label></dt>
      <dd>
        <select name="type" id="advsearchform-type">
          <option value="all" {type_all_selected}>{lang_all}</option>
          <option value="stories" {stories_selected}>{lang_stories}</option>
          <option value="comments" {comments_selected}>{lang_comments}</option>
          {plugin_types}
        </select>
      </dd>

      {author_form_element}
  
      <dt><label for="advsearchform-results">{lang_results}</label></dt>
      <dd>
        <select name="results" id="advsearchform-results">
          <option value="10" {10_selected}>10</option>
          <option value="15" {15_selected}>15</option>
          <option value="25" {25_selected}>25</option>
          <option value="50" {50_selected}>50</option>
        </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>
  </fieldset>
</form>
<!-- } search/searchform.thtml -->
