]]jkjjgdjffksdkdxdsghfghdfghfgdfsdsdfsdfsfdsbcxvxcbccwewqeqwewqskfgj
במ12[cxvbcxvbxcvbcxvcxvbcvxcvbsdfsdfsdfsdfsdfsdfxcvbxcvxbbxqwqewqewv;'
/
home
/
u506006416
/
domains
/
crystalmiracle.co.in
/
public_html
/
Upload FileeE
HOME
<?php include_once("header.php"); // echo "<br>".$_SESSION["user"]; // echo "<br>".$_SESSION["name"]; // echo "<br>".$_SESSION["email"]; // echo "<br>".$_SESSION["picture"]; // echo "<br>".$_SESSION["uid"]; // die(); if(strlen($_SESSION['uid'])=='') { url('login.php'); } else { $checksessionid=$_SESSION['uid']; if(isset($checksession) and !empty($checksession)) { $where_con="`id`="."'$checksession'"; $query=$sel_obj->display_rcd('tblusers',$where_con); if(is_array($query) || !empty($query)) { foreach ($query as $data ) { } } } if($_SERVER['REQUEST_METHOD']=='POST' && isset($_POST['submit'])) { $insertdata = array( 'FullName' => $sel_obj->validation($_POST['f_name']), 'last_name' => $sel_obj->validation($_POST['l_name']), 'gst_no' => $sel_obj->validation($_POST['gst_no']), 'state' => $sel_obj->validation($_POST['state']), 'town' => $sel_obj->validation($_POST['town']), 'pincode' => $sel_obj->validation($_POST['pincode']), 'str_address1' => $sel_obj->validation($_POST['str_add1']), 'str_address2' => $sel_obj->validation($_POST['str_add2']), ); $where_condition=array( 'id'=> $checksession ); $update_query=$sel_obj->update("tblusers",$insertdata,$where_condition); if($update_query=='TRUE') { ?> <script type='text/javascript'>alert ('Update sucessfully') var timer = setTimeout(function() { window.location='my_account.php' }); </script> <?php } else { echo "error".mysqli_error($this->con); } } ?> <!-- ===================== Change Password =================== --> <?php if($_SERVER['REQUEST_METHOD']=='POST' && isset($_POST['changepassword'])) { $old_password=md5($sel_obj->validation($_POST['old_password'])); $new_password=md5($sel_obj->validation($_POST['new_password'])); $confirm_new_password=md5($sel_obj->validation($_POST['confirm_new_password'])); if ($data['Password']!=$old_password) { $msg = "<p class='alert alert-danger'>Invalid Old Password</p>"; }elseif ($new_password!=$confirm_new_password) { $msg = "<p class='alert alert-danger'>Password not match</p>"; }else{ $update_data = array('Password' => $new_password); $where_cond=array('id'=> $checksession); $update_query=$sel_obj->update("tblusers",$update_data,$where_cond); if ($update_query) { $msg = "<p class='alert alert-success'>Password has been changed successfully!</p>"; } } } /*----- Back Url ----*/ if ($_SERVER['HTTP_REFERER']) { $back_url = $_SERVER['HTTP_REFERER']; } else{ $back_url = "#"; } ?> <!-- =================================================== --> <style type="text/css"> .nice-select { width: 100% !important; } /*------ Tracking Modal -----*/ .modal-content{ background-color: #f3f3f3; border-color: #42469d; border-radius: 1rem; } @media (min-width: 576px){ .modal-dialog { max-width: 750px; margin: 1.75rem auto; } } .modal-header{ border-bottom: none; text-align: center; } .modal-header .close { padding: 1rem 1rem; margin: -1rem -1rem -1rem 0; color: #fff; } :-moz-any-link:focus { outline: none; } .modal-title{ line-height: 3rem; } .modal-body{ padding: 1rem; } #progressbar { margin-bottom: 3vh; overflow: hidden; color: #000; padding-left: 0px; margin-top: 3vh } #progressbar li { list-style-type: none; font-size: 0.8rem; width: 25%; float: left; position: relative; font-weight: 400; color: #000; } #progressbar #step1:before { content: ""; color: blue; width: 20px; height: 20px; margin-left: 0px !important; } #progressbar #step2:before { content: ""; color: blue; width: 20px; height: 20px; margin-left: 32%; } #progressbar #step3:before { content: ""; color: blue; width: 20px; height: 20px; margin-right: 32% ; } #progressbar #step33:before { content: ""; color: blue; width: 20px; height: 20px; margin-right: 32% ; } #progressbar #step4:before { content: ""; color: rgb(151, 149, 149, 0.651); width: 20px; height: 20px; margin-right: 0px !important; } #progressbar #step5:before { content: ""; color: red; width: 20px; height: 20px; margin-right: 0px !important; background: red; } #progressbar #step5:after { content: ''; height: 3px; background: red; position: absolute; left: 0%; right: 0%; margin-bottom: 2vh; top: 8px; z-index: 1; } #progressbar li:before { line-height: 29px; display: block; font-size: 12px; background: rgb(151, 149, 149); border-radius: 50%; margin: auto; z-index: -1; margin-bottom: 1vh; } #progressbar li:after { content: ''; height: 3px; background: rgb(151, 149, 149, 0.651); position: absolute; left: 0%; right: 0%; margin-bottom: 2vh; top: 8px; z-index: 1; } #progressbar li:nth-child(2):after { margin-right: auto; } #progressbar li:nth-child(1):after { margin: auto; } #progressbar li:nth-child(3):after { float: left; width: 68%; } #progressbar li:nth-child(4):after { margin-left: auto; width: 132%; } #progressbar li.active:before, #progressbar li.active:after { background: blue; } </style> <!-- 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">Account Page</h1> <ul class="breadcrumb-links"> <li><a href="index.php">Home</a></li> <li><a href="<?php echo $back_url; ?>">Back</a></li> <li>My Account</li> </ul> </div> </div> </div> </div> </section> <!-- Breadcrumb Area End --> <!-- account area start --> <div class="checkout-area mtb-60px"> <div class="container"> <div class="row"> <div class="ml-auto mr-auto col-lg-9"> <div class="checkout-wrapper"> <div id="faq" class="panel-group"> <form action="#" method="POST"> <div class="panel panel-default single-my-account"> <div class="panel-heading my-account-title"> <h3 class="panel-title"><span>1 .</span> <a data-toggle="collapse" data-parent="#faq" href="#my-account-1" aria-expanded="false">Edit your account information </a></h3> </div> <div id="my-account-1" class="panel-collapse collapse"> <div class="panel-body"> <div class="myaccount-info-wrapper"> <div class="account-info-wrapper"> <h4>My Account Information</h4> <h5>Your Personal Details</h5> </div> <div class="row"> <div class="col-lg-4 col-md-4"> <div class="billing-info"> <label>First Name</label> <input type="text" name="f_name" value="<?php echo $data['FullName'];?>" required/> </div> </div> <div class="col-lg-4 col-md-4"> <div class="billing-info"> <label>Last Name</label> <input type="text" name="l_name" value="<?php echo $data['last_name'];?>" /> </div> </div> <div class="col-lg-4 col-md-4"> <div class="billing-info"> <label>Email Address</label> <input type="email" name="email" value="<?php echo $data['UserEmail'];?>" required /> </div> </div> <div class="col-lg-6 col-md-6"> <div class="billing-info"> <label>Phone</label> <input type="tel" readonly name="phone" onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" value="<?php echo $data['phonenumber'];?>" required/> </div> </div> <div class="col-lg-6 col-md-6"> <div class="billing-info"> <label>GST No</label> <input type="text" name="gst_no" value="<?php echo $data['gst_no'];?>" /> </div> </div> <div class="col-lg-6 col-md-6"> <div class="billing-info"> <label>Street Address 1</label> <input type="text" name="str_add1" value="<?php echo $data['str_address1'];?>" required /> </div> </div> <div class="col-lg-6 col-md-6"> <div class="billing-info"> <label>Street Address 2</label> <input type="text" name="str_add2" value="<?php echo $data['str_address2'];?>" /> </div> </div> <div class="col-lg-4 col-md-6"> <div class="billing-info"> <label>Town / City</label> <input type="text" name="town" value="<?php echo $data['town'];?>" required/> </div> </div> <div class="col-lg-4 col-md-6"> <div class="billing-info mb-20px"> <label>State <span style="color:red;">*</span></label> <select class="form-control" name="state" style="width:100% !important;" required> <option value="1">Choose</option> <?php $stmt=$sel_obj->select('states'); foreach($stmt as $state) { ?> <option <?php if($data['state']==$state['name']){?> Selected <?php }?> value="<?php echo $state['name'];?>"><?php echo $state['name'];?></option> <?php } ?> </select> </div> </div> <div class="col-lg-4 col-md-6"> <div class="billing-info"> <label>Postcode / Zip</label> <input type="number" name="pincode" value="<?php echo $data['pincode'];?>" required/> </div> </div> </div> <div class="billing-back-btn"> <div class="billing-btn"> <button type="submit" class="active bg-success" name="submit">Update</button> </div> </div> </div> </div> </div> </div> </form> <br> <?php if(isset($msg)){ echo $msg; } ?> <div class="panel panel-default single-my-account"> <div class="panel-heading my-account-title"> <h3 class="panel-title"><span>2 .</span> <a data-toggle="collapse" data-parent="#faq" href="#my-account-2">Change your password </a></h3> </div> <div id="my-account-2" class="panel-collapse collapse"> <div class="panel-body"> <form action="<?php echo strip_tags($_SERVER['PHP_SELF']);?>" method="POST"> <div class="myaccount-info-wrapper"> <div class="account-info-wrapper"> <h5>Change Your Password</h5> </div> <div class="row"> <div class="col-lg-12 col-md-12"> <div class="billing-info"> <label>Current Password</label> <input type="password" name="old_password" required/> </div> </div> <div class="col-lg-12 col-md-12"> <div class="billing-info"> <label>New Password</label> <input type="password" name="new_password" required/> </div> </div> <div class="col-lg-12 col-md-12"> <div class="billing-info"> <label>Confirm New Password</label> <input type="password" name="confirm_new_password" required/> </div> </div> </div> <div class="billing-back-btn"> <div class="billing-btn"> <button type="submit" class="bg-success" name="changepassword">Submit</button> </div> </div> </div> </form> </div> </div> </div> <div class="panel panel-default single-my-account"> <div class="panel-heading my-account-title"> <h3 class="panel-title"><span>3 .</span> <a data-toggle="collapse" data-parent="#faq" href="#my-account-3">Order History </a></h3> </div> <div id="my-account-3" class="panel-collapse collapse"> <div class="panel-body"> <div class="myaccount-info-wrapper"> <div class="account-info-wrapper"> <h4>My Orders</h4> </div> <div class="entries-wrapper333"> <div class="table-responsive"> <?php if(isset($checksession) and !empty($checksession)) { $where_con="`user_id`="."'$checksession' AND `payment_status`='1'"; $query=$sel_obj->display_rcd_desc('orders',$where_con); $temp_query=$sel_obj->all_count_row('orders',$where_con); if($temp_query>0) { ?> <table class="table"> <thead> <tr> <th>S.No</th> <th>Order ID</th> <!-- <th>Txn ID</th> --> <th>Amount</th> <th>Tracking Order</th> <th>Order Date</th> <th>Shipping Date</th> <th>Delivery Date</th> <th>Status</th> <th>Action</th> </tr> </thead> <tbody> <?php $a=0; if(is_array($query) || !empty($query)) { foreach ($query as $data ) { $temp_cart_condition="`order_id`= ".$data['id']; ?> <tr> <td><?php echo $a+1;?> </td> <td><?php echo $data['order_id'];?></td> <!-- <td><?php echo $data['transction_id'];?></td> --> <td>₹<?php echo $data['t_price'];?></td> <td> <button type="button" class="btn btn-primary btn-xs" data-toggle="modal" data-target="#trackID<?php echo $a; ?>"> Track Order </button> <!-- ------------- Order Tracking Modal ------------- --> <div class="container d-flex justify-content-center mt-100"> <div class="modal fade" id="trackID<?php echo $a; ?>"> <div class="modal-dialog modal-dialog-centered modal-lg"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title mx-auto">Order ID : <?php echo $data['order_id'];?></h4> <button type="button" class="close text-dark" data-dismiss="modal">×</button> </div> <div class="modal-body pt-1 pb-5"> <div class="p-3"> <ul id="progressbar"> <?php if($data['order_status']=="Pending"){ ?> <li class="step0 active " id="step1">Pending</li> <li class="step0 text-center" id="step2">Processed</li> <li class="step0 text-right" id="step3">Shipped</li> <li class="step0 text-right" id="step4">Delivered</li> <?php } ?> <?php if($data['order_status']=="Processed"){ ?> <li class="step0 active " id="step1">Pending</li> <li class="step0 active text-center" id="step2">Processed</li> <li class="step0 text-right" id="step3">Shipped</li> <li class="step0 text-right" id="step4">Delivered</li> <?php } ?> <?php if($data['order_status']=="Shipped"){ ?> <li class="step0 active " id="step1">Pending</li> <li class="step0 active text-center" id="step2">Processed</li> <li class="step0 active text-right" id="step3">Shipped</li> <li class="step0 text-right" id="step4">Delivered</li> <?php } ?> <?php if($data['order_status']=="Out For Delivery"){ ?> <li class="step0 active " id="step1">Pending</li> <li class="step0 active text-center" id="step2">Processed</li> <li class="step0 active text-right" id="step3">Shipped</li> <li class="step0 active text-right" id="step33"><small>Out For Delivery</small></li> <li class="step0 text-right" id="step4">Delivered</li> <?php } ?> <?php if($data['order_status']=="Delivered"){ ?> <li class="step0 active " id="step1">Pending</li> <li class="step0 active text-center" id="step2">Processed</li> <li class="step0 active text-right" id="step3">Shipped</li> <li class="step0 active text-right" id="step4">Delivered</li> <?php } ?> <?php if($data['order_status']=="Canceled"){ ?> <li class="step0 active " id="step1">Pending</li> <li class="step0 canceled active text-right text-danger" id="step5">Canceled</li> <?php } ?> <?php if($data['order_status']=="Refunded"){ ?> <li style="width: 20%;" class="step0 active " id="step1">Pending</li> <li style="width: 20%;" class="step0 active text-center" id="step2">Processed</li> <li style="width: 20%;" class="step0 active text-right" id="step3">Shipped</li> <li style="width: 20%;" class="step0 active text-right" id="step4">Delivered</li> <li style="width: 20%;" class="step0 canceled active text-right text-danger" id="step5">Refunded</li> <?php } ?> </ul> </div> </div> </div> </div> </div> </div> <!-- ---------------------------------------- --> </td> <td><?php echo $data['order_date'];?></td> <td><?php echo $data['shipped_date'];?></td> <td><?php echo $data['delivered_date'];?></td> <?php $badge_color = 'badge-info'; if ($data['order_status']=="Pending") { $badge_color = 'badge-warning'; }if ($data['order_status']=="Shipped") { $badge_color = 'badge-primary'; }if ($data['order_status']=="Delivered") { $badge_color = 'badge-success'; }if ($data['order_status']=="Canceled") { $badge_color = 'badge-danger'; }if ($data['order_status']=="Refunded") { $badge_color = 'badge-secondary'; } ?> <td><span class="right badge <?php echo $badge_color; ?>"><?php echo $data['order_status'];?> </span></td> <td> <a href="order_details.php?edit=1&post_id=<?php echo $data["id"]; ?>" class="btn btn-info" data-toggle="tooltip" data-original-title="Edit"><i class="fa fa-eye"></i></a> </td> </tr> <?php $a++; } } else { } ?> </tbody> </table> <?php } else { echo "No Order Found..."; } } ?> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <!-- account area end --> <!-- Footer Area start --> <?php include_once("footer.php"); } ?>