]]jkjjgdjffksdkdxdsghfghdfghfgdfsdsdfsdfsfdsbcxvxcbccwewqeqwewqskfgj
במ12[cxvbcxvbxcvbcxvcxvbcvxcvbsdfsdfsdfsdfsdfsdfxcvbxcvxbbxqwqewqewv;'
/
home
/
u506006416
/
domains
/
crystalmiracle.co.in
/
public_html
/
app
/
Upload FileeE
HOME
<?php include "header.php"; ?> <?php if (isset($_POST["guest_submit"])) { $guest_data = [ "mobile" => $_POST["mobile"], "email" => $_POST["email"], ]; $condition = " mobile = '" . $guest_data["mobile"] . "' AND email ='" . $guest_data["email"] . "'"; $query = $sel_obj->display_rcd("guest_contact", $condition); if (empty($query)) { $guest_data["created_at"] = date("Y-m-d H:i:s"); $insert_id = $sel_obj->insert("guest_contact", $guest_data); } $success_guest = 1; } $condition_quote = "`id`=1"; $get_quote = $sel_obj->display_rcd("tbl_quotes", $condition_quote); if (is_array($get_quote) || !empty($get_quote)) { foreach ($get_quote as $get_quotedata) { } } ?> <!-- Header End --> <!-- Slider Arae Start --> <div class="slider-area"> <div class="slider-active-3 owl-carousel slider-hm11 owl-dot-style desktopbanner"> <?php $banner_condition = "`status`= 1"; $banner_query = $sel_obj->display_rcd("banner", $banner_condition); if (is_array($banner_query) and !empty($banner_query)) { foreach ($banner_query as $banner_data) { ?> <div class="slider-height-11 d-flex align-items-start justify-content-start bg-img" style="background-image: url(admin/upload/<?php echo $banner_data[ "image" ]; ?>);"> </div> <?php } } ?> </div> <div id="carouselExampleControls" class="carousel slide mobile_banner" data-ride="carousel"> <div class="carousel-inner"> <?php $mbanner_condition = "`status`= 1"; $mbanner_query = $sel_obj->display_rcd("mobile_5", $mbanner_condition); if (is_array($mbanner_query) and !empty($mbanner_query)) { $a = 1; foreach ($mbanner_query as $m_banner_data) { $img_link = "admin/upload/" . $m_banner_data["image"]; ?> <div class="carousel-item <?php if ($a == 1) { ?>active<?php } $a + 1; ?>"> <img src="<?php echo $img_link; ?>" class="d-block w-100" alt="..."> </div> <?php $a++; } } ?> </div> <a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div> </div> <div class="container-fluid"> <div class="row"> <div class="col-lg-8 col-xl-8 col-md-8 col-sm-6 _marqcenter"> <div class="alert alert-danger alert-dismissible" role="alert" style="margin-top: 16px;"> <button type="button" onclick="this.parentNode.parentNode.removeChild(this.parentNode);" class="close" data-dismiss="alert"><span aria-hidden="true" style="display: none;">×</span><span class="sr-only">Close</span></button> <strong><i class="fa fa-cart-arrow-down"></i> Welcome</strong> <marquee> <p style="font-family: Impact; font-size: 18pt"><?php echo $get_quotedata['quote']; ?></p> </marquee> </div> </div> <div class="col-lg-4 col-xl-4 col-md-4 col-sm-6 _mobilehead"> <img src="assets/images/marqimg.png" class="img-fluid" alt="" style="margin-left:15px;"> </div> </div> </div> <div class="banner-3-area _wrapper"> <div class="container"> <div class="section-title mt-res-sx-30px mt-res-md-30px text-center"> <h2>Shop By Category</h2> </div> <div class="row"> <?php $cat_condition = "`status`= 1 ORDER by `short_order` DESC LIMIT 15"; $cat_query = $sel_obj->display_rcd("category", $cat_condition); if (is_array($cat_query) and !empty($cat_query)) { foreach ($cat_query as $cat_data) { ?> <div class="custom_width mb-res-xs-30 mb-res-sm-30 mb-10"> <div class="banner-wrapper"> <a href="category.php?cat_id=<?php echo $cat_data[ "cat_id" ]; ?>"><img src="admin/upload/<?php echo $cat_data[ "image" ]; ?>" alt="" /></a> </div> <span class="img-caption text-center"> <?php echo $cat_data["name"]; ?> </span> </div> <?php } } ?> </div> </div> </div> <?php $condition = "`status`= 1 AND `s_home` = 1 ORDER BY `short_order` DESC"; $query = $sel_obj->display_rcd("category", $condition); if (is_array($query) || !empty($query)) { foreach ($query as $data) { $cat_banner_1 = $data["cat_banner_1"]; $cat_banner_2 = $data["cat_banner_2"]; $cat_link_1 = $data["cat_link_1"]; $cat_link_2 = $data["cat_link_2"]; ?> <section class="categorie-area mb-60px mt-30 _wrapper "> <div class="container"> <div class="row"> <div class="col-md-12 text-center"> <!-- Section Title --> <div class="section-title mt-res-sx-30px mt-res-md-30px"> <h2><?php echo $data["name"]; ?></h2> <p class="pbrands">Popular Brands</p> </div> <!-- Section Title --> </div> </div> <!-- Category Slider Start --> <div class="category-slider owl-carousel owl-nav-style"> <!-- Single item --> <?php $condition = "`cat_id`=" . $data["cat_id"]; $query = $sel_obj->display_rcd("multi_order_cat", $condition); if (is_array($query) || !empty($query)) { foreach ($query as $data1) { } } $condition = "`cat_id`=" . $data1["cat_id"]; $query = $sel_obj->display_rcd("multi_order_cat", $condition); if (is_array($query) || !empty($query)) { foreach ($query as $data2) { $condition = "`id`=" . $data2["o_id"] . " AND `s_home`= 1"; $query = $sel_obj->display_rcd("all_brands", $condition); if (is_array($query) || !empty($query)) { foreach ($query as $data3) { ?> <div class="category-item"> <div class="category-list mb-30px"> <div class="category-thumb"> <a href="#"> <img class="customimgsize" src="admin/upload/<?php echo $data3[ "image" ]; ?>" alt="" /> </a> </div> <div class="desc-listcategoreis"> <div class="name_categories"> <h4><?php echo substr($data3["name"], 0, 30); ?></h4> </div> <a class="btn btn-primary" style="color:#fff;" href="shop_brand.php?brand_id=<?php echo $data3[ "id" ]; ?>&&cat_id=<?php echo $data2[ "cat_id" ]; ?>"> Shop Now <i class="ion-android-arrow-dropright-circle"></i></a> </div> </div> </div> <?php } } } } ?> </div> </div> <hr> <div class="recent-product-slider owl-carousel owl-nav-style"> <?php $condition = "`cat_id`=" . $data1["cat_id"] . " LIMIT 10"; $query = $sel_obj->uniquevalue("p_id", "multiple_category", $condition); if (is_array($query) || !empty($query)) { foreach ($query as $mcat_data) { $mcat_condition = "`status`= 1 AND `p_id`=" . $mcat_data["p_id"]; $mcat_query = $sel_obj->display_rcd("product", $mcat_condition); if (is_array($mcat_query) || !empty($mcat_query)) { foreach ($mcat_query as $p_data) { ?> <div class="product-inner-item"> <!-- Single Item --> <article class="list-product mb-30px"> <div class="img-block"> <a href="product_details.php?p_id=<?php echo $p_data[ "p_id" ]; ?>" class="thumbnail"> <?php if ($p_data["p_img"] != "") { ?> <img class="first-img" src="admin/upload/<?php echo $p_data[ "p_img" ]; ?>" alt="" /> <?php } else { ?> <img class="first-img" src="assets/images/noimg_found.jpg" alt="" /> <?php } ?> </a> </div> <ul class="product-flag"> <!-- <li class="new">New</li> --> </ul> <div class="product-decs"> <h2><a href="product_details.php?p_id=<?php echo $p_data[ "p_id" ]; ?>" class="product-link"> <?php echo substr($p_data["p_name"], 0, 22); ?> </a> </h2> <?php if ($p_data["price"] != "") { ?> <div class="pricing-meta"> <ul> <li><small>M.R.P.</small></li> <li class="old-price"><b>Rs.<?php echo $p_data[ "price" ]; ?></b></li> <li class="current-price"><b>Rs.<?php echo $p_data[ "d_price" ]; ?></b></li> <li class="discount-price"><?php echo "save " . $sel_obj->discount( $p_data["price"], $p_data["d_price"] ); ?></li> </ul> <span class="current-price">Incl. GST <?php $finalamount = $sel_obj->get_percentage( $p_data["d_price"], $p_data["gst"] ); echo "Rs." . number_format( round( $total_amount = $finalamount + $p_data["d_price"] ), "2" ); ?></span><br> <a class="btn btn-primary btn-xs" style="color:#fff;" href="product_details.php?p_id=<?php echo $p_data[ "p_id" ]; ?>"> Shop Now <i class="ion-android-arrow-dropright-circle"></i></a> </div> <?php } ?> </div> </article> </div> <?php } } } } ?> </div> </section> <?php } } ?> <div class="banner-3-area"> <div class="container"> <div class="row"> <div class="col-lg-12 col-md-6 col-sm-12 col-xs-12 mb-res-xs-30 mb-res-sm-30"> <div class="banner-wrapper"> <a href="#"><img src="assets/images/bg-parallax.jpg" alt="" /></a> </div> </div> </div> </div> </div> <br> <br> <section class="recent-add-area"> <div class="container"> <div class="row"> <div class="col-md-12"> <!-- Section Title --> <div class="section-title"> <h2>New Arrivals</h2> <p>Add new products to weekly line up</p> </div> <!-- Section Title --> </div> </div> <!-- Recent Product slider Start --> <div class="recent-product-slider owl-carousel owl-nav-style"> <?php $condition = "`status`= 1 ORDER BY `short_order` ASC LIMIT 10"; $query = $sel_obj->display_rcd("product", $condition); if (is_array($query) || !empty($query)) { foreach ($query as $p_data) { ?> <div class="product-inner-item"> <!-- Single Item --> <article class="list-product mb-30px"> <div class="img-block"> <a href="product_details.php?p_id=<?php echo $p_data[ "p_id" ]; ?>" class="thumbnail"> <?php if ($p_data["p_img"] != "") { ?> <img class="first-img" src="admin/upload/<?php echo $p_data[ "p_img" ]; ?>" alt="" /> <?php } else { ?> <img class="first-img" src="assets/images/noimg_found.jpg" alt="" /> <?php } ?> </a> </div> <ul class="product-flag"> <li class="new">New</li> </ul> <div class="product-decs"> <h2><a href="product_details.php?p_id=<?php echo $p_data[ "p_id" ]; ?>" class="product-link"> <?php echo substr($p_data["p_name"], 0, 22); ?> </a> </h2> <?php if ($p_data["price"] != "") { ?> <div class="pricing-meta"> <ul> <li><small>M.R.P.</small></li> <li class="old-price">Rs.<?php echo $p_data[ "price" ]; ?></li> <li class="current-price">Rs.<b><?php echo $p_data[ "d_price" ]; ?></b></li> <li class="discount-price"><?php echo "save " . $sel_obj->discount( $p_data["price"], $p_data["d_price"] ); ?></li> </ul> <span class="current-price">Incl. GST <?php $finalamount = $sel_obj->get_percentage( $p_data["d_price"], $p_data["gst"] ); echo "Rs." . number_format( round( $total_amount = $finalamount + $p_data["d_price"] ), "2" ); ?></span><br> </div> <?php } ?> </div> </article> </div> <?php } } ?> </div> </div> </section> <section class="static-area"> <div class="container"> <div class="static-area-wrap"> <div class="row"> <div class="col-lg-3 col-xs-12 col-md-6 col-sm-6"> <div class="single-static pb-res-md-0 pb-res-sm-0 pb-res-xs-0"> <img src="assets/images/icons/static-icons-1.png" alt="" class="img-responsive" /> <div class="single-static-meta"> <h4>Free Shipping</h4> <p>On all orders over Rs2000/-</p> </div> </div> </div> <div class="col-lg-3 col-xs-12 col-md-6 col-sm-6"> <div class="single-static pb-res-md-0 pb-res-sm-0 pb-res-xs-0 pt-res-xs-20"> <img src="assets/images/icons/static-icons-2.png" alt="" class="img-responsive" /> <div class="single-static-meta"> <h4>Free Returns</h4> <p>Returns are free within 9 days</p> </div> </div> </div> <div class="col-lg-3 col-xs-12 col-md-6 col-sm-6"> <div class="single-static pt-res-md-30 pb-res-sm-30 pb-res-xs-0 pt-res-xs-20"> <img src="assets/images/icons/static-icons-3.png" alt="" class="img-responsive" /> <div class="single-static-meta"> <h4>100% Payment Secure</h4> <p>Your payment are safe with us.</p> </div> </div> </div> <div class="col-lg-3 col-xs-12 col-md-6 col-sm-6"> <div class="single-static pt-res-md-30 pb-res-sm-30 pt-res-xs-20"> <img src="assets/images/icons/static-icons-4.png" alt="" class="img-responsive" /> <div class="single-static-meta"> <h4>Support 24/7</h4> <p>Contact us 24 hours a day</p> </div> </div> </div> </div> </div> </div> </section> <!-- ---------- Popup Model --------------- --> <?php if (!isset($checksession) && !isset($_SESSION["guest_sesion"])) { ?> <div id="guest_model" class="modal fade mt-5 pt-2"> <div class="modal-dialog modal-sm" style="width: 600px;"> <div class="modal-content"> <div class="modal-header" style="background-color: #25af91;"> <h5 class="modal-title">Welcome To A4Paper</h5> <button type="button" class="close" data-dismiss="modal">×</button> </div> <div class="modal-body" style="background-color: #fdead2;"> <p>Please enter your details to get in touch and latest update.</p> <!-- <p>Subscribe to our mailing list to get the latest updates straight in your inbox.</p> --> <form action="" method="post"> <div class="form-group"> <input type="text" name="mobile" class="form-control" placeholder="Phone Number" pattern="[789][0-9]{9}" title="Enter 10 digit mobile number" required> </div> <div class="form-group"> <input type="email" name="email" class="form-control" placeholder="Email Address" required> </div> <div class="form-group text-right pr-1"> <button type="submit" name="guest_submit" class="btn btn-primary">Submit</button> </div> </form> </div> </div> </div> </div> <?php } ?> <!-- --------------------------------------- --> <?php include "footer.php"; ?> <script> $(document).ready(function(){ $("#guest_model").modal('show'); }); </script> <?php $_SESSION["guest_sesion"] = 1; ?> <!-- ---------- Popup Model --------------- --> <?php if (isset($success_guest)) { ?> <div id="success_guest" class="modal fade mt-5 pt-2"> <div class="modal-dialog modal-sm" style="width: 600px;"> <div class="modal-content"> <div class="modal-header" style="background-color: #25af91;"> <!-- <h5 class="modal-title">Welcome To A4Paper</h5> --> <button type="button" class="close" data-dismiss="modal">×</button> </div> <div class="modal-body" style="background-color: #fdead2;"> <h3 class="alert alert-success">Thanks for contacting us</h3> </div> </div> </div> </div> <!-- <script>window.location.href='index.php'</script> --> <script> $("#success_guest").modal('show'); </script> <?php } unset($success_guest); ?>