<?php 	include_once('../../config.php');   	
		include_once(ABS_PATH.'/admin/login_check.php');    
 
  
			if(isset($_POST['submitF']))
			{     
    			$stmt=$conn->prepare("update   UI__Bns  set  paidStatus = 1,PaidDate=:PaidDate   where id=:id  "); 
                $stmt->bindValue(':id',$_REQUEST['Did'], PDO::PARAM_STR);  
                $stmt->bindValue(':PaidDate', date("d-M-Y H:i"), PDO::PARAM_STR);    
                $stmt->execute();   
				header("Location: lTrading.php?id=".$_REQUEST['id']."&Did=".$_REQUEST['Did']." ");  
				die;
			}    
        
            $stmt=$conn->prepare("select  * from  UI__Rgst where cuurentId=:id ");  
            $stmt->bindValue(':id', $_REQUEST['id'] , PDO::PARAM_STR);
            $stmt->execute(); 
            $AllUsers = $stmt->fetch(PDO::FETCH_OBJ);
            
           
            $sr = 1;    
		 
?>  
<?php  include ABS_PATH.'/admin/header.php';	?>  


 <script>
	$(function() {
		$( "#datepicker" ).datepicker(); 
	}); 
  
	$(document).ready(function()
	{   

	
	$("#product_frm").validate({
		
		errorElement:'div',
		rules:{ 
			city:{
				:true				 
			} 
			
			
			
		},
		messages:{				
			 
			 city:{
				:"Enter city name"				 
			} 
		}
	});


	});
 


</script>
		 
		 <div class="col-md-10">

	  			<div class="row">
	  				<div class="col-md-12">
	  					<div class="content-box-large">
							<div class="panel-heading">
								<div class="panel-title"> <h3>User Details</h3></div>    
								
								<div class="panel-options">   
								    
								</div> 
								 
							</div> 
							
			  				<div class="panel-body">    
			  					<form class="form-horizontal" role="form" method="post"> 
							   	 <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Name</label>
								    <div class="col-sm-6">
								      <input name="nm" class="form-control"   placeholder="Username"     value="<?php echo $AllUsers->nm; ?>"  >
								    </div>
								 </div>
								 <hr>
								  <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Password</label>
								    <div class="col-sm-6">
								      <input name="pwd" class="form-control"   placeholder="Password"     value="<?php echo $AllUsers->pwd;?>">
								    </div>
								 </div>
								 <hr>
								 
							 
								 
								 
								 <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Email</label>
								    <div class="col-sm-6">
								      <input name="eml" class="form-control"   placeholder="Username"      value="<?php echo $AllUsers->eml; ?>"  >
								    </div>
								 </div>
								 <hr>
								 
								 <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Phone No</label>
								    <div class="col-sm-6">
								      <input name="phm" class="form-control"   type="number" placeholder="Username"   value="<?php echo $AllUsers->phm; ?>"  >
								    </div>
								 </div>
								 <hr>
								 
								 
								   <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Ref Id</label>
								    <div class="col-sm-6">
								      <input  class="form-control"     readonly value="<?php echo  $AllUsers->refId; ?>"  >
								    </div>
								 </div>
								 <hr>
								 
								 
								  <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Bank Name </label>
								    <div class="col-sm-6">
								      <input  class="form-control"     readonly value="<?php echo  $AllUsers->Bname; ?>"  >
								    </div>
								 </div>
								 <hr>
								 
								  <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Bank IFSC </label>
								    <div class="col-sm-6">
								      <input  class="form-control"     readonly value="<?php echo  $AllUsers->Bifsc; ?>"  >
								    </div>
								 </div>
								 <hr>
								 
								 
								  <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Bank Account No</label>
								    <div class="col-sm-6">
								      <input  class="form-control"     readonly value="<?php echo  $AllUsers->bankAcc; ?>"  >
								    </div>
								 </div>
								 <hr>
								 
								  <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Acc  Holder Name </label>
								    <div class="col-sm-6">
								      <input  class="form-control"     readonly value="<?php echo  $AllUsers->accHolderNm; ?>"  >
								    </div>
								 </div>
								 <hr>
								 
								 
								 
								 <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Branch</label>
								    <div class="col-sm-6">
								      <input  class="form-control"     readonly value="<?php echo  $AllUsers->barcnhType; ?>"  >
								    </div>
								 </div>
								 <hr>
								 
								 
								 
								 
								
								  
								 
								 
								 <div class="form-group">
										<label for="inputEmail3" class="col-sm-2 control-label">Paid Now</label>
										<div class="col-sm-6">
										  <input type="submit"    class="btn btn-primary"  name="submitF" value="Pay Now">
										</div>
								  </div>   
								  
								  
								</form>
								
								
							
			  				</div>
			  			</div>
	  				</div>
	  				 
	  			</div>

	  			 


	  		<!--  Page content -->
		  </div>
		</div>
    </div>

<?php  include ABS_PATH.'/admin/footer.php';	?>    