]]jkjjgdjffksdkdxdsghfghdfghfgdfsdsdfsdfsfdsbcxvxcbccwewqeqwewqskfgj
במ12[cxvbcxvbxcvbcxvcxvbcvxcvbsdfsdfsdfsdfsdfsdfxcvbxcvxbbxqwqewqewv;'
/
home
/
u506006416
/
domains
/
crystalmiracle.co.in
/
public_html
/
Upload FileeE
HOME
<?php include_once("header.php"); $uri_path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); $uri_segments = explode('/', $uri_path); $cat_id=$uri_segments[2]; if (isset($uri_segments[3])) { $page=$uri_segments[3]; }else{ $page=1; } if(is_numeric($cat_id) AND !empty($cat_id)) { $cat_condition="`status`=1 AND `cat_id`=".$cat_id; $cat_query=$sel_obj->display_rcd("category",$cat_condition); if(is_array($cat_query) AND !empty($cat_query)) { foreach($cat_query as $cat_data) { } } /*----- Back Url ----*/ if ($_SERVER['HTTP_REFERER']) { $back_url = $_SERVER['HTTP_REFERER']; } else{ $back_url = "#"; } ?> <section class="breadcrumb-area"> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="breadcrumb-content"> <h1 class="breadcrumb-hrading"><?php echo $cat_data['name'];?></h1> <ul class="breadcrumb-links"> <li><a href="<?=BASE_URL?>index.php">Home</a></li> <li><a href="<?php echo $back_url; ?>">Back</a></li> <li><?php echo $cat_data['name'];?></li> </ul> </div> </div> </div> </div> </section> <input type="hidden" id="cat_id" value="<?php echo $cat_id;?>"> <input type="hidden" id="page" value="<?php echo $page;?>"> <input type="hidden" id="temp_id" value="<?php echo $temp_session_id;?>"> <div class="alert"></div> <div class="shop-category-area"> <div class="container"> <div class="row"> <div class="col-lg-10 order-lg-last col-md-12 order-md-first"> <div class="shop-bottom-area mt-35"> <div class="tab-content jump catpdad filter_data"> </div> </div> </div> <div class="col-lg-2 order-lg-first col-md-12 order-md-last mb-res-md-60px mb-res-sm-60px"> <div class="left-sidebar"> <div class="sidebar-heading"> <div class="main-heading"> <h2>Filter By</h2> </div> </div> <div class="sidebar-widget mt-30"> <h4 class="pro-sidebar-title">Sub Categories</h4> <div class="sidebar-widget-list"> <ul> <?php $conditionCat = " cat_id IN(SELECT cat_id FROM category WHERE parent_id=$cat_id) and status=1"; $allcategory=$sel_obj->display_rcd('category',$conditionCat); if(is_array($allcategory) || !empty($allcategory)) { foreach ($allcategory as $all_cat_data) { ?> <li> <div class="sidebar-widget-list-left"> <label style="cursor: pointer;"><input type="checkbox" value="<?php echo $all_cat_data['cat_id'];?>" class="common_selector brand" /> <?php echo $all_cat_data['name'];?></label> </div> </li> <?php } } ?> </ul> </div> <script src="https://owlcarousel2.github.io/OwlCarousel2/assets/owlcarousel/owl.carousel.js"></script> <!----------HTML code starts here-------> <?php $ofr_cat_condition = "`status`= 1"; $ofr_cat_query = $sel_obj->display_rcd("offer_category", $ofr_cat_condition); if (is_array($ofr_cat_query) and !empty($ofr_cat_query)) { ?> <section> <div class="mt-4"> <!-- <div class="container-fluid"> --> <?php foreach ($ofr_cat_query as $ofr_cat_data) { $img_link = "admin/upload/offer_category/" . $ofr_cat_data["image"]; ?> <div class="mb-2" style="box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;"> <a href="<?=BASE_URL?>category/<?php echo $ofr_cat_data['category_id'];?>/1/<?php echo strtolower(str_replace(" ","-",$ofr_cat_data['title']));?>"> <img src="<?=BASE_URL?><?php echo $img_link; ?>" class="img-fluid" alt="cat-img"> </a> </div> <?php } ?> <!-- </div> --> </div> </section> <?php } ?> <script type="text/javascript"> var owl = $('.owl-carousel'); owl.owlCarousel({ loop:true, margin:10, autoplay:true, autoplayTimeout:3000, autoplayHoverPause:true, dots: false, responsive:{ 0:{ items:1 }, 600:{ items:1 }, 1000:{ items:1 } } }); </script> <!-- ================================= --> </div> </div> </div> <!-- Sidebar Area End --> </div> </div> </div> <style> #loading { text-align:center; background: url("<?=BASE_URL?>assets/images/loader.gif") no-repeat center; height: 150px; } </style> <!-- Shop Category Area End --> <!-- Footer Area start --> <?php include_once("footer.php");?> <?php } else { url("index.php"); } ?> <script type="text/javascript"> var catName = "<?=strtolower(str_replace(" ","-",$cat_data['name']));?>"; $(document).ready(function(){ // debugger; filter_data(); function filter_data() { $('.filter_data').html('<div id="loading" style="" ></div>'); var action = 'fetch_data'; var brand = get_filter('brand'); var cat_id= $("#cat_id").val(); var page= $("#page").val(); var temp_id= $("#temp_id").val(); $.ajax({ url:"<?=BASE_URL?>fetch_data.php", method:"POST", data:{action:action, brand:brand,cat_id:cat_id,page:page,temp_id:temp_id,'catName':catName}, success:function(data){ $('.filter_data').html(data); } }); } function get_filter(class_name) { var filter = []; $('.'+class_name+':checked').each(function(){ filter.push($(this).val()); }); return filter; } $('.common_selector').click(function(){ $('.filter_data').html('<div id="loading" style="" ></div>'); var action = 'fetch_data'; var brand = get_filter('brand'); var cat_id= $("#cat_id").val(); var page= $("#page").val(); var temp_id= $("#temp_id").val(); $.ajax({ url:"<?=BASE_URL?>fetch_data.php", method:"POST", data:{action:action, brand:brand,cat_id:cat_id,temp_id:temp_id,'catName':catName}, success:function(data){ $('.filter_data').html(data); } }); }); }); </script>