<% @props.horizontal = @location != "left" %> <% if @item.flexiblePanel || @page.hasAlwaysOnPanelItems(@th) : %>
<% if @props.horizontal : %> data-horizontal <% end %> > <% if @item.flexiblePanel : %>
<% end %>
<% if @item.flexiblePanel : %> {BEGIN searchCtrlBlock}
{$delCtrlButt} {$searchtype} {$searchcontrol} {$searchcontrol1}
{END searchCtrlBlock} <% end %> <% for fieldItemId in @item.items : %> <% fieldItem = @page.items[fieldItemId] %> <% if !fieldItem : %> <% continue %> <% end %> <% defaultOption = fieldItem.defaultOption( @th ) %> <% goodName = @goodFieldName( fieldItem.field ) %> {BEGIN searchCtrlBlock_<%- goodName %>}
}> <% if @item.flexiblePanel : %> {$delCtrlButt} <% end %> <% if @item.flexiblePanel || defaultOption == @types.SearchOption.EMPTY || defaultOption == @types.SearchOption.NOT_EMPTY : %> {$searchtype_<%- goodName %>} <% else : %> <% end %> {$searchcontrol_<%- goodName %>} <% if @item.flexiblePanel || defaultOption == @types.SearchOption.BETWEEN || defaultOption == @types.SearchOption.NOT_BETWEEN : %> {$searchcontrol1_<%- goodName %>} <% end %>
{END searchCtrlBlock_<%- goodName %>} <% end %>
<% end %>