Hacked By AnonymousFox
<?php include("common/header.php");?>
<main>
<?php
if(!isset($_SESSION['KXloginId'])){
header("location:".DEFAULT_URL);
}else{
$sqlCustomer = mysqli_query($cn,"select * from `tbl_register` where `id`='".$_SESSION['KXloginId']."'");
$sqlCustomerData = mysqli_fetch_array($sqlCustomer);
}?>
<div class="my-account-wrapper section-padding">
<div class="container">
<div class="section-bg-color">
<div class="row">
<div class="col-lg-12">
<!-- My Account Page Start -->
<div class="myaccount-page-wrapper">
<!-- My Account Tab Menu Start -->
<div class="row">
<div class="col-lg-3 col-md-4">
<div class="profile-name">
<small>Hello</small>
<p><?php echo $sqlCustomerData['name'];?></p>
</div>
<div class="myaccount-tab-menu nav" role="tablist">
<a href="<?php echo DEFAULT_URL;?>accounts"><i class="fa fa-user"></i> ACCOUNT DETAILS</a>
<a href="<?php echo DEFAULT_URL;?>orders" class="active"><i class="fa fa-cart-arrow-down"></i> ORDERS</a>
<a href="<?php echo DEFAULT_URL;?>logout"><i class="fa fa-sign-out"></i> LOGOUT</a>
</div>
</div>
<!-- My Account Tab Menu End -->
<!-- My Account Tab Content Start -->
<div class="col-lg-9 col-md-8">
<div class="myaccount-content">
<h5>ORDERS</h5>
<section class="order-list-1">
<?php
$sqlOrderList = mysqli_query($cn,"select * from `tbl_order` where `customer_id`='".$_SESSION['KXloginId']."' group by order_id");
while($sqlOrderListData = mysqli_fetch_array($sqlOrderList)){?>
<div class="order-list-box">
<div class="row">
<div class="col-md-12">
<div class="order-id">
<p>#<?php echo str_pad($sqlOrderListData['order_id'], 4, "0", STR_PAD_LEFT);?></p>
</div>
</div>
</div>
<?php
$sqlOrderDetail = mysqli_query($cn,"select * from `tbl_order` where `order_id`='".$sqlOrderListData['order_id']."'");
while($sqlOrderDetailData = mysqli_fetch_array($sqlOrderDetail))
{
$sqlProduct = mysqli_query($cn,"select * from `tbl_product` where `id`='".$sqlOrderDetailData['product_id']."'");
$sqlProductData = mysqli_fetch_array($sqlProduct);
$ProductImg = explode("$",$sqlProductData['image']);
?>
<div class="row">
<div class="col-md-2">
<div class="order-list-img">
<img class="img-responsive" src="<?php echo DEFAULT_URL."products/".$ProductImg[0];?>">
</div>
</div>
<div class="col-md-6">
<div class="order-list-name">
<h5><?php echo $sqlOrderDetailData['product_name'];?></h5>
<?php if(!empty($sqlOrderDetailData['size'])){?>
<h6><strong>SIZE : </strong> <span><?php echo $sqlOrderDetailData['size'];?></span></h6>
<?php }?>
<?php if(!empty($sqlOrderDetailData['polish'])){?>
<h6><strong>POLISH : </strong> <span><?php echo $sqlOrderDetailData['polish'];?></span></h6>
<?php }?>
</div>
</div>
<div class="col-md-4">
<div class="order-review">
<a href="javascript:void(0);">QTY - <?php echo $sqlOrderDetailData['qty'];?></a>
</div>
</div>
</div>
<?php }?>
<div class="row">
<div class="col-md-6">
<div class="order-date">
<p>Order Date - <?php echo date('d/m/Y',strtotime($sqlOrderListData['order_date']));?></p>
</div>
</div>
<div class="col-md-6">
<div class="track-list">
<a href="<?php echo DEFAULT_URL;?>order-detail.php?orderId=<?php echo $sqlOrderListData['order_id'];?>" class="btn btn-cart2">View Detail</a>
</div>
</div>
</div>
</div>
<?php }?>
</section>
</div>
</div>
<!-- My Account Tab Content End -->
</div>
</div> <!-- My Account Page End -->
</div>
</div>
</div>
</div>
</div>
<!-- checkout main wrapper end -->
</main>
<!-- footer area start -->
<?php include("popup/loginsignup.php");?>
<?php include("common/footer.php");?>
<!-- footer area end -->
<!-- offcanvas mini cart start -->
<?php include("popup/mini-cart.php");?>
<!-- Modernizer JS -->
<script src="<?php echo DEFAULT_URL;?>assets/js/vendor/modernizr-3.6.0.min.js"></script>
<!-- jQuery JS -->
<script src="<?php echo DEFAULT_URL;?>assets/js/vendor/jquery-3.3.1.min.js"></script>
<!-- Popper JS -->
<script src="<?php echo DEFAULT_URL;?>assets/js/vendor/popper.min.js"></script>
<!-- Bootstrap JS -->
<script src="<?php echo DEFAULT_URL;?>assets/js/vendor/bootstrap.min.js"></script>
<!-- slick Slider JS -->
<script src="<?php echo DEFAULT_URL;?>assets/js/plugins/slick.min.js"></script>
<!-- Countdown JS -->
<script src="<?php echo DEFAULT_URL;?>assets/js/plugins/countdown.min.js"></script>
<!-- Nice Select JS -->
<script src="<?php echo DEFAULT_URL;?>assets/js/plugins/nice-select.min.js"></script>
<!-- jquery UI JS -->
<script src="<?php echo DEFAULT_URL;?>assets/js/plugins/jqueryui.min.js"></script>
<!-- Image zoom JS -->
<script src="<?php echo DEFAULT_URL;?>assets/js/plugins/image-zoom.min.js"></script>
<!-- Imagesloaded JS -->
<script src="<?php echo DEFAULT_URL;?>assets/js/plugins/imagesloaded.pkgd.min.js"></script>
<!-- Instagram feed JS -->
<script src="<?php echo DEFAULT_URL;?>assets/js/plugins/instagramfeed.min.js"></script>
<!-- mailchimp active js -->
<script src="<?php echo DEFAULT_URL;?>assets/js/plugins/ajaxchimp.js"></script>
<!-- contact form dynamic js -->
<script src="<?php echo DEFAULT_URL;?>assets/js/plugins/ajax-mail.js"></script>
<!-- google map api -->
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCfmCVTjRI007pC1Yk2o2d_EhgkjTsFVN8"></script>
<!-- google map active js -->
<script src="<?php echo DEFAULT_URL;?>assets/js/plugins/google-map.js"></script>
<!-- Main JS -->
<script src="<?php echo DEFAULT_URL;?>assets/js/main.js"></script>
<script src="<?php echo DEFAULT_URL;?>js/blockui.min.js"></script>
<script src="<?php echo DEFAULT_URL;?>js/function.js"></script>
<script>
$(document).ready(function(){
$("#signup").click(function(){
$(".log-in").css("display", "none");
$(".sign-up").css("display", "block");
});
});
$(document).ready(function(){
$("#login").click(function(){
$(".log-in").css("display", "block");
$(".sign-up").css("display", "none");
});
});
</script>
</body>
</html>
Hacked By AnonymousFox1.0, Coded By AnonymousFox