<?php
   $select = mysqli_query($conn, "SELECT * FROM `users` WHERE `id` = '".$_SESSION['login_id']."'");
   $rows   = mysqli_fetch_assoc($select);
?>
<section class="content-header">
   <div class="row">
      <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6 bottom20">
         <h3 class="capital font15 padding5 bold">UPDATE PROFILE</h3>
      </div>
   </div>
</section>
<hr class="bottom35">
<section class="hitz-top-header">
   <div class="row bottom40">
      <div class="col-xs-6">
         <div class="box box-success">
            <div class="box-body">
               <form action="user_management/profile_update.php" method="post" enctype="multipart/form-data" class="common-frm-validation" id="signupForm">
                  <div class="row">
                     <div class="col-lg-12">
                        <div class="form-group">
                           <label class="capital">NAME</label><span style="color: red">*</span>
                           <input type="text" name="name" id="name" class="form-control required" placeholder="NAME" value="<?php echo $rows['name'];?>" autocomplete="off">
                        </div>
                     </div>
                  </div>
                  
                  <div class="row">
                     <div class="col-lg-12">
                        <div class="form-group">
                           <label class="capital">MOBILE NO</label><span style="color: red">*</span>
                           <input type="text" name="mobile" id="mobile" class="form-control required" placeholder="MOBILE NO" value="<?php echo $rows['mobile'];?>" autocomplete="off">
                        </div>
                     </div>
                  </div>
                  <div class="row">
                     <div class="col-lg-12">
                        <div class="form-group">
                           <label class="capital">USERNAME</label><span style="color: red">*</span>
                           <input type="text" name="username" id="username" class="form-control required" placeholder="USERNAME" value="<?php echo $rows['username'];?>" autocomplete="off">
                        </div>
                     </div>
                  </div>
                  <div class="row">
                     <div class="col-lg-12">
                        <div class="form-group">
                           <label class="capital">EMAIL ID</label><span style="color: red">*</span>
                           <input type="text" name="email" id="email" class="form-control required" placeholder="EMAIL ID" value="<?php echo $rows['email'];?>" autocomplete="off">
                        </div>
                     </div>
                  </div>
                  <input type="hidden" value="<?php echo $_SESSION['login_id'];?>" name="id" id="id">
                  <hr>
                  <div class="row" align="center">
                     <button id="btn" class="btn btn-primary ajax-submit capital" type="submit"> Update & save </button>
                     <a href="index.php?page=dashboard.php" class="btn btn-danger capital"> Cancel</a>
                  </div>
               </form>
            </div>
         </div>
      </div>
   </div>
</section>