<div id="current_filters1" {get_display_style element_name="current_filters"}>
<table bgcolor="{$cell_color}" border="0" cellspacing="0" cellpadding="1" align="center">
  <tr>
    <td>
      <table bgcolor="#FFFFAA" width="100%" border="0" cellspacing="0" cellpadding="4">
        <tr>
          {strip}
          <td class="default">
            {t}Current filters:{/t}&nbsp;
            {assign var="displayed_count" value=0}
            {foreach from=$filter_info item=filter key=filter_key}
            {assign var=filter_param value=$filter.param}
            {if $filter.is_custom == 1}
              {assign var=fld_id value=$filter.fld_id}
              {assign var=filter_details value=$options.custom_field.$fld_id}
            {else}
              {assign var=filter_details value=$options.$filter_param}
            {/if}
            {if $filter_param != 'sort_order' && $filter_param != 'sort_by' && $filter_param != 'rows' && $filter_param != 'search_type' &&
                $filter_details != '' && $filter_details != '0' && ($filter_details.Year != '' OR $filter_details.time_period != ''
                OR ($filter.is_custom == 1 && ($filter.fld_type != 'date' OR $filter.Year != '')))}
              {if $displayed_count != 0}, {/if}
              <b>{if $filter_param == 'keywords' && $options.use_fulltext == 1}{t}Fulltext{/t}&nbsp;{/if}{$filter.title}</b>:&nbsp;
              {if $filter.is_date == true}
                {if $filter_details.filter_type == 'in_past'}
                  {t 1=$filter_details.time_period}In Past %1 hours{/t}
                {elseif $filter_details.filter_type == 'null'}
                  {t}Is NULL{/t}
                {elseif $filter_details.filter_type == 'between'}
                  {assign var=end_var value=`$filter_param`_end}
                  {assign var=end_details value=$options.$end_var}
                  {t 1=$filter_details.Year 2=$filter_details.Month 3=$filter_details.Day 4=$end_details.Year 5=$end_details.Month 6=$end_details.Day}Is between %1-%2-%3 AND %4-%5-%6{/t}
                {elseif $filter_details.filter_type == 'greater'}
                  {t 1=$filter_details.Year 2=$filter_details.Month 3=$filter_details.Day}Is greater than %1-%2-%3{/t}
                {elseif $filter_details.filter_type == 'less'}
                  {t 1=$filter_details.Year 2=$filter_details.Month 3=$filter_details.Day}Is less than %1-%2-%3{/t}
                {/if}
              {elseif $filter_param == 'status'}
                {$status[$filter_details]}
              {elseif $filter_param == 'category'}
                {$categories[$filter_details]}
              {elseif $filter_param == 'priority'}
                {$priorities[$filter_details]}
              {elseif $filter_param == 'users'}
                {if $filter_details == -1}
                  {t}un-assigned{/t}
                {elseif $filter_details == -2}
                  {t}myself and un-assigned{/t}
                {elseif $filter_details == -3}
                  {t}myself and my group{/t}
                {elseif $filter_details == -4}
                  {t}myself, un-assigned and my group{/t}
                {elseif $filter_details|substr:"0":"3" == 'grp'}
                  {assign var=grp_id value=$filter_details|substr:"4"}
                  {$groups[$grp_id]} {t}Group{/t}
                {else}
                  {$users[$filter_details]}
                {/if}
              {elseif $filter_param == 'hide_closed'}
                {if $filter_details == 1}
                  {t}Yes{/t}
                {/if}
              {elseif $filter_param == 'reporter'}
                {$reporters[$filter_details]}
              {elseif $filter_param == 'release'}
                {$releases[$filter_details]}
              {elseif $filter.is_custom == 1}
                {if $filter.fld_type == 'text' OR $filter.fld_type == 'textarea'}
                  {$filter_details|escape:"html"}
                {elseif $filter.fld_type == 'date'}
                  {$filter_details.Year}-{$filter_details.Month}-{$filter_details.Day}
                {else}
                  {$custom_fields_display[$fld_id]}
                {/if}
              {else}
                {$filter_details|escape:"html"}
              {/if}
              {assign var="displayed_count" value=$displayed_count+1}
            {/if}
            {/foreach}
            {if $displayed_count == 0}&nbsp;<i>{t}None{/t}</i>{/if}
          </td>
          {/strip}
        </tr>
      </table>
    </td>
  </tr>
</table>

<br />
</div>
