{include file="header.tpl.html" bgcolor="$dark_color"}

{literal}
<script language="JavaScript">
<!--
function clearFilters(f)
{
    f.keywords.value = '';
    f.users.selectedIndex = 0;
    f.status.selectedIndex = 0;
    f.category.selectedIndex = 0;
    f.release.selectedIndex = 0;
    f.priority.selectedIndex = 0;
    // now for the fields that are only available through the advanced search page
    setHiddenFieldValue(f, 'created_date[Year]', '');
    setHiddenFieldValue(f, 'created_date[Month]', '');
    setHiddenFieldValue(f, 'created_date[Day]', '');
    setHiddenFieldValue(f, 'created_date[filter_type]', '');
    setHiddenFieldValue(f, 'updated_date[Year]', '');
    setHiddenFieldValue(f, 'updated_date[Month]', '');
    setHiddenFieldValue(f, 'updated_date[Day]', '');
    setHiddenFieldValue(f, 'updated_date[filter_type]', '');
    setHiddenFieldValue(f, 'last_response_date[Year]', '');
    setHiddenFieldValue(f, 'last_response_date[Month]', '');
    setHiddenFieldValue(f, 'last_response_date[Day]', '');
    setHiddenFieldValue(f, 'last_response_date[filter_type]', '');
    setHiddenFieldValue(f, 'first_response_date[Year]', '');
    setHiddenFieldValue(f, 'first_response_date[Month]', '');
    setHiddenFieldValue(f, 'first_response_date[Day]', '');
    setHiddenFieldValue(f, 'first_response_date[filter_type]', '');
    setHiddenFieldValue(f, 'closed_date[Year]', '');
    setHiddenFieldValue(f, 'closed_date[Month]', '');
    setHiddenFieldValue(f, 'closed_date[Day]', '');
    setHiddenFieldValue(f, 'closed_date[filter_type]', '');
    setHiddenFieldValue(f, 'show_authorized_issues', '');
    setHiddenFieldValue(f, 'show_notification_list_issues', '');
    f.submit();
}
//-->
</script>
{/literal}
<table width="100%" border="0" cellspacing="0" cellpadding="4">
  <form target="_main" action="list.php" method="get">
  <input type="hidden" name="cat" value="search">
  <input type="hidden" name="pagerRow" value="0">
  <input type="hidden" name="created_date[Year]" value="{$options.created_date.Year}">
  <input type="hidden" name="created_date[Month]" value="{$options.created_date.Month}">
  <input type="hidden" name="created_date[Day]" value="{$options.created_date.Day}">
  <input type="hidden" name="created_date[filter_type]" value="{$options.created_date.filter_type}">
  <input type="hidden" name="updated_date[Year]" value="{$options.updated_date.Year}">
  <input type="hidden" name="updated_date[Month]" value="{$options.updated_date.Month}">
  <input type="hidden" name="updated_date[Day]" value="{$options.updated_date.Day}">
  <input type="hidden" name="updated_date[filter_type]" value="{$options.updated_date.filter_type}">
  <input type="hidden" name="last_response_date[Year]" value="{$options.last_response_date.Year}">
  <input type="hidden" name="last_response_date[Month]" value="{$options.last_response_date.Month}">
  <input type="hidden" name="last_response_date[Day]" value="{$options.last_response_date.Day}">
  <input type="hidden" name="last_response_date[filter_type]" value="{$options.last_response_date.filter_type}">
  <input type="hidden" name="first_response_date[Year]" value="{$options.first_response_date.Year}">
  <input type="hidden" name="first_response_date[Month]" value="{$options.first_response_date.Month}">
  <input type="hidden" name="first_response_date[Day]" value="{$options.first_response_date.Day}">
  <input type="hidden" name="first_response_date[filter_type]" value="{$options.first_response_date.filter_type}">
  <input type="hidden" name="closed_date[Year]" value="{$options.closed_date.Year}">
  <input type="hidden" name="closed_date[Month]" value="{$options.closed_date.Month}">
  <input type="hidden" name="closed_date[Day]" value="{$options.closed_date.Day}">
  <input type="hidden" name="closed_date[filter_type]" value="{$options.closed_date.filter_type}">
  <input type="hidden" name="show_authorized_issues" value="{$options.show_authorized_issues}">
  <input type="hidden" name="show_notification_list_issues" value="{$options.show_notification_list_issues}">
  <tr>
    <td class="default">
      <span style="font-size: 25px; color: black; font-weight: bold;">{t}Quick Search{/t}</span>
    </td>
  </tr>
</table>
<hr size="1" noshade color="{$cell_color}">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
  <tr>
    <td>
      <span class="default">{t}Keyword(s):{/t}</span><br />
      <input class="default" type="text" name="keywords" size="15" value="{$options.keywords|escape:"html"}">
    </td>
  </tr>
  <tr>
    <td>
      <span class="default">{t}Assigned:{/t}</span><br />
      <select name="users" class="default">
        <option value="">{t}any{/t}</option>
        {html_options options=$users selected=$options.users}
      </select>
    </td>
  </tr>
  <tr>
    <td>
      <span class="default">{t}Status:{/t}</span><br />
      <select name="status" class="default">
        <option value="">{t}any{/t}</option>
        {foreach key=sta_id item=sta_title from=$status}
        <option value="{$sta_id}" {if $sta_id == $options.status}selected{/if}>{$sta_title}</option>
        {/foreach}
      </select>
    </td>
  </tr>
  <tr>
    <td>
      <span class="default">{t}Category:{/t}</span><br />
      <select name="category" class="default">
        <option value="">{t}any{/t}</option>
        {html_options options=$categories selected=$options.category}
      </select>
    </td>
  </tr>
  <tr>
    <td>
      <span class="default">{t}Priority:{/t}</span><br />
      <select name="priority" class="default">
        <option value="">{t}any{/t}</option>
        {section name="i" loop=$priorities}
        <option value="{$priorities[i].pri_id}" {if $priorities[i].pri_id == $options.priority}selected{/if}>{$priorities[i].pri_title}</option>
        {/section}
      </select>
    </td>
  </tr>
  <tr>
    <td>
      <input class="button" type="submit" value="{t}Search{/t}">
      <input class="button" type="button" value="{t}Clear{/t}" onClick="javascript:clearFilters(this.form);">
    </td>
  </tr>
  </form>
</table>

<br />
{assign var="benchmark_total" value=""}
{include file="app_info.tpl.html"}
{include file="footer.tpl.html"}