[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: product.php
<?php include('header.php');$cate=base64_decode($_REQUEST['cate']);$scate=base64_decode($_REQUEST['scate']); ?> <!-- // Header Inculide --> <!-- Inner-Banner --> <div class="inner-banner"> <img src="images/banner2.jpg" alt="" class="inner-banner-img"> <div class="container"> <ul> <li><a href="product.php" class="active">Product</a></li> | <li><a href="index.php" class="">Home</a></li> </ul> </div> </div> <!-- // Inner-Banner --> <!-- Inner-Product --> <div class="product-on"> <!-- tittle heading --> <div class="inner-title"> <h2>Men's Topwear</h2> <h3>Deals of the Day</h3> </div> <div class="row" style=" background: #f9f9f9;"> <!-- All Filter --> <div class="col-md-3 col-sm-4 col-xs-6"> <div class="list-group-block"> <div class="list-group"> <img src="images/copun-bg.png" alt=""> </div> <!--categories--> <div class="list-group Price-Department"> <h3 class="hed-pr">CATEGORIES</h3> <div class="col twelvecol"> <ul class="categories-ul-box"> <?php $table1='category'; $stmt=$show->readwithdata_clause('sub_category','category',$cate,'limit 5'); $num=$stmt->rowCount(); if($num>0){ while($row=$stmt->fetch(PDO::FETCH_ASSOC)){ echo "<li>> <a href='product.php?cate=".base64_encode($row['category'])."&scate=".base64_encode($row['sub_category'])."'>".$row['sub_category']."</a></li>"; } } ?> </ul> <div class="crm-subhead" id="expander"> <span class="Show_Categori"><i class="fa fa-chevron-down"></i> Show More</span> </div> <div id="ex-content" class="row"> <ul class="categories-ul-box Show_Categori_box"> <?php $table1='category'; $stmt=$show->readwithdata('sub_category','category',$cate); $num=$stmt->rowCount(); if($num>0){ while($row=$stmt->fetch(PDO::FETCH_ASSOC)){ echo "<li>> <a href='product.php?cate=".base64_encode($row['category'])."&scate=".base64_encode($row['sub_category'])."'>".$row['sub_category']."</a></li>"; } } ?> </ul> </div> </div> </div> <!--Price Range--> <div class="Price-Range"> <h3 class="hed-pr">Price Range</h3> <input type="hidden" id="hidden_minimum_price" class="common_selector1" value="100" /> <input type="hidden" id="hidden_maximum_price" class="common_selector1" value="80000" /> <p id="price_show">100 - 80000</p> <div id="price_range"></div> </div> <!--Product Color--> <div class="list-group Price-Department"> <h3 class="hed-pr">Product Color</h3> <div class="col twelvecol"> <ul class="categories-ul-box"> <?php $stmt=$show->readAll_clause('color','limit 3'); $num=$stmt->rowCount(); if($num>0){ while($row=$stmt->fetch(PDO::FETCH_ASSOC)){ echo "<li> <input id='".$row['color']."' name='color[]' class='color common_selector1' type='checkbox' value='".$row['color']."' /> <label for='".$row['color']."' class='categories_filer_box'> ".$row['color']."</label></li>"; } } ?> </ul> <div class="crm-subhead" id="expandercolor"> <span class="Show_Categori"><i class="fa fa-chevron-down"></i> Show Color</span> </div> <div id="ex-content" class="row"> <ul class="categories-ul-box Show_Categori_box"> <?php $stmt=$show->readAll('color'); $num=$stmt->rowCount(); if($num>0){ while($row=$stmt->fetch(PDO::FETCH_ASSOC)){ echo "<li> <input id='".$row['color']."' name='color[]' class='color common_selector1' type='checkbox' value='".$row['color']."' /> <label for='".$row['color']."' class='categories_filer_box'> ".$row['color']."</label></li>"; } } ?> </ul> </div> </div> </div> <!--Product Discount--> <div class="list-group Price-Department"> <h3 class="hed-pr">Discount</h3> <select class="form-control common_selector1" name="discount" id="discount"> <option value="">Discount % </option> <option value="0-15">0-15%</option> <option value="15-20">15%-20%</option> <option value="20-30">20%-30%</option> <option value="30-40">30%-40%</option> <option value="40-50">40%-50%</option> <option value="50-100">>50%</option> </select> </div> <!--Size--> <div class="list-group Price-Department"> <h3 class="hed-pr">Size</h3> <label><input type="checkbox" name="size[]" class="size common_selector1" value="XS"> XS</label> <label><input type="checkbox" name="size[]" class="size common_selector1" value="S"> S</label> <label><input type="checkbox" name="size[]" class="size common_selector1" value="M"> M</label> <label><input type="checkbox" name="size[]" class="size common_selector1" value="L"> L</label> <label><input type="checkbox" name="size[]" class="size common_selector1" value="XL"> XL</label> <label><input type="checkbox" name="size[]" class="size common_selector1" value="XXL"> XXL</label> <label><input type="checkbox" name="size[]" class="size common_selector1" value="XXXL"> XXXL</label> <label><input type="checkbox" name="size[]" class="size common_selector1" value="Free"> Free </label> </div> <!--Gender--> <div class="list-group Price-Department"> <h3 class="hed-pr">Gender</h3> <select name="gender" id="gender" class="form-control common_selector1" required> <option value="">Gender</option> <option value="Male">Male</option> <option value="Female">Female</option> <option value="Unisex">Unisex</option> </select> </div> <!--Fabric--> <div class="list-group Price-Department"> <h3 class="hed-pr">Fabric</h3> <select name="fabric" id="fabric" class="form-control common_selector1" required> <option value="">Fabric</option> <?php $stmt=$show->readAll('fabric'); $num=$stmt->rowCount(); if($num>0){ while($row=$stmt->fetch(PDO::FETCH_ASSOC)){ echo "<option value='".$row['fabric']."'";echo ">".$row['fabric']."</option>"; } } ?> </select> </div> <!--Type--> <div class="list-group Price-Department"> <h3 class="hed-pr">Type</h3> <div id="show"></div> <input type="hidden" id="cate"> <div id="hide"> <select id="type" class="form-control common_selector1" style=""> <option value="">Type</option> <?php $stmt=$show->readAll('type'); $num=$stmt->rowCount(); if($num>0){ while($row=$stmt->fetch(PDO::FETCH_ASSOC)){ echo "<option value='".$row['type']."'";echo ">".$row['type']."</option>"; } } ?> </select> </div> </div> </div> </div> <!-- All Product --> <div class="col-md-9 col-sm-8 col-xs-6 filter_data"></div> </div> </div> <script> $(document).ready(function(){ filter_data(); function filter_data() { $('.filter_data').html('<div id="loading" style="" ></div>'); var action = 'fetch_data'; var category = '<?=$cate?>'; var price = $('#price').val(); var sub_category = '<?=$scate?>'; var type = $('#type').val(); var fabric = $('#fabric').val(); var gender = $('#gender').val(); var discount = $('#discount').val(); var price = $('#price').val(); var size=get_filter('size'); var color=get_filter('color'); //alert(color); var minimum_price = $('#hidden_minimum_price').val(); var maximum_price = $('#hidden_maximum_price').val(); // alert(maximum_price); $.ajax({ url:"fetch_data.php", method:"POST", data:{action:action,category:category,sub_category:sub_category,price:price,type:type,discount:discount,fabric:fabric,gender:gender,size:size,color:color,minimum_price:minimum_price,maximum_price:maximum_price}, success:function(data){ // alert(data); $('.filter_data').html(data); } }); } function get_filter(class_name) { var filter = []; $('.'+class_name+':checked').each(function(){ filter.push($(this).val()); }); return filter; } $('.common_selector1').change(function(){ filter_data(); }); $('#price_range').slider({ range:true, min:10, max:10000, values:[0, 20000], step:50, stop:function(event, ui) { $('.price_show').html(ui.values[0] + ' - ' + ui.values[1]); $('#hidden_minimum_price').val(ui.values[0]); $('#hidden_maximum_price').val(ui.values[1]); filter_data(); } }); }); </script> <style type="text/css"> #price_show{color: #f00;color: #4b6e74; font-family: "Abel-Regular"; padding: 0 0 0 5px; margin: 0 0 8px 0; font-weight: bold; font-size: 18px; } .ui-widget-header { border: 1px solid #dddddd; background: #ff7e01;} .ui-state-default, .ui-widget-content .ui-state-default{border: 1px solid #fff; background: #4b6e74; font-weight: normal; color: #000;} .ui-widget.ui-widget-content { border: 1px solid #c5c5c5; width: 90%; margin: 5px auto 0; } </style> <!--Show css js & Color css JS--> <style> #expander { cursor: pointer; margin-bottom: 10px; } #expandercolor { cursor: pointer; margin-bottom: 10px; } #ex-content { display: none; } </style> <script> jQuery('#expander').on('click', function() { jQuery(this).siblings().slideToggle('fast'); // jQuery(this).find('i').toggleClass('fa-plus fa-minus'); jQuery(this).find('i').toggleClass('fa-chevron-down fa-chevron-up'); }); </script> <script> jQuery('#expandercolor').on('click', function() { jQuery(this).siblings().slideToggle('fast'); // jQuery(this).find('i').toggleClass('fa-plus fa-minus'); jQuery(this).find('i').toggleClass('fa-chevron-down fa-chevron-up'); }); </script> <!-- Fotter Inculide --> <?php include("footer.php"); ?> <!-- // Fotter Inculide -->
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 691.99 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619