ok
Direktori : /home2/selectio/public_html/tnpsctestbatch.com/ |
Current File : /home2/selectio/public_html/tnpsctestbatch.com/my_profile.php |
<?php include 'header.php'; $user_details = $pdo->prepare("SELECT * FROM tbl_students WHERE id =".$_SESSION['user_exam']['id']); $user_details->execute(); $user_detail_data = $user_details->fetchAll(PDO::FETCH_ASSOC); $user_detail_total = $user_details->rowCount(); ?> <!-- CONTENT START --> <div class="page-content"> <!-- INNER PAGE BANNER --> <div class="wt-bnr-inr overlay-wraper bg-center" style="background-image:url(images/banner/1.jpg);"> <div class="overlay-main site-bg-white opacity-01"></div> <div class="container"> <div class="wt-bnr-inr-entry"> <div class="banner-title-outer"> <div class="banner-title-name"> <h2 class="wt-title">HI ' <?= $_SESSION['user_exam']['name'] ?> </h2> </div> </div> <!-- BREADCRUMB ROW --> <!--<div>--> <!-- <ul class="wt-breadcrumb breadcrumb-style-2">--> <!-- <li><a href="index.html">Home </a></li>--> <!-- <li>Company Profile </li>--> <!-- </ul>--> <!--</div>--> <!-- BREADCRUMB ROW END --> </div> </div> </div> <!-- INNER PAGE BANNER END --> <!-- OUR BLOG START --> <div class="section-full p-t120 p-b90 site-bg-white"> <div class="container"> <div class="row"> <div class="col-xl-3 col-lg-4 col-md-12 rightSidebar m-b30"> <div class="side-bar-st-1"> <div class="twm-nav-list-1"> <ul> <li class="active"><a href="my_profile.php"><i class="fa fa-user"></i> My Profile </a></li> <li><a href="profile_transaction.php"><i class="fa fa-credit-card"></i>My Subscription</a></li> <li><a href="logout.php"><i class="fa fa-share-square"></i> Logout </a></li> </ul> </div> </div> </div> <div class="col-xl-9 col-lg-8 col-md-12 m-b30"> <!--Filter Short By--> <div class="twm-right-section-panel site-bg-gray"> <form id="user_details" method="post"> <input class="form-control" name="ids" value="<?= $user_detail_data[0]['id'] ?>" type="hidden" placeholder="Enter Your Name" /> <!--Basic Information--> <div class="panel panel-default"> <div class="panel-heading wt-panel-heading p-a20"> <h4 class="panel-tittle m-a0">Your Details </h4> </div> <div class="panel-body wt-panel-body p-a20 m-b30 "> <div class="row"> <div class="col-xl-6 col-lg-6 col-md-12"> <div class="form-group"> <label>Name</label> <div class="ls-inputicon-box"> <input class="form-control" name="name" value="<?= $user_detail_data[0]['name'] ?>" type="text" placeholder="Enter Your Name" /> </div> </div> </div> <div class="col-xl-6 col-lg-6 col-md-12"> <div class="form-group"> <label>Email</label> <div class="ls-inputicon-box"> <input class="form-control" name="email" value="<?= $user_detail_data[0]['email'] ?>" type="email" placeholder="Enter Your email" /> </div> </div> </div> <div class="col-xl-6 col-lg-6 col-md-12"> <div class="form-group"> <label>Mobile No</label> <div class="ls-inputicon-box"> <input class="form-control" name="mobile_no" value="<?= $user_detail_data[0]['mobile_no'] ?>" type="number" placeholder="Enter Your Mobilr No" /> </div> </div> </div> <div class="col-xl-6 col-lg-6 col-md-12"> <div class="form-group"> <label>Date Of Birth</label> <div class="ls-inputicon-box"> <input class="form-control" name="dob" value="<?= $user_detail_data[0]['dob'] ?>" type="date" placeholder="Enter Your Date Of Birth" /> </div> </div> </div> <div class="col-xl-6 col-lg-6 col-md-12"> <div class="form-group"> <label>Password</label> <div class="ls-inputicon-box"> <input class="form-control" name="password" value="<?= $user_detail_data[0]['password'] ?>" type="text" placeholder="Enter Your Password" /> </div> </div> </div> <div class="col-lg-12 col-md-12"> <div class="text-left"> <button type="submit" class="site-button">Save Changes </button> </div> </div> </div> </div> </div> </form> </div> </div> </div> </div> </div> <!-- OUR BLOG END --> </div> <!-- CONTENT END --> <?php include 'footer.php' ?> <script> $('#user_details').on('submit', function(e){ console.log("Click And Form Working"); e.preventDefault(); $('#loading-div').show(); $('#content-div').hide(); $('#final_submit').prop('disabled', true); var formData = new FormData(this); formData.append('type', 'user_details_update'); $.ajax({ url: 'api/add_users.php', type: 'post', dataType: 'json', data: formData, cache: false, contentType: false, processData: false, enctype: 'multipart/form-data', success: function (response) { if(response['status']==200){ alert(response['message']); $('#loading-div').hide(); $('#content-div').show(); }else{ alert(response['message']); $('#loading-div').hide(); $('#content-div').show(); } } }); }); </script>