]]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); $brand_id=$uri_segments[2]; $brand_name = $uri_segments[4]; if(is_numeric($brand_id) AND !empty($brand_id)) { $brand_condition="`id`=".$brand_id; $brand_query=$sel_obj->display_rcd("all_brands",$brand_condition); if(is_array($brand_query) AND !empty($brand_query)) { foreach($brand_query as $brand_data) { } } $cat_condition="`b_id`=".$brand_id; // @$page=$_GET["page"]; if (isset($_GET['page'])) { $page=$uri_segments[3]; }else{ $page=1; } if($page=="" || $page=="1") { $page1=0; } else { $page1=($page*12)-12; } $record_per_page=12; //$get_record=$sel_obj->all_count_row("multiple_category", $cat_condition); $get_record_q=$sel_obj->uniquevalue("p_id","multiple_category",$cat_condition); //print_r($get_record_q); $get_record = count($get_record_q); $get_round_num=($get_record/$record_per_page); $get_round_num=ceil($get_round_num); /*----- Back Url ----*/ if ($_SERVER['HTTP_REFERER']) { $back_url = $_SERVER['HTTP_REFERER']; } else{ $back_url = "#"; } ?> <!-- Header End --> <!-- Breadcrumb Area start --> <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 $brand_data['name']?> Store</h1> <ul class="breadcrumb-links"> <li><a href="index.php">HOME</a></li> <li><a href="<?php echo $back_url; ?>">Back</a></li> <li><?php echo $brand_data['name']?> Store</li> </ul> </div> </div> </div> </div> </section> <div class="shop-category-area "> <div class="container-fluid proratig"> <div class="row"> <div class="col-lg-10 col-md-10 " style="margin:auto;"> <div class="shop-bottom-area mt-35"> <!-- Shop Tab Content Start --> <div class="tab-content jump"> <!-- Tab One Start --> <div id="shop-1" class="tab-pane active"> <div class="row"> <?php $cat_condition="`b_id`=".$brand_id." LIMIT $page1 , $record_per_page"; //$cat_query=$sel_obj->display_rcd("multiple_category",$cat_condition); $cat_query=$sel_obj->uniquevalue("p_id, cat_id","multiple_category",$cat_condition); if(is_array($cat_query) AND !empty($cat_query)) { if($cat_query>0) { foreach($cat_query as $cat_data) { $p_condition="`p_id`=".$cat_data['p_id']; $p_query=$sel_obj->display_rcd("product",$p_condition); if(is_array($p_query) AND !empty($p_query)) { foreach($p_query as $p_data) { ?> <div class="col-xl-4 col-md-4 col-sm-6"> <article class="list-product"> <div class="img-block"> <a href="<?=BASE_URL?>product-details/<?php echo $p_data['p_id'];?>/<?=generateSlug($p_data['p_name']);?>" class="thumbnail"> <img class="first-img" src="<?=BASE_URL?>admin/upload/<?php echo $p_data['p_img'];?>" alt="Jewellery Store Image" /> </a> </div> <div class="product-decs"> <h2> <a href="<?=BASE_URL?>product-details/<?php echo $p_data['p_id'];?>/<?=generateSlug($p_data['p_name']);?>" class="product-link"><?php echo $p_data['p_name'];?></a> </h2> <?php if($p_data['price']!='') { ?> <div class="pricing-meta"> <ul> <?php if($p_data['d_price']!='') { ?> <li><small>M.R.P.</small></li> <!--<li class="old-price"><?php echo "₹".$p_data['price'];?></li>--> <?php if($p_data['d_price']<1 || intval($p_data['quan_available']<1)){ ?> <li><b class="text-danger ml-4">Out of stock</b></li> <?php }else{ ?> <li class="current-price"><b><?php echo "₹".$p_data['d_price'];?></b></li> <?php } ?> <?php } else { ?> <li class="current-price"><b><?php echo "₹".$p_data['price'];?></b></li> <?php } if($p_data['d_price']>0) { ?> <!--<li class="discount-price"><?php echo $sel_obj->discount($p_data['price'],$p_data['d_price']);?></li>--> <?php } ?> </ul> </div> <hr> <ul> <li class="cart"> <?php if($p_data['d_price']<1 || intval($p_data['quan_available']<1)){ ?> <a class="btn btnadct disabled"> + Add To Cart</a></a> <?php }else{ ?> <a class="shop_btns single_add_to_cart_btn" href="javascript:;" data-p_code="<?php echo $p_data['p_code'];?>" data-p_img="<?php echo $p_data['p_img'];?>" data-product_id="<?php echo $p_data['p_id'];?>" data-gst="<?php echo $gst=str_replace("%"," ",$p_data['gst']);?>" data-temp_id="<?php echo $temp_session_id;?>" data-r_p="<?php echo $p_data['price'];?>" data-o_p="<?php echo $p_data['d_price'];?>" data-qtn="1" data-p_name="<?php echo $p_data['p_name'];?>" data-shipping_price="<?php echo $p_data['shipping_price'];?>" data-packaging_price="<?php echo $p_data['packaging_price'];?>">ADD TO CART </a> <?php } ?> </li> </ul> <?php } ?> </div> </article> </div> <?php } } } } else { ?> <div class="col-xl-12 col-md-12 col-sm-6"> <img src="<?=BASE_URL?>assets/images/noproductfound.jpg" alt="No Product Image"> </div> <?php } } ?> </div> </div> </div> <!-- Shop Tab Content End --> <!-- Pagination Area Start --> <div class="pro-pagination-style text-center"> <ul> <?php // echo $get_round_num; if ($page>1) { $pageID = $page-1; echo "<li><a href='".BASE_URL."store/$brand_id/$pageID/$brand_name' class=''>PREV</a></li>"; } for ($b=1; $b<=3; $b++) { if($b==$page){ $active = 'active'; }else{ $active = ''; } if ($b<=$get_round_num) { echo "<li><a href='".BASE_URL."store/$brand_id/$b/$brand_name' class=".$active.">".$b."</a></li>"; } } if ($page>3) { echo ".....<li><a href='".BASE_URL."store/$brand_id/$page/$brand_name' class='active'>".$page."</a></li>"; } if ($get_round_num > $page) { $pageId = $page+1; echo "<li><a href='".BASE_URL."store/$brand_id/$pageId/$brand_name' class=''>NEXT</a></li>"; } ?> </ul> </div> <!-- Pagination Area End --> </div> <!-- Shop Bottom Area End --> </div> </div> </div> </div> <!-- Shop Category Area End --> <!-- Footer Area start --> <?php include_once("footer.php");?> <?php } else { url("index.php"); } ?>