<TMPL_IF NAME="History_Search_Filter_Highlight">
  <TMPL_IF NAME="History_Field_Search">
    <div class="historySearchFilterActive">
  <TMPL_ELSE>
    <TMPL_IF NAME="History_Field_Filter">
    <div class="historySearchFilterActive">
    </TMPL_IF>
  </TMPL_IF>
</TMPL_IF>
      
<form action="/history" method="post">
    <label class="historyLabel" for="historySearch">
        <TMPL_VAR NAME="Localize_History_SearchMessage">:
    </label>

    <TMPL_IF NAME="History_If_Search">

    <input type="text" id="historySearch" name="search" value="<TMPL_VAR ESCAPE=HTML NAME="History_Field_Search">" />

    </TMPL_IF>

    <input type="submit" class="submit" name="setsearch" value="<TMPL_VAR NAME="Localize_Find">" />
    &nbsp;&nbsp;
    <label class="historyLabel" for="historyFilter">
        <TMPL_VAR NAME="Localize_History_FilterBy">:
    </label>
    <input type="hidden" name="sort" value="<TMPL_VAR ESCAPE=HTML NAME="History_Field_Sort">" />
    <input type="hidden" name="session" value="<TMPL_VAR ESCAPE=HTML NAME="Session_Key">" />
    <select name="filter" id="historyFilter">
        <option value="">&nbsp;</option>

        <TMPL_LOOP NAME="History_Loop_SF_Buckets">

        <option value="<TMPL_VAR NAME="History_Bucket">" <TMPL_VAR NAME="History_Selected"> style="color: <TMPL_VAR NAME="History_Bucket_Color">">
            <TMPL_VAR NAME="History_Bucket">
        </option>

        </TMPL_LOOP>

        <option value="__filter__magnet" <TMPL_VAR ESCAPE=HTML NAME="History_Filter_Magnet">>
            &lt;<TMPL_VAR NAME="Localize_History_ShowMagnet">&gt;
        </option>
        <option value="unclassified" <TMPL_VAR ESCAPE=HTML NAME="History_Filter_Unclassified">>
            &lt;unclassified&gt;
        </option>
        <option value="__filter__reclassified" <TMPL_VAR ESCAPE=HTML NAME="History_Filter_Reclassified">>
            &lt;reclassified&gt;
        </option>
    </select>
    <input type="submit" class="submit" name="setfilter" value="<TMPL_VAR NAME="Localize_Filter">" />
    <input type="hidden" name="negate" value="" />
    <input type="checkbox" name="negate" id="negate" class="checkbox" <TMPL_VAR ESCAPE=HTML NAME="History_Field_Not"> />
    <label class="historyLabel" for="negate">
        <TMPL_VAR NAME="Localize_History_Negate_Search">
    </label>
    <input type="submit" class="submit" name="reset_filter_search" value="<TMPL_VAR NAME="Localize_History_ResetSearch">" />
</form>
<TMPL_IF NAME="History_Search_Filter_Highlight">
  <TMPL_IF NAME="History_Field_Search">
    </div>
  <TMPL_ELSE>
    <TMPL_IF NAME="History_Field_Filter">
    </div>
    </TMPL_IF>
  </TMPL_IF>
</TMPL_IF>
