コード例 #1
0
    <div id="filters_shown">
      <div class="block">
        <h2>
          <?php 
_e('Advanced Search', OSCLASSWIZARDS_THEME_FOLDER);
?>
        </h2>
        <section>
          <div class="filters">
            <form 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 
コード例 #2
0
ファイル: search.php プロジェクト: jhalendra/classmandu
                            }
                        });
                        //$( "#lowAmount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) +
                            //" - $" + $( "#slider-range" ).slider( "values", 1 ) );
                    });
                    </script>

                    
                    
                    <form role="form" action="<?php 
echo osc_base_url(true);
?>
" method="get" onsubmit="return doSearch()" class="nocsrf">
                        <input type="hidden" name="page" value="search" />
                        <input type="hidden" name="sOrder" value="<?php 
echo osc_esc_html(osc_search_order());
?>
" />
                        <input type="hidden" name="iOrderType" value="<?php 
$allowedTypesForSorting = Search::getAllowedTypesForSorting();
echo osc_esc_html($allowedTypesForSorting[osc_search_order_type()]);
?>
" />
                        <div class="form-group">
                            <input class="form-control" type="text" name="sPattern"  id="query" value="<?php 
echo osc_esc_html(osc_search_pattern());
?>
" />
                        </div>
                        <p>
                            <label for="amount">Price range:</label>
コード例 #3
0
</h1>
    <p class="filters">
        <?php 
    _e('Sort by', 'modern');
    ?>
:
        <?php 
    $i = 0;
    ?>
        <?php 
    $orders = osc_list_orders();
    foreach ($orders as $label => $params) {
        $orderType = $params['iOrderType'] == 'asc' ? '0' : '1';
        ?>
            <?php 
        if (osc_search_order() == $params['sOrder'] && osc_search_order_type() == $orderType) {
            ?>
                <a class="current" href="<?php 
            echo osc_update_search_url($params);
            ?>
"><?php 
            echo $label;
            ?>
</a>
            <?php 
        } else {
            ?>
                <a href="<?php 
            echo osc_update_search_url($params);
            ?>
"><?php 
コード例 #4
0
ファイル: functions.php プロジェクト: oanav/closetshare
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 
}