GIF89a
<?php session_start(); if($_SESSION["user_id"]=="" && $_COOKIE["user_id"]=="") { echo '<script>alert("Session has been expired"); window.location.href="login.php";</script>'; } ob_start(); ini_set('error_reporting', E_STRICT); include("connect.php"); //include("checkSession.php"); mysqli_set_charset($conn,'utf8'); date_default_timezone_set('Asia/Kolkata'); // wallet amount $sqlWA="SELECT * FROM `wallet_transaction_history` WHERE `user_id`='".$_COOKIE["user_id"]."'"; $rsWA=mysqli_query($conn,$sqlWA); $checkWA=mysqli_num_rows($rsWA); $rowWA=mysqli_fetch_assoc($rsWA); // user details $sqlU="SELECT * FROM `app_admin` WHERE `sr`='".$_COOKIE["user_id"]."'"; $rsU=mysqli_query($conn,$sqlU); $rowU=mysqli_fetch_assoc($rsU); // last order history $sqlP="SELECT * FROM `incoming_order` WHERE `payment_status`='Credit' && `user_sr`='".$_COOKIE["user_id"]."'"; $rsP=mysqli_query($conn,$sqlP); $checkP=mysqli_num_rows($rsP); // Recent generated links $sqlL="SELECT * FROM `incoming_order` WHERE `user_sr`='".$_COOKIE["user_id"]."' && `order_status`='Delivered' && `payment_status`='Credit' ORDER BY `sr` DESC"; $rsL=mysqli_query($conn,$sqlL); $checkL=mysqli_num_rows($rsL); // user received by link $sqlURBL="SELECT * FROM `incoming_order` WHERE `user_sr`='".$_COOKIE["user_id"]."' && `order_status`='Reject' && `payment_status`='Credit' ORDER BY `sr` DESC"; $rsURBL=mysqli_query($conn,$sqlURBL); $checkURBL=mysqli_num_rows($rsURBL); ?> <!DOCTYPE php> <html lang="en"> <?php include'include/head.php'?> <style type="text/css"> .card-box { background-color: #f5f5f5; background-clip: border-box; border: 1px solid #e7eaed; padding: 1.5rem; margin-bottom: 24px; border-radius: .25rem; } .avatar-xl { height: 6rem; width: 6rem; } .rounded-circle { border-radius: 50%!important; box-shadow: 3px 3px 4px rgba(180, 167, 192, 0.27), -4px -2px 4px white!important; } .nav-pills .nav-link.active, .nav-pills .show>.nav-link { color: #fff; background-color: #1abc9c; } .nav-pills .nav-link { border-radius: .25rem; } .navtab-bg li>a { background-color: #f7f7f7; margin: 0 5px; } .nav-pills>li>a, .nav-tabs>li>a { color: #6c757d; font-weight: 600; } .mb-4, .my-4 { margin-bottom: 2.25rem!important; } .tab-content { padding: 20px 0 0 0; } .progress-sm { height: 5px; } .m-0 { margin: 0!important; } .table .thead-light th { color: #6c757d; background-color: #f1f5f7; border-color: #dee2e6; } .social-list-item { height: 2rem; width: 2rem; line-height: calc(2rem - 4px); display: block; border: 2px solid #adb5bd; border-radius: 50%; color: #adb5bd; } .text-purple { color: #6559cc!important; } .border-purple { border-color: #6559cc!important; } .timeline { margin-bottom: 50px; position: relative; } .timeline:before { background-color: #dee2e6; bottom: 0; content: ""; left: 50%; position: absolute; top: 30px; width: 2px; z-index: 0; } .timeline .time-show { margin-bottom: 30px; margin-top: 30px; position: relative; } .timeline .timeline-box { background: #fff; display: block; margin: 15px 0; position: relative; padding: 20px; } .timeline .timeline-album { margin-top: 12px; } .timeline .timeline-album a { display: inline-block; margin-right: 5px; } .timeline .timeline-album img { height: 36px; width: auto; border-radius: 3px; } @media (min-width: 768px) { .timeline .time-show { margin-right: -69px; text-align: right; } .timeline .timeline-box { margin-left: 45px; } .timeline .timeline-icon { background: #dee2e6; border-radius: 50%; display: block; height: 20px; left: -54px; margin-top: -10px; position: absolute; text-align: center; top: 50%; width: 20px; } .timeline .timeline-icon i { color: #98a6ad; font-size: 13px; position: absolute; left: 4px; } .timeline .timeline-desk { display: table-cell; vertical-align: top; width: 50%; } .timeline-item { display: table-row; } .timeline-item:before { content: ""; display: block; width: 50%; } .timeline-item .timeline-desk .arrow { border-bottom: 12px solid transparent; border-right: 12px solid #fff !important; border-top: 12px solid transparent; display: block; height: 0; left: -12px; margin-top: -12px; position: absolute; top: 50%; width: 0; } .timeline-item.timeline-item-left:after { content: ""; display: block; width: 50%; } .timeline-item.timeline-item-left .timeline-desk .arrow-alt { border-bottom: 12px solid transparent; border-left: 12px solid #fff !important; border-top: 12px solid transparent; display: block; height: 0; left: auto; margin-top: -12px; position: absolute; right: -12px; top: 50%; width: 0; } .timeline-item.timeline-item-left .timeline-desk .album { float: right; margin-top: 20px; } .timeline-item.timeline-item-left .timeline-desk .album a { float: right; margin-left: 5px; } .timeline-item.timeline-item-left .timeline-icon { left: auto; right: -56px; } .timeline-item.timeline-item-left:before { display: none; } .timeline-item.timeline-item-left .timeline-box { margin-right: 45px; margin-left: 0; text-align: right; } } .user-section { margin: 50px 0px; } @media (max-width: 767.98px) { .timeline .time-show { text-align: center; position: relative; } .timeline .timeline-icon { display: none; } } .timeline-sm { padding-left: 110px; } .timeline-sm .timeline-sm-item { position: relative; padding-bottom: 20px; padding-left: 40px; border-left: 2px solid #dee2e6; } .timeline-sm .timeline-sm-item:after { content: ""; display: block; position: absolute; top: 3px; left: -7px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #1abc9c; } .timeline-sm .timeline-sm-item .timeline-sm-date { position: absolute; left: -104px; } @media (max-width: 420px) { .timeline-sm { padding-left: 0; } .timeline-sm .timeline-sm-date { position: relative !important; display: block; left: 0 !important; margin-bottom: 10px; } } .img-edit { position: relative; } .img-edit-u { position: absolute; padding: 0px; color: #000; border-top-right-radius: 12px; top: 44px; border-bottom-right-radius: 10px; } .edit-button { padding: 5px 20px; font-size: 13px; border-radius: 5px; background: #555; } .user-name { color: #000; } .imagePreview { width: 100%; height: 180px; background-position: center center; background:url(http://cliquecities.com/assets/no-image-e3699ae23f866f6cbdf8ba2443ee5c4e.jpg); background-color:#fff; background-size: cover; background-repeat:no-repeat; display: inline-block; box-shadow:0px -3px 6px 2px rgba(0,0,0,0.2); } .btn-primary { display:block; border-radius:0px; box-shadow:0px 4px 6px 2px rgba(0,0,0,0.2); margin-top:-5px; } .imgUp { margin-bottom:15px; } .del { position:absolute; top:0px; right:15px; width:30px; height:30px; text-align:center; line-height:30px; background-color:rgba(255,255,255,0.6); cursor:pointer; } .imgAdd { width:30px; height:30px; border-radius:50%; background-color:#4bd7ef; color:#fff; box-shadow:0px 0px 2px 1px rgba(0,0,0,0.2); text-align:center; line-height:30px; margin-top:0px; cursor:pointer; font-size:15px; } .wrapper { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } h1 { font-family: inherit; margin: 0 0 .75em 0; color: #728c8d; text-align: center; } .box { display: block; min-width: 300px; height: 300px; margin: 10px; background-color: white; border-radius: 5px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); -webkit-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); overflow: hidden; } .upload-options { position: relative; height: 75px; background-color: cadetblue; cursor: pointer; overflow: hidden; text-align: center; -webkit-transition: background-color ease-in-out 150ms; transition: background-color ease-in-out 150ms; } .upload-options:hover { background-color: #7fb1b3; } .upload-options input { width: 0.1px; height: 0.1px; opacity: 0; overflow: hidden; position: absolute; z-index: -1; } .upload-options label { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; width: 100%; height: 100%; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; overflow: hidden; } .upload-options label::after { content: 'Add'; font-family: 'Material Icons'; position: absolute; font-size: 2.5rem; color: #e6e6e6; top: calc(85% - 2.5rem); left: calc(47% - 1.25rem); z-index: 0; } .upload-options label span { display: inline-block; width: 50%; height: 100%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; vertical-align: middle; text-align: center; } .upload-options label span:hover i.material-icons { color: lightgray; } .js--image-preview { height: 225px; width: 100%; position: relative; overflow: hidden; background-image: url(""); background-color: white; background-position: center center; background-repeat: no-repeat; background-size: cover; } .js--image-preview::after { content: "Select Your Image"; font-family: 'Material Icons'; position: relative; font-size: 30px; color: #e6e6e6; top: calc(50% - 3rem); left: calc(32% - 2.25rem); text-align: center; z-index: 0; } .js--image-preview.js--no-default::after { display: none; } i.material-icons { -webkit-transition: color 100ms ease-in-out; transition: color 100ms ease-in-out; font-size: 2.25em; line-height: 55px; color: white; display: block; } .drop { display: block; position: absolute; background: rgba(95, 158, 160, 0.2); border-radius: 100%; -webkit-transform: scale(0); transform: scale(0); } .animate { -webkit-animation: ripple 0.4s linear; animation: ripple 0.4s linear; } @-webkit-keyframes ripple { 100% { opacity: 0; -webkit-transform: scale(2.5); transform: scale(2.5); } } @keyframes ripple { 100% { opacity: 0; -webkit-transform: scale(2.5); transform: scale(2.5); } } [data-toggle="collapse"]:after { display: inline-block; display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\f054"; transform: rotate(90deg) ; transition: all linear 0.25s; float: right; } [data-toggle="collapse"].collapsed:after { transform: rotate(0deg) ; } .card-header h5 a { font-weight: 600; font-size: 16px; color: #323232; } .table th { color: #111; font-weight: 500; } .card { margin-bottom: 10px; } .card-header { background-color: #eee; } tbody td i { color: #000; margin-right: 3px; } tbody td { color: #444; } .fa-clone { color: #000; font-weight: 600; } .wallet-sec { background-color: #2196F3; padding: 10px; font-size: 16px; } .wallet-sec a { color: #fff !important; } .amount-sec { border: 1px dotted #eee; margin-top: 10px; background: #ffff; padding: 10px; } .amount-text { color: #000; font-weight: 500; font-size: 16; } .price-amu { color: #555; font-weight: 400; font-size: 14; } .edit-box { top: 25%; } .save-btn { border-top-left-radius: 0px; border-bottom-left-radius: 0px; background: #2196f3; color: #fff; } .edit-input { border-top-left-radius: 50px; border-bottom-left-radius: 50px; } .withdrawal-box { top: 30%; } </style> <!-- New Withdrawal Request --> <!-- Modal --> <div class="modal fade" id="Withdrawal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog withdrawal-box"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">New Withdrawal Request</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form> <div class="input-group mb-3"> <input type="number" id="reqamount" class="form-control edit-input" placeholder="Amount" aria-label="Recipient's username" aria-describedby="basic-addon2"> <div class="input-group-append"> <button type="button" class="input-group-text btn save-btn" id="" onclick="sendWReq('<?php echo $rowU["sr"]; ?>')">Send Request</button> </div> </div> </form> </div> </div> </div> </div> <body > <div class="se-pre-con"></div> <div class="main"> <!-- HEADER START --> <?php include'include/header.php'?> <!-- HEADER END --> <!-- Bread Crumb STRAT --> <div class="banner inner-banner1 topmar"> <div class="container"> <section class="banner-detail center-xs"> <h1 class="banner-title">User Profile</h1> <div class="bread-crumb right-side float-none-xs"> <ul> <li><a href="index.php">Home</a></li> <!-- <li><span>User Profile</span></li> --> </ul> </div> </section> </div> </div> <section class="user-section"> <div class="container"> <div class="row"> <div class="col-lg-4 col-xl-4"> <div class="card-box text-center"> <div class="img-edit"> <a href="#" data-toggle="modal" data-target="#exampleModalCenter"> <?php if($rowU["image"]<>"NA"){ ?> <img src="<?php echo "admin.cpanel/".$rowU["image"]; ?>" class="rounded-circle avatar-xl img-thumbnail" alt="profile-image"> <?php } else if($rowU["image"]=="NA" || $rowU["image"]=="") { ?> <img src="https://cdn.iconscout.com/icon/premium/png-512-thumb/profile-1506810-1278719.png" class="rounded-circle avatar-xl img-thumbnail" alt="profile-image"> <?php } ?> <i class="fa fa-camera img-edit-u" aria-hidden="true"></i> </a> </div> <h4 class="mb-0"><?php echo $rowU["user_name"]; ?></h4> <button type="button" class="btn btn-success btn-xs waves-effect edit-button mb-2 waves-light" data-toggle="modal" data-target="#edit">Edit</button> <div class="text-left mt-3"> <p class="user-name mb-2 font-13"><strong>Full Name :</strong> <span class="ml-2"><?php echo $rowU["user_name"]; ?></span></p> <p class="user-name mb-2 font-13"><strong>Mobile :</strong><span class="ml-2"><?php echo $rowU["mobb"]; ?></span></p> <p class="user-name mb-2 font-13"><strong>Email :</strong> <span class="ml-2 "><?php echo $rowU["emailid"]; ?></span></p> <p class="user-name mb-1 font-13"><strong>Address :</strong> <span class="ml-2"><?php echo $rowU["address"]; ?></span></p> </div> <button type="button" class="btn btn-danger btn-xs waves-effect mb-2 waves-light" onclick="appRedirect('logout.php')">Sign out</button> </div> <!-- <div class="card-box text-center mt-3"> <div class="wallet-sec"> <a href="">Wallet</a> </div> <div class="amount-sec"> <span class="amount-text">Amount</span> <br> <?php if($checkWA>0){ ?> <span class="price-amu">Rs.<?php echo $rowWA["amount"]; ?>/-</span> <?php } else { ?> <span class="price-amu">Rs.0.00/-</span> <?php } ?> </div> </div> --> <!-- <div class="card-box text-center mt-3"> <div class="wallet-sec" data-toggle="modal" data-target="#Withdrawal"> <a>New Withdrawal Request</a> </div> </div> --> <div class="card-box text-center mt-3"> <div class="cou-details row"> <div class="col-xs-6 col-6" style="border-right: 1px solid #333;"> <?php $sqlLUC="SELECT * FROM `used_coupon_by_user` WHERE `user_id`='".$_COOKIE["user_id"]."' && `coupon_code`='Welcome100'"; $rsLUC=mysqli_query($conn,$sqlLUC); $rowLUC=mysqli_num_rows($rsLUC); if($rowLUC>0){ ?> <?php } else { ?> <p>Welcome 100</p> <?php } ?> <a href=""> Coupons </a> </div> <div class="col-xs-6 col-6"> <p>0</p> <a href=""> Gift Card </a> </div> </div> </div> </div> <!-- end col--> <div class="col-lg-8 col-xl-8"> <div class="card-box"> <div id="accordion" role="tablist"> <div class="card"> <div class="card-header" role="tab" id="headingOne"> <h5 class="mb-0"> <a data-toggle="collapse" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne"> <font size="-1">Last Shipping</font> </a> </h5> </div> <div id="collapseOne" class="collapse show" role="tabpanel" aria-labelledby="headingOne" data-parent="#accordion"> <div class="card-body overscroll"> <table class="table table-bordered "> <thead> <tr> <th scope="col"><font size="-2">Order ID</font></th> <th scope="col"><font size="-2">Product Name</font></th> <th scope="col"><font size="-2">Amount</font></th> <th scope="col"><font size="-2">Order Type</font></th> <th scope="col"><font size="-2">Ouantity</font></th> <th scope="col"><font size="-2">Date</font></th> </tr> </thead> <tbody> <?php while($rowP=mysqli_fetch_array($rsP)){ $sqlPD="SELECT * FROM `products` WHERE `sr`='".$rowP['prod_id']."'"; $rsPD=mysqli_query($conn,$sqlPD); $rowPD=mysqli_fetch_assoc($rsPD); ?> <tr> <td><font size="-2"><?php echo $rowP['order_id']; ?></font></td> <td><font size="-2"><?php echo $rowPD["p_name"]; ?></font></td> <td><font size="-2"><i class="fa fa-inr"></i><?php echo $rowP['prod_price']; ?></font></td> <td><font size="-2"><?php if($rowP['order_type']=="0"){ echo "Prepaid"; } else { echo "COD"; } ?></td> <td><font size="-2"><?php echo $rowP['prod_qty']; ?></font></td> <td><font size="-2"><?php echo $rowP['datee']; ?></font></td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> <div class="card"> <div class="card-header" role="tab" id="headingTwo"> <h5 class="mb-0"> <a class="collapsed" data-toggle="collapse" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo"> <font size="-1">Delivered Orders</font> </a> </h5> </div> <div id="collapseTwo" class="collapse" role="tabpanel" aria-labelledby="headingTwo" data-parent="#accordion"> <div class="card-body overscroll"> <table class="table table-bordered "> <thead> <tr> <th scope="col"><font size="-2">Product Name</font></th> <th scope="col"><font size="-2">Quantity</font></th> <th scope="col"><font size="-2">Price</font></th> <th scope="col"><font size="-2">Order ID</font></th> <th scope="col"><font size="-2">Tid#</font></th> <th scope="col"><font size="-2">Order Type</font></th> <th scope="col"><font size="-2">Date</font></th> </tr> </thead> <tbody> <?php while($rowL=mysqli_fetch_array($rsL)){ $sqlProd2="SELECT * FROM `products` WHERE `sr`='".$rowL['prod_id']."'"; $rsProd2=mysqli_query($conn,$sqlProd2); $rowProd2=mysqli_fetch_assoc($rsProd2); ?> <tr> <td><font size="-2"><?php echo $rowProd2["p_name"]; ?></font></td> <td><font size="-2"><?php echo $rowL['prod_qty']; ?></font></td> <td><font size="-2"><?php echo $rowL['prod_price']; ?></font></td> <td><font size="-2"><?php echo $rowL['order_id']; ?></font></td> <td><font size="-2"><?php echo $rowL['payment_id']; ?></font></td> <td><font size="-2"><?php if($rowL['order_type']=="0"){ echo "Prepaid"; } else { echo "COD"; } ?></font></td> <td><font size="-2"><?php echo $rowL['datee']; ?></font></td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> <div class="card"> <div class="card-header" role="tab" id="headingThree"> <h5 class="mb-0"> <a class="collapsed" data-toggle="collapse" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree"> <font size="-1">Recent Rejected Orders</font> </a> </h5> </div> <div id="collapseThree" class="collapse" role="tabpanel" aria-labelledby="headingThree" data-parent="#accordion"> <div class="card-body overscroll"> <table class="table table-bordered"> <thead> <tr> <th scope="col"><font size="-2">Product Name</font></th> <th scope="col"><font size="-2">Quantity</font></th> <th scope="col"><font size="-2">Price</font></th> <th scope="col"><font size="-2">Order ID</font></th> <th scope="col"><font size="-2">Tid#</font></th> <th scope="col"><font size="-2">Order Type</font></th> <th scope="col"><font size="-2">Date</font></th> </tr> </thead> <tbody> <?php if($checkURBL>0){ while($rowURBL=mysqli_fetch_array($rsURBL)){ $sqlP2="SELECT * FROM `products` WHERE `sr`='".$rowURBL['prod_id']."' && `payment_status`='Credit'"; $rsP2=mysqli_query($conn,$sqlP2); $rowP2=mysqli_fetch_assoc($rsP2); ?> <tr> <td><font size="-2"><i class="fa fa-link" ></i><?php echo $rowP2["p_name"]; ?></font></td> <td><font size="-2"><?php echo $rowURBL['prod_qty']; ?></font></td> <td><font size="-2"><?php echo $rowURBL['prod_price']; ?></font></td> <td><font size="-2"><?php echo $rowURBL['order_id']; ?></font></td> <td><font size="-2"><?php echo $rowURBL['payment_id']; ?></font></td> <td><font size="-2"><?php if($rowURBL['order_type']=="0"){ echo "Prepaid"; } else { echo "COD"; } ?></font></td> <td><font size="-2"><?php echo $rowURBL['datee']; ?></font></td> </tr> <?php } } else { echo "No Record found !"; } ?> </tbody> </table> </div> </div> </div> <div class="card"> <div class="card-header" role="tab" id="headingfour"> <h5 class="mb-0"> <a class="collapsed" data-toggle="collapse" href="#collapsefour" aria-expanded="false" aria-controls="collapsefour"> <font size="-1">Under Processing Orders</font> </a> </h5> </div> <div id="collapsefour" class="collapse" role="tabpanel" aria-labelledby="headingfour" data-parent="#accordion"> <div class="card-body overscroll"> <table class="table table-bordered "> <thead> <tr> <th scope="col"><font size="-2">Product Name</font></th> <th scope="col"><font size="-2">Quantity</font></th> <th scope="col"><font size="-2">Price</font></th> <th scope="col"><font size="-2">Order ID</font></th> <th scope="col"><font size="-2">Tid#</font></th> <th scope="col"><font size="-2">Order Type</font></th> <th scope="col"><font size="-2">Date</font></th> </tr> </thead> <tbody> <?php $sqlP5="SELECT * FROM `incoming_order` WHERE `user_sr`='".$_COOKIE["user_id"]."' && `order_status`<>'CompleteRefund' && `order_status`<>'Delivered' && `order_status`<>'Reject' && `payment_status`='Credit' ORDER BY `sr` DESC"; $rsP5=mysqli_query($conn,$sqlP5); $checkP5=mysqli_num_rows($rsP5); if($checkP5>0){ while($rowP5=mysqli_fetch_array($rsP5)){ $sqlP6="SELECT * FROM `products` WHERE `sr`='".$rowP5['prod_id']."'"; $rsP6=mysqli_query($conn,$sqlP6); $rowP6=mysqli_fetch_assoc($rsP6); ?> <tr> <td><font size="-2"><?php echo $rowP6["p_name"]; ?></font></td> <td><font size="-2"><?php echo $rowP5['prod_qty']; ?></font></td> <td><font size="-2"><?php echo $rowP5['prod_price']; ?></font></td> <td><font size="-2"><?php echo $rowP5['order_id']; ?></font></td> <td><font size="-2"><?php echo $rowP5['payment_id']; ?></font></td> <td><font size="-2"><?php if($rowP5['order_type']=="0"){ echo "Prepaid"; } else { echo "COD"; } ?></font></td> <td><font size="-2"><?php echo $rowP5['datee']; ?></font></td> </tr> <?php } } else { echo "No record found !"; } ?> </tbody> </table> </div> </div> </div> <!-- <div class="card"> <div class="card-header" role="tab" id="headingfour"> <h5 class="mb-0"> <a class="collapsed" data-toggle="collapse" href="#collapsefour" aria-expanded="false" aria-controls="collapsefour"> Recent </a> </h5> </div> <div id="collapsefour" class="collapse" role="tabpanel" aria-labelledby="headingfour" data-parent="#accordion"> <div class="card-body"> <table class="table table-bordered "> <thead> <tr> <th scope="col">Link</th> <th scope="col">Action</th> </tr> </thead> <tbody> <tr> <td><i class="fa fa-link" ></i> <a href="#">google.com</a></td> <td> <button type="button" class="btn btn-success btn-xs waves-effect edit-button mb-2 waves-light">Open</button> </td> </tr> </tbody> </table> </div> </div> </div> --> <!-- <div class="card"> <div class="card-header" role="tab" id="headingfive"> <h5 class="mb-0"> <a class="collapsed" data-toggle="collapse" href="#collapsefive" aria-expanded="false" aria-controls="collapsefive"> <font size="-1">Wallet Transactions </font> </a> </h5> </div> <div id="collapsefive" class="collapse" role="tabpanel" aria-labelledby="headingfive" data-parent="#accordion"> <div class="card-body"> <table class="table table-bordered "> <thead> <tr> <th scope="col"><font size="-2">User ID</font></th> <th scope="col"><font size="-2">Order ID</font></th> <th scope="col"><font size="-2">Amount</font></th> <th scope="col"><font size="-2">Order Type</font></th> <th scope="col"><font size="-2">Date</font></th> <th scope="col"><font size="-2">Time</font></th> </tr> </thead> <tbody> <?php $sqlWT="SELECT * FROM `wallet_transaction_history` WHERE `user_id`='".$_COOKIE["user_id"]."' ORDER BY `sr` DESC"; $rsWT=mysqli_query($conn,$sqlWT); while($rowWT=mysqli_fetch_array($rsWT)){ ?> <tr> <td><font size="-2"><?php echo $rowWT['from_user_id']; ?></font></td> <td><font size="-2"><?php echo $rowWT['order_id']; ?></font></td> <td><font size="-2"><?php echo $rowWT['amount']; ?></font></td> <td><font size="-2"><?php if($rowWT['cod']=="1"){ echo "COD"; } else { echo "Prepaid"; } ?></font></td> <td><font size="-2"><?php echo $rowWT['datee']; ?></font></td> <td><font size="-2"><?php echo $rowWT['timee']; ?></font></td> </tr> <?php } ?> </tbody> </table> </div> </div> --> <!-- <div class="card"> <div class="card-header" role="tab" id="headingsix"> <h5 class="mb-0"> <a class="collapsed" data-toggle="collapse" href="#collapsesix" aria-expanded="false" aria-controls="collapsesix"> <font size="-1">Recent Withdrawal Request</font> </a> </h5> </div> <div id="collapsesix" class="collapse" role="tabpanel" aria-labelledby="headingsix" data-parent="#accordion"> <div class="card-body"> <table class="table table-bordered "> <thead> <tr> <th scope="col"><font size="-2">Amount</font></th> <th scope="col"><font size="-2">Status</font></th> <th scope="col"><font size="-2">Date</font></th> <th scope="col"><font size="-2">Time</font></th> </tr> </thead> <tbody> <?php $sqlWR="SELECT * FROM `withdrawal_request` WHERE `user_id`='".$_COOKIE["user_id"]."'"; $rsWR=mysqli_query($conn,$sqlWR); while($rowWR=mysqli_fetch_array($rsWR)){ ?> <tr> <td><font size="-2"><?php echo $rowWR['amount']; ?></font></td> <td><font size="-2"><?php if($rowWR['status']=="2"){ echo "Under approval"; } else if($rowWR['status']=="0"){ echo "Disapproved"; } else if($rowWR['status']=="1"){ echo "Withdrawal Approved"; } ?></font></td> <td><font size="-2"><font size="-2"><?php echo $rowWR['datee']; ?></font></td> <td><font size="-2"><?php echo $rowWR['timee']; ?></font></td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> --> </div> </div> </div> </div> </div> </section> <!-- FOOTER START --> <?php include'include/footer.php'?> <div class="scroll-top"> <div class="scrollup"></div> </div> <!-- FOOTER END --> </div> <script src="js/jquery-1.12.3.min.js"></script> <script src="js/tether.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/jquery.downCount.js"></script> <script src="js/jquery-ui.min.js"></script> <script src="js/fotorama.js"></script> <script src="js/jquery.magnific-popup.js"></script> <script src="js/owl.carousel.min.js"></script> <script src="js/custom.js"></script> <!-- Modal --> <div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-content"> <form action="updateProfile.php" method="POST" enctype="multipart/form-data" onsubmit="return updateProfile(this)"> <div class="modal-body"> <div class=""> <div class="box"> <div class="js--image-preview"></div> <div class="upload-options"> <label> <input type="file" id="image" name="image" class="image-upload" accept="image/*" /> <input type="hidden" id="user_id" name="user_id" value="<?php echo $_COOKIE["user_id"]; ?>" /> </label> </div> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> <button type="submit" class="btn btn-primary">Save changes</button> </div> </form> </div> </div> </div> <!-- edit model start --> <!-- Button trigger modal --> <!-- Modal --> <div class="modal fade" id="edit" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered edit-box upd_prof" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLongTitle">Update Profile</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form> <div class="input-group mb-3"> <input type="text" class="form-control edit-input" id="username" placeholder="Full Name" aria-label="Recipient's username" aria-describedby="basic-addon2" value="<?php echo $rowU["user_name"]; ?>"> <div class="input-group-append"> <button class="input-group-text btn save-btn" id="basic-addon2" onclick="saveProfileData('<?php echo $rowU["sr"]; ?>','user_name','1')">Update</button> </div> </div> <div class="input-group mb-3"> <input type="text" class="form-control edit-input" id="mobb" placeholder="Mobile No" aria-label="Recipient's username" aria-describedby="basic-addon2" value="<?php echo $rowU["mobb"]; ?>"> <div class="input-group-append"> <button class="input-group-text btn save-btn" id="basic-addon2" onclick="saveProfileData('<?php echo $rowU["sr"]; ?>','mobb','2')">Update</button> </div> </div> <div class="input-group mb-3"> <input type="text" class="form-control edit-input" id="email" placeholder="Email id" aria-label="Recipient's username" aria-describedby="basic-addon2" value="<?php echo $rowU["emailid"]; ?>"> <div class="input-group-append"> <button class="input-group-text btn save-btn" id="basic-addon2" onclick="saveProfileData('<?php echo $rowU["sr"]; ?>','emailid','3')">Update</button> </div> </div> <div class="input-group mb-3"> <input type="text" class="form-control edit-input" id="adds" placeholder="Address" aria-label="Recipient's username" aria-describedby="basic-addon2" value="<?php echo $rowU["address"]; ?>"> <div class="input-group-append"> <button class="input-group-text btn save-btn" id="basic-addon2" onclick="saveProfileData('<?php echo $rowU["sr"]; ?>','address','4')">Update</button> </div> </div> </form> </div> </div> </div> </body> </html>