{foreach from=$custom_fields item=field name=custom_fields} {assign var="custom_field_id" value=$field.fld_id} {if $smarty.foreach.custom_fields.iteration % 2 == 1} {/if} {if $smarty.foreach.custom_fields.iteration % 2 != 1} {/if} {/foreach}
{$field.fld_title}:  {if $field.fld_type == 'text' OR $field.fld_type == 'textarea'} {elseif $field.fld_type == 'integer'} {assign var="cmp" value=$options.cst_custom_field[$field.fld_id].filter_type} {elseif $field.fld_type == 'combo' OR $field.fld_type == 'multiple'} {elseif $field.fld_type == 'date'} {html_select_date field_array="custom_field[`$custom_field_id`]" prefix='' all_extra="class=\"default\"" month_empty='' time='--' display_years=false display_days=false month_extra="id=\"custom_field_`$custom_field_id`_month\" tabindex=\"`$tabindex++`\""} {include file="error_icon.tpl.html" field="custom_field[$custom_field_id][Month]"} {html_select_date field_array="custom_field[`$custom_field_id`]" prefix='' all_extra="class=\"default\"" day_empty='' time='--' display_months=false display_years=false day_value_format=%02d day_extra="id=\"custom_field_`$custom_field_id`_day\" tabindex=\"`$tabindex++`\""} {include file="error_icon.tpl.html" field="custom_field[$custom_field_id][Day]"} {html_select_date field_array="custom_field[`$custom_field_id`]" prefix='' all_extra="class=\"default\"" year_empty='' time='--' display_months=false display_days=false start_year=-1 end_year=+2 year_extra="id=\"custom_field_`$custom_field_id`_year\" tabindex=\"`$tabindex++`\""} {include file="error_icon.tpl.html" field="custom_field[$custom_field_id][Year]"} {/if}