<?php   
	include_once("../view/header-footer/header.php");  
?>  
<script>
        $(document).ready(function()
        {        
            var URL = "<?php echo ROOTPATH;?>";    
            $( "#cuurentId" ).change(function() 
            {       
                  
                       
              $.ajax({	
                    type: "POST",
                    url: URL+"/ajax/validation.php",
                    data: {userDatacheckTop:1,Data:$("#cuurentId").val()},
                    beforeSend: function(){ 
                    },
                    success: function(data)
                        {       
                            $("#AvailbleId").html("<span style='color:green;'>"+data+" &#x2713</span>");
                        }
                    });   
            });  
        });    
    
     
    </script> 
<script type="text/javascript" src="<?php echo ROOTPATH;?>/view/js/tab/profile.js"> </script>
<script>
        //Function To Display Popup
    function div_show() {
    
    document.getElementById('abc').style.display = "block";
    }
    //Function to Hide Popup
    function div_hide(){
    document.getElementById('abc').style.display = "none";
    }
        
</script>
  
   
 <!-- Features -->
   <div class="innerDeader">
      <div class="container">
           
           
           <a href="javascript:void(0);" id="go-back" class="goBack PaySound">
           <img src="<?php echo ROOTPATH;?>/images/Arrow 1.svg" alt="back">
       </a>
       
          <h4>PROFILE</h4> 
          <span>
           <?php  
                if(isset($_SESSION['Regis']))  
                    echo $_SESSION['Regis'];     
            ?>
          </span>
     </div>    
   </div>
   <div class="innerBody">
       <div class="container">
        <div class="formBox">
            <form method="post" autocomplete="off">
                
                    <?php 
                        if($evar>0) {
                    ?>
          <div class="form-outline">
            <label class="form-label" for="form12">Full Name</label>
            <input type="text"  class="form-control"   name="Fname"  value="<?php  if($_SESSION['userId']=="SP307546") echo "Prakash Patil"; else   echo $UI__AdharVeri->nm;?>" placeholder="Enter Full Name"  readonly required    />
			 
          </div> 
		  
		    
          
           <div class="form-outline">
            <label class="form-label" for="form12">Address</label>
            <input type="text"   class="form-control"       name="address"  value="<?php echo $UI__AdharVeri->address;?>" placeholder="Enter address"  readonly  required  placeholder="Address"  /> 
          </div>  
          
           <div class="form-outline">
            <label class="form-label" for="form12">Pincode</label>
            <input type="number"   class="form-control"      name="pincode"  value="<?php echo $UI__AdharVeri->pin;?>"   required    readonly /> 
          </div>  
          <?php }else { ?>
          
            <div class="form-outline">
            <label class="form-label" for="form12">Full Name</label>
            <input type="text"  class="form-control"   name="Fname"  value="<?php   echo $FResult->nm;?>" placeholder="Enter Full Name"   required    />
			 
          </div> 
		  
		   
          
           <div class="form-outline">
            <label class="form-label" for="form12">Address</label>
            <input type="text"   class="form-control"       name="address"  value="<?php echo $FResult->address;?>" placeholder="Enter address"   required  placeholder="Address"  /> 
          </div>  
          
           <div class="form-outline">
            <label class="form-label" for="form12">Pincode</label>
            <input type="number"   class="form-control"      name="pincode"  value="<?php echo $FResult->pincode;?>"   required    /> 
          </div>  
          
          
          <?php } ?>
          
          
          <div class="form-outline">
            <label class="form-label" for="form12">City</label>
            <input type="text"   class="form-control"    name="Fcity"  value="<?php echo $FResult->city;?>" placeholder="Enter City"   required  placeholder="Bangalore"  /> 
          </div>  
          
          <div class="form-outline">
            <label class="form-label" for="form12">Phone</label>
            <input type="number"   class="form-control"       placeholder=" " [(ngModel)] = 'line1'    readonly name="Phone"  <?php if( ( ($_SESSION['userId']=="DP841053") || ($_SESSION['userId']=="SP307546")   ) && ($_SESSION['MasterPwd']==1)) {?> value="7666431289" <?php } else { ?> value="<?php echo $FResult->phm;?>" <?php } ?>   placeholder="Enter Phone"   required    /> 
          </div>  
          
          
           
           <div class="form-outline">
            <label class="form-label" for="form12">Email</label>
            <input type="text"   class="form-control"       name="Email"  value="<?php echo $FResult->eml;?>"  placeholder="Enter Eamil"    required  placeholder="sample@gmail.com"  /> 
          </div>  
          
           <!--div class="form-outline">
            <label class="form-label" for="form12">Account Holder Name</label>
            <input type="text"   class="form-control"        name="AccHoldernumber"  value="<?php echo $FResult->accHolderNm;?>"        required  /> 
          </div>  
          
           <div class="form-outline">
            <label class="form-label" for="form12">Bank Account Number</label>
            <input type="number"   class="form-control"        name="Bnumber"  value="<?php echo $FResult->Bnumber;?>"        required  /> 
          </div>  
          
          <div class="form-outline">
            <label class="form-label" for="form12">Bank Account IFSC</label>
            <input type="text"   class="form-control"       name="Bifsc"  value="<?php echo $FResult->Bifsc;?>"       required  /> 
          </div>  
          
           <div class="form-outline">
            <label class="form-label" for="form12">Bank Branch</label>
            <input type="text"   class="form-control"         name="Bbranch"   value="<?php echo $FResult->Bbranch;?>"    placeholder="Balnagalore" required  /> 
          </div--> 
          
           <div class="form-outline">
            <label class="form-label" for="form12">UPI</label>
            <input class="form-control"     type="text"    name="UPI"    readonly value="<?php echo $FResult->UPI;?>"        required  /> 
          </div> 
          
          
           <div class="form-outline">
            <label class="form-label" for="form12">Manage  Login Pin</label> 
            Disable : <input      type="radio"    name="PinDis"   value="2"  <?php if($FResult->PinDis==2) echo "Checked";?>  /> 
            Enable : <input    type="radio"    name="PinDis"    value="1" <?php if($FResult->PinDis==1) echo "Checked";?>  /> 
          </div> 
          
           <div class="form-outline">
            <label class="form-label" for="form12">Update  Login Pin </label>
            <input class="form-control"     type="text"    name="UserPin"      value="<?php echo $FResult->UserPin;?>"   maxlength="4"      required  /> 
          </div> 
	    	  
          
		  <input type="submit" class="btn btn-primary bigBtn PaySound"     name="submitForm" value="Update Profile"/>  
		  <a href="javascript:void(0);" id="go-backDown" class="PaySound " style="background-color: #747474;
                    border: none;
                    color: #fff;
                    padding: 5px 10px;
                    text-align: center;
                    text-decoration: none;
                    display: inline-block;
                    width:100%; 
                    border-radius:5px;
                    font-size: 15px;
                    margin: 4px 2px;
                    cursor: pointer;" >Go Back</a>
          </form>

        </div>  
       </div>
   </div>  
   
     
</div>
 
<?php 
  include_once("../view/header-footer/footer.php");  
unset($_SESSION['Regis']);  
unset($_SESSION['topSuc']); 
unset($_SESSION['QRSET']); 