{* ===== FILTER TYPE = "list" ================================================================== *}
{if $filterDet.operation=="values" or $filterDet.operation=="differentFromValues"}

	{foreach from=$filterDet.valuesList key=idx item=item name=thisForeach}

		<input type="checkbox" id="customFilter_{$column}_{$idx}" class="noBorder"
			name="customFilters[{$column}][values][{$idx}]" value="1"
			{if $item.checked}checked="1"{/if}
		/>
		<label for="customFilter_{$column}_{$idx}" {if $item.element=='_'}class="blankStringField"{/if}>
			{if $item.element=='_'}
				[{$_LANG.reportsGeneration.startReport.tpl.custFilters.string_empty}]
			{else}
				{$item.element}
			{/if}
		</label>

		{if !$smarty.foreach.thisForeach.last}&nbsp;{/if}

	{/foreach}
{* ===== FILTER TYPE = "value" ================================================================= *}
{else}

	<div id="displayIntervalBox_{$column}" class="displayIntervalBox"></div>

	{* filter operation *}
	<select size="1" name="customFilters[{$column}][operation]" id="customFilterOperation_{$column}"
		onchange="updateNumericCustomFilterValues('{$column}');" style="width:180px;"
	>
		<optgroup label="Interval">
			<option value="inclClosedInterval" {if $filterDet.operation=='inclClosedInterval'}selected="1"{/if}>{$_LANG.reportsGeneration.startReport.tpl.custFilters.numeric_op_inclClosedInterval}</option>
			<option value="inclOpenInterval" {if $filterDet.operation=='inclOpenInterval'}selected="1"{/if}>{$_LANG.reportsGeneration.startReport.tpl.custFilters.numeric_op_inclOpenInterval}</option>
			<option value="exclClosedInterval" {if $filterDet.operation=='exclClosedInterval'}selected="1"{/if}>{$_LANG.reportsGeneration.startReport.tpl.custFilters.numeric_op_exclClosedInterval}</option>
			<option value="exclOpenInterval" {if $filterDet.operation=='exclOpenInterval'}selected="1"{/if}>{$_LANG.reportsGeneration.startReport.tpl.custFilters.numeric_op_exclOpenInterval}</option>
		</optgroup>
		<optgroup label="Valoare">
			<option value="equals" {if $filterDet.operation=='equals'}selected="1"{/if}>{$_LANG.reportsGeneration.startReport.tpl.custFilters.numeric_op_eq}</option>
			<option value="notEquals" {if $filterDet.operation=='notEquals'}selected="1"{/if}>{$_LANG.reportsGeneration.startReport.tpl.custFilters.numeric_op_diff}</option>
		</optgroup>
	</select>
	{* define values fields *}
	<span id="numFields_{$column}_interval"
		{if $filterDet.operation!='inclClosedInterval' and $filterDet.operation!='inclOpenInterval' and $filterDet.operation!='exclClosedInterval' and $filterDet.operation!='exclOpenInterval'}style="display:none;"{/if}
	>
		<input type="text" id="customFilter_minValue_{$column}" name="customFilters[{$column}][minValue]" value="{$filterDet.minValue}" style="width:70px" onBlur="refreshCustomFilterInterval('{$column}')" />
		&raquo;
		<input type="text" id="customFilter_maxValue_{$column}" name="customFilters[{$column}][maxValue]" value="{$filterDet.maxValue}" style="width:70px"  onBlur="refreshCustomFilterInterval('{$column}')" />
	</span>
	<span id="numFields_{$column}_value"
		{if $filterDet.operation!='equals' and $filterDet.operation!='notEquals'}style="display:none;"{/if}
	>
		<input type="text" id="customFilter_value_{$column}" name="customFilters[{$column}][value]" value="{$filterDet.value}" style="width:160px"  onBlur="refreshCustomFilterInterval('{$column}')" />
	</span>

	<script language="javascript"> refreshCustomFilterInterval('{$column}'); </script>

{/if}
