<?php 	include_once('../../config.php'); 
		 

			if(isset($_POST['submit']))
			{
 				mysql_query(" update  RateCard set SingleAnk = '$_POST[SA]' ,SP = '$_POST[SP]' ,DP = '$_POST[DP]' ,TP = '$_POST[TP]',jodi = '$_POST[jodi]'   ");  
			}   
		 $RateCard = mysql_fetch_object(mysql_query(" select * from  RateCard ")); 
		 
?>  
<?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> Rate Card</h3></div>    
								
								<!--div class="panel-options"> 

								   <input type="button"  class="btn btn-warning" name="btnback" id="btnback" value=" Back " onClick="javascript:location.href='registered_users.php';" />
								  
								</div-->
							  
								 
							</div>
							
							
			  				<div class="panel-body">    
			  					<form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" id="product_frm" autocomplete="off"> 
								
							 
								 
								 <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Single Ank</label>
								    <div class="col-sm-3">
								      <input name="SA" class="form-control"  value="<?php echo $RateCard->SingleAnk;?>"  placeholder="Single Ank"   required>
								    </div>
								 </div>
								 <hr>
								  <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">SP</label>
								    <div class="col-sm-3">
								      <input name="SP" class="form-control"   placeholder="SP"    value="<?php echo $RateCard->SP;?>"  required>
								    </div>
								 </div>
								 <hr>
								 
								 <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">DP</label>
								    <div class="col-sm-3">
								      <input name="DP" class="form-control"   placeholder="DP"    value="<?php echo $RateCard->DP;?>"  required>
								    </div>
								 </div>
								 <hr>
								   
								  <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">TP</label>
								    <div class="col-sm-3">
								      <input name="TP" class="form-control"   placeholder="TP"    value="<?php echo $RateCard->TP;?>"  required>
								    </div>
								 </div>
								 <hr> 
								 
								   <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Jodi</label>
								    <div class="col-sm-3">
								      <input name="jodi" class="form-control"   placeholder="Jodi"    value="<?php echo $RateCard->jodi;?>"  required>
								    </div>
								 </div>
								 <hr> 
								 
								 
								  <div class="form-group">
										<label for="inputEmail3" class="col-sm-2 control-label">UPDATE</label>
										<div class="col-sm-10">
										  <input type="submit"     class="btn btn-primary"  name="submit" value="UPDATE">
										</div>
								  </div>   
								</form>
								
								
							
			  				</div>
			  			</div>
	  				</div>
	  				 
	  			</div>

	  			 


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

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