Example #1
0
    ?>
</h6>
                                <div><?php 
    _e('Min', 'modern');
    ?>
.</div>
                                <input type="text" id="priceMin" name="sPriceMin" value="<?php 
    echo osc_search_price_min();
    ?>
" size="6" maxlength="6" />
                                <div><?php 
    _e('Max', 'modern');
    ?>
.</div>
                                <input type="text" id="priceMax" name="sPriceMax" value="<?php 
    echo osc_search_price_max();
    ?>
" size="6" maxlength="6" />
                            </div>
                            <?php 
}
?>
                            <?php 
osc_get_non_empty_categories();
?>
                            <?php 
if (osc_count_categories()) {
    ?>
                                <div class="row checkboxes">
                                    <h6><?php 
    _e('Category', 'modern');
Example #2
0
                      <?php 
    _e('Min', OSCLASSWIZARDS_THEME_FOLDER);
    ?>
                      :</span>
                      <input class="input-text" type="text" id="priceMin" name="sPriceMin" value="<?php 
    echo osc_esc_html(osc_search_price_min());
    ?>
" size="6" maxlength="6" />
                    </li>
                    <li class="col-md-6"> <span>
                      <?php 
    _e('Max', OSCLASSWIZARDS_THEME_FOLDER);
    ?>
                      :</span>
                      <input class="input-text" type="text" id="priceMax" name="sPriceMax" value="<?php 
    echo osc_esc_html(osc_search_price_max());
    ?>
" size="6" maxlength="6" />
                    </li>
                  </ul>
                </div>
              </fieldset>
              <?php 
}
?>
              <div class="plugin-hooks">
                <?php 
if (osc_search_category_id()) {
    osc_run_hook('search_form', osc_search_category_id());
} else {
    osc_run_hook('search_form');
Example #3
0
function pop_search_filters()
{
    ?>
      <form id="filterForm" name="filterForm" action="<?php 
    echo osc_base_url(true);
    ?>
" method="get" class="nocsrf">
        <input type="hidden" name="page" value="search" />
        <input type="hidden" name="sOrder" value="<?php 
    echo osc_search_order();
    ?>
" />
        <input type="hidden" name="iOrderType" value="<?php 
    $allowedTypesForSorting = Search::getAllowedTypesForSorting();
    echo $allowedTypesForSorting[osc_search_order_type()];
    ?>
" />
        <?php 
    foreach (osc_search_user() as $userId) {
        ?>
        <input type="hidden" name="sUser[]" value="<?php 
        echo $userId;
        ?>
" />
        <?php 
    }
    ?>
        <fieldset class="form-group first">
            <h6>
                <?php 
    _e('Search text', 'pop');
    ?>
            </h6>
            <input class="input-text" type="text" name="sPattern" id="query" value="<?php 
    echo osc_esc_html(osc_search_pattern());
    ?>
" />
        </fieldset>
       
        <fieldset class="form-group">
            <h6>
                <?php 
    _e('Region', 'pop');
    ?>
            </h6>
            <div>
                <?php 
    $sCountries = osc_get_countries();
    $countryId = $sCountries[0]['pk_c_code'];
    $sRegions = osc_get_regions($countryId);
    ?>
               <?php 
    //pop_region_autocomplete($sRegions);
    ?>
                 <input type="hidden" id="countryId" name="countryId" value="<?php 
    echo $countryId;
    ?>
" />
                  <input class="input-text" type="text" id="region" name="sRegion" value="<?php 
    echo osc_esc_html(osc_search_region());
    ?>
" />
                <input type="hidden" id="regionId" name="regionId" />
            </div>
        </fieldset>
         <fieldset class="form-group">
            <h6>
                <?php 
    _e('City', 'pop');
    ?>
            </h6>
            <div>
                <input class="input-text" type="text" id="city" name="sCity" value="<?php 
    echo osc_esc_html(osc_search_city());
    ?>
" />
                 <input type="hidden" id="cityId" name="cityId" />
            </div>
        </fieldset>
        <?php 
    if (osc_images_enabled_at_items()) {
        ?>
        <fieldset class="form-group">
            <div class="checkbox">
                <input type="checkbox" name="bPic" id="withPicture" value="1" <?php 
        echo osc_search_has_pic() ? 'checked' : '';
        ?>
 />
                <label for="withPicture">
                    <?php 
        _e('Listings with pictures', 'pop');
        ?>
                </label>
            </div>
        </fieldset>
        <?php 
    }
    ?>
        <?php 
    if (osc_price_enabled_at_items()) {
        ?>
        <fieldset class="form-group">
            <div class="price-slice">
                <h6>
                    <?php 
        _e('Price', 'pop');
        ?>
                </h6>
                <ul class="row">
                    <li class="col-md-6"> <span>
                            <?php 
        _e('Min', 'pop');
        ?>
                   :</span>
                        <input class="input-text" type="text" id="priceMin" name="sPriceMin" value="<?php 
        echo osc_esc_html(osc_search_price_min());
        ?>
" size="6" maxlength="6" />
                    </li>
                    <li class="col-md-6"> <span>
                            <?php 
        _e('Max', 'pop');
        ?>
                   :</span>
                        <input class="input-text" type="text" id="priceMax" name="sPriceMax" value="<?php 
        echo osc_esc_html(osc_search_price_max());
        ?>
" size="6" maxlength="6" />
                    </li>
                </ul>
            </div>
        </fieldset>
        <?php 
    }
    ?>
          <div class="form-group plugin-hooks">
            <?php 
    if (osc_search_category_id()) {
        osc_run_hook('search_form', osc_search_category_id());
    } else {
        osc_run_hook('search_form');
    }
    ?>
        </div>
        <?php 
    $aCategories = osc_search_category();
    foreach ($aCategories as $cat_id) {
        ?>
        <input type="hidden" name="sCategory[]" value="<?php 
        echo osc_esc_html($cat_id);
        ?>
" />
        <?php 
    }
    ?>

        <div class="actions">
            <button type="submit" class="btn btn-primary">
                <?php 
    _e('Apply', 'pop');
    ?>
            </button>
            <a class="clear" onclick="formReset($('#filterForm'))">
            <i class="fa fa-times"></i><?php 
    echo _e('Clear filters', 'pop');
    ?>
</a>
        </div>
    </form>
<?php 
}