<?php /* Smarty version Smarty-3.1.19, created on 2018-10-13 14:37:19
         compiled from "/home/tnsmborg/public_html/templates/_common/block.filters.tpl" */ ?>
<?php /*%%SmartyHeaderCode:10450217085bc23b5fa172b4-33707799%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '387d72bb319fbba4257c7b4c8af57fa3f88d67b6' => 
    array (
      0 => '/home/tnsmborg/public_html/templates/_common/block.filters.tpl',
      1 => 1528949094,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '10450217085bc23b5fa172b4-33707799',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'filters' => 0,
    'core' => 0,
    'field' => 0,
    'selected' => 0,
    'checkboxes' => 0,
    'radios' => 0,
    'member' => 0,
    'regular' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.19',
  'unifunc' => 'content_5bc23b5fa7c093_79298205',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5bc23b5fa7c093_79298205')) {function content_5bc23b5fa7c093_79298205($_smarty_tpl) {?><?php if (!is_callable('smarty_function_ia_hooker')) include '/home/tnsmborg/public_html/includes/smarty/intelli_plugins/function.ia_hooker.php';
if (!is_callable('smarty_function_html_checkboxes')) include '/home/tnsmborg/public_html/includes/smarty/plugins/function.html_checkboxes.php';
if (!is_callable('smarty_function_html_options')) include '/home/tnsmborg/public_html/includes/smarty/plugins/function.html_options.php';
if (!is_callable('smarty_function_html_radios')) include '/home/tnsmborg/public_html/includes/smarty/plugins/function.html_radios.php';
?><?php if (isset($_smarty_tpl->tpl_vars['filters']->value['item'])) {?>
    <form class="ia-form ia-form-filters" id="js-item-filters-form" data-item="<?php echo $_smarty_tpl->tpl_vars['filters']->value['item'];?>
" action="<?php echo @constant('IA_URL');?>
search/<?php echo $_smarty_tpl->tpl_vars['filters']->value['item'];?>
.json">
        <?php if (!$_smarty_tpl->tpl_vars['core']->value['config']['search_instant']) {?>
            <button class="ia-form-filters__apply js-cmd-apply-param" type="submit"><?php echo iaSmarty::lang(array('key'=>'apply'),$_smarty_tpl);?>
</button>
        <?php }?>

        <?php echo smarty_function_ia_hooker(array('name'=>'smartyFrontFiltersBeforeFields'),$_smarty_tpl);?>


        <?php  $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['field']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['filters']->value['fields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) {
$_smarty_tpl->tpl_vars['field']->_loop = true;
?>
            <?php if (!empty($_smarty_tpl->tpl_vars['filters']->value['params'][$_smarty_tpl->tpl_vars['field']->value['name']])) {?>
                <?php $_smarty_tpl->tpl_vars['selected'] = new Smarty_variable($_smarty_tpl->tpl_vars['filters']->value['params'][$_smarty_tpl->tpl_vars['field']->value['name']], null, 0);?>
            <?php } else { ?>
                <?php $_smarty_tpl->tpl_vars['selected'] = new Smarty_variable(null, null, 0);?>
            <?php }?>
            <div class="form-group">
                <label><?php echo iaSmarty::lang(array('key'=>"field_".((string)$_smarty_tpl->tpl_vars['field']->value['item'])."_".((string)$_smarty_tpl->tpl_vars['field']->value['name'])),$_smarty_tpl);?>
</label>
                <?php switch ($_smarty_tpl->tpl_vars['field']->value['type']){?>
<?php case iaField::CHECKBOX:?>
                        <div class="radios-list">
                            <?php echo smarty_function_html_checkboxes(array('assign'=>'checkboxes','name'=>$_smarty_tpl->tpl_vars['field']->value['name'],'options'=>$_smarty_tpl->tpl_vars['field']->value['values'],'separator'=>'</div>','selected'=>$_smarty_tpl->tpl_vars['selected']->value),$_smarty_tpl);?>

                            <div class="checkbox"><?php echo implode('<div class="checkbox">',$_smarty_tpl->tpl_vars['checkboxes']->value);?>

                        </div>

                    <?php break;?><?php case iaField::COMBO:?>
                        <select class="form-control js-interactive" name="<?php echo $_smarty_tpl->tpl_vars['field']->value['name'];?>
[]" multiple>
                            <?php if (!empty($_smarty_tpl->tpl_vars['field']->value['values'])) {?>
                                <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['field']->value['values'],'selected'=>$_smarty_tpl->tpl_vars['selected']->value),$_smarty_tpl);?>

                            <?php }?>
                        </select>

                    <?php break;?><?php case iaField::RADIO:?>
                        <div class="radios-list">
                            <?php if (!empty($_smarty_tpl->tpl_vars['field']->value['values'])) {?>
                                <?php echo smarty_function_html_radios(array('assign'=>'radios','name'=>$_smarty_tpl->tpl_vars['field']->value['name'],'id'=>$_smarty_tpl->tpl_vars['field']->value['name'],'options'=>$_smarty_tpl->tpl_vars['field']->value['values'],'separator'=>'</div>'),$_smarty_tpl);?>

                                <div class="radio"><?php echo implode('<div class="radio">',$_smarty_tpl->tpl_vars['radios']->value);?>

                            <?php }?>
                        </div>

                    <?php break;?><?php case iaField::STORAGE:?>
                    <?php case iaField::IMAGE:?>
                    <?php case iaField::PICTURES:?>
                        <input type="checkbox" name="<?php echo $_smarty_tpl->tpl_vars['field']->value['name'];?>
" value="1"<?php if ($_smarty_tpl->tpl_vars['selected']->value) {?> checked<?php }?>>

                    <?php break;?><?php case iaField::NUMBER:?>
                        <div class="row">
                            <div class="col-md-6">
                                <label class="ia-form__label-mini"><?php echo iaSmarty::lang(array('key'=>'from'),$_smarty_tpl);?>
</label>
                                <input class="form-control" type="text" name="<?php echo $_smarty_tpl->tpl_vars['field']->value['name'];?>
[f]" maxlength="<?php echo $_smarty_tpl->tpl_vars['field']->value['length'];?>
" placeholder="<?php echo $_smarty_tpl->tpl_vars['field']->value['range'][0];?>
"<?php if ($_smarty_tpl->tpl_vars['selected']->value) {?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['selected']->value['f'], ENT_QUOTES, 'UTF-8', true);?>
"<?php }?>>
                            </div>
                            <div class="col-md-6">
                                <label class="ia-form__label-mini"><?php echo iaSmarty::lang(array('key'=>'to'),$_smarty_tpl);?>
</label>
                                <input class="form-control" type="text" name="<?php echo $_smarty_tpl->tpl_vars['field']->value['name'];?>
[t]" maxlength="<?php echo $_smarty_tpl->tpl_vars['field']->value['length'];?>
" placeholder="<?php echo $_smarty_tpl->tpl_vars['field']->value['range'][1];?>
"<?php if ($_smarty_tpl->tpl_vars['selected']->value) {?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['selected']->value['t'], ENT_QUOTES, 'UTF-8', true);?>
"<?php }?>>
                            </div>
                        </div>

                    <?php break;?><?php case iaField::TEXT:?>
                    <?php case iaField::TEXTAREA:?>
                        <input class="form-control" type="text" name="<?php echo $_smarty_tpl->tpl_vars['field']->value['name'];?>
"<?php if (is_string($_smarty_tpl->tpl_vars['selected']->value)) {?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['selected']->value, ENT_QUOTES, 'UTF-8', true);?>
"<?php }?>>

                    <?php break;?><?php case iaField::CURRENCY:?>
                        <div class="row">
                            <div class="col-md-7">
                                <label class="ia-form__label-mini"><?php echo iaSmarty::lang(array('key'=>'from'),$_smarty_tpl);?>
</label>
                                <div class="input-group">
                                    <div class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['core']->value['currency']['code'];?>
</div>
                                    <input class="form-control" type="text" name="<?php echo $_smarty_tpl->tpl_vars['field']->value['name'];?>
[f]" maxlength="<?php echo $_smarty_tpl->tpl_vars['field']->value['length'];?>
" placeholder="<?php echo $_smarty_tpl->tpl_vars['field']->value['range'][0];?>
"<?php if ($_smarty_tpl->tpl_vars['selected']->value) {?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['selected']->value['f'], ENT_QUOTES, 'UTF-8', true);?>
"<?php }?>>
                                </div>
                            </div>
                            <div class="col-md-5">
                                <label class="ia-form__label-mini"><?php echo iaSmarty::lang(array('key'=>'to'),$_smarty_tpl);?>
</label>
                                <input class="form-control" type="text" name="<?php echo $_smarty_tpl->tpl_vars['field']->value['name'];?>
[t]" maxlength="<?php echo $_smarty_tpl->tpl_vars['field']->value['length'];?>
" placeholder="<?php echo $_smarty_tpl->tpl_vars['field']->value['range'][1];?>
"<?php if ($_smarty_tpl->tpl_vars['selected']->value) {?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['selected']->value['t'], ENT_QUOTES, 'UTF-8', true);?>
"<?php }?>>
                            </div>
                        </div>

                    <?php break;?><?php case iaField::TREE:?>
                        <select class="form-control" name="<?php echo $_smarty_tpl->tpl_vars['field']->value['name'];?>
[]" multiple>
                            <option value="">&lt;<?php echo iaSmarty::lang(array('key'=>'any'),$_smarty_tpl);?>
&gt;</option>
                            <?php if (!empty($_smarty_tpl->tpl_vars['field']->value['values'])) {?>
                                <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['field']->value['values'],'selected'=>$_smarty_tpl->tpl_vars['selected']->value),$_smarty_tpl);?>

                            <?php }?>
                        </select>
                <?php }?>
            </div>
        <?php } ?>

        <?php echo smarty_function_ia_hooker(array('name'=>'smartyFrontFiltersAfterFields'),$_smarty_tpl);?>


        <?php if ($_smarty_tpl->tpl_vars['member']->value) {?>
            <div class="ia-form-filters__actions">
                <a href="<?php echo @constant('IA_URL');?>
search/my/" class="btn btn-xs btn-success" data-loading-text="<?php echo iaSmarty::lang(array('key'=>'loading'),$_smarty_tpl);?>
" id="js-cmd-open-searches"><?php echo iaSmarty::lang(array('key'=>'my_searches'),$_smarty_tpl);?>
</a>
                <div class="modal fade" id="js-modal-searches" tabindex="-1" role="dialog">
                    <div class="modal-dialog" role="document"><div class="modal-content"></div></div>
                </div>
                <?php if (isset($_smarty_tpl->tpl_vars['regular']->value)) {?>
                    <button type="button" class="btn btn-xs btn-default" id="js-cmd-save-search"><?php echo iaSmarty::lang(array('key'=>'save_this_search'),$_smarty_tpl);?>
</button>
                <?php }?>
                <button type="reset" class="btn btn-xs btn-default" id="js-cmd-reset-filters"><?php echo iaSmarty::lang(array('key'=>'reset_filters'),$_smarty_tpl);?>
</button>
            </div>
        <?php }?>
    </form>
    <?php echo iaSmarty::ia_add_media(array('files'=>'select2, js:intelli/intelli.search, js:frontend/search'),$_smarty_tpl);?>

<?php }?><?php }} ?>
