<?php 	include_once('../../config.php');   	
		include_once(ABS_PATH.'/admin/login_check.php');    
 
        
			if(isset($_POST['submitF']))
			{       
			    
            			$stmt=$conn->prepare("update  UI__StudentPer set fundPer=:fundPer,managePer=:managePer    ");    
                        $stmt->bindValue(':fundPer', $_POST['fundPer'] , PDO::PARAM_STR);  
                        $stmt->bindValue(':managePer', $_POST['PramosionPer'] , PDO::PARAM_STR);  
                        $stmt->execute();    
        				header("Location: studentManage.php");  
        				die;
			}     
			
                    $stmt=$conn->prepare("select * from   UI__StudentPer   ");    
                    $stmt->execute();  
                    $AllUsers = $stmt->fetch(PDO::FETCH_OBJ);     
                    
?>  
<?php  include ABS_PATH.'/admin/header.php';	?>  


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

	
	$("#product_frm").validate({
		
		errorElement:'div',
		rules:{ 
			city:{
				required:true				 
			} 
			
			
			
		},
		messages:{				
			 
			 city:{
				required:"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> Student Details</h3></div>    
								
							 
								 
							</div>
							
							
			  				<div class="panel-body">    
			  					<form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" id="product_frm"> 
							   	 <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Add Fund Percentage</label>
								    <div class="col-sm-6">
								      <input name="fundPer" class="form-control"   placeholder="Fund %"       value="<?php echo $AllUsers->fundPer;?>"  >
								    </div>
								 </div>
								 <hr>
								 
								 
								 <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Promotion </label>
								    <div class="col-sm-6">
								      <input name="PramosionPer" class="form-control"   placeholder="Promotion " value="<?php echo $AllUsers->managePer;?>"    >
								    </div>
								 </div>
								 <hr>
								 
								 
							  
								 
								  <div class="form-group">
										<label for="inputEmail3" class="col-sm-2 control-label">Update</label>
										<div class="col-sm-6">
										  <input type="submit"    class="btn btn-primary"  name="submitF" value="Update"> 
										</div>
								  </div>   
								</form>
								
								
							
			  				</div>
			  			</div>
	  				</div>
	  				 
	  			</div>

	  			 


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

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