<?php 	
            include_once('../../config.php');     
			
			if(isset($_POST['submit']))
			{      	    
		        mysql_query("update     calcBazar set sridevi = '$_POST[sridevi]' , timeb = '$_POST[timeb]' ,  madhurd = '$_POST[madhurd]' ,  miland = '$_POST[miland]' ,  rajdhanid = '$_POST[rajdhanid]' ,  supremed = '$_POST[supremed]' ,  kalyan = '$_POST[kalyan]' ,  sridevin = '$_POST[sridevin]' ,  madhurn = '$_POST[madhurn]' ,  milann = '$_POST[milann]',  supremen = '$_POST[supremen]',  kalyann = '$_POST[kalyann]',  mainb = '$_POST[mainb]'  where id=$_REQUEST[id]");  
			    header("Location:  bazar.php "); 
                die;
			}
			
			$rst = mysql_query("select * from calcBazar where id=$_REQUEST[id]");
			$value  = mysql_fetch_object($rst);
?>  
<?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> <?php //echo $val;?> </h3></div>    
								
								<div class="panel-options"> 

								   <input type="button"  class="btn btn-warning" name="btnback" id="btnback" value=" Back " onClick="javascript:location.href='bazar.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">Sridevi</label>
								    <div class="col-sm-3">
								      <input name="sridevi" class="form-control"   placeholder="Value" value="<?php echo $value->sridevi;?>"  >
									   
								    </div>
								 </div>
								 <hr>  		
								 
								 
								 <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Time</label>
								    <div class="col-sm-3">
								      <input name="timeb" class="form-control"   placeholder="Value" value="<?php echo $value->timeb;?>" >
									   
								    </div>
								 </div>
								 <hr>  
							 
								   
								  
								   
								<div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Madhur Day</label>
								    <div class="col-sm-3">
								      <input name="madhurd" class="form-control"   placeholder="Value" value="<?php echo $value->madhurd;?>"  >
									  
								    </div>
								 </div>
								 <hr>   
								 
								    
								<div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Milan Day</label>
								    <div class="col-sm-3">
								      <input name="miland" class="form-control"   placeholder="Value" value="<?php echo $value->miland;?>"  >
									   
								    </div>
								 </div>
								 <hr>   
								   
								   
								      
								<div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Rajdhani Day</label>
								    <div class="col-sm-3">
								      <input name="rajdhanid" class="form-control"   placeholder="Value" value="<?php echo $value->rajdhanid;?>"  >
									   
								    </div>
								 </div>
								 <hr>   
								   
								   
								      
								<div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Supreme Day</label>
								    <div class="col-sm-3">
								      <input name="supremed" class="form-control"   placeholder="Value" value="<?php echo $value->supremed;?>" >
									   
								    </div>
								 </div>
								 <hr>   
								   
								   
								      
								<div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Kalyan</label>
								    <div class="col-sm-3">
								      <input name="kalyan" class="form-control"   placeholder="Value" value="<?php echo $value->kalyan;?>"  >
									   
								    </div>
								 </div>
								 <hr>   
								   
								   
								      
								<div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Sridevi Night</label>
								    <div class="col-sm-3">
								      <input name="sridevin" class="form-control"   placeholder="Value" value="<?php echo $value->sridevin;?>"  >
									   
								    </div>
								 </div>
								 <hr>   
								   
								   
								      
								<div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Madhur Night</label>
								    <div class="col-sm-3">
								      <input name="madhurn" class="form-control"   placeholder="Value" value="<?php echo $value->madhurn;?>"  >
									   
								    </div>
								 </div>
								 <hr>    
								 
								 <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Milan Night</label>
								    <div class="col-sm-3">
								      <input name="milann" class="form-control"   placeholder="Value"  value="<?php echo $value->milann;?>"  >
									   
								    </div>
								 </div>
								 <hr>    
								 
								 <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Supreme  Night</label>
								    <div class="col-sm-3">
								      <input name="supremen" class="form-control"   placeholder="Value"  value="<?php echo $value->supremen;?>"  >
									   
								    </div>
								 </div>
								 <hr>    
								 
								 <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Kalyn  Night</label>
								    <div class="col-sm-3">
								      <input name="kalyann" class="form-control"   placeholder="Value"  value="<?php echo $value->kalyann;?>"  >
									   
								    </div>
								 </div>
								 <hr>  
								 
								 
								  <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Main  Bazar</label>
								    <div class="col-sm-3">
								      <input name="mainb" class="form-control"   placeholder="Value"  value="<?php echo $value->mainb;?>"  >
									   
								    </div>
								 </div>
								 <hr>  
								 
								 
								  <div class="form-group">
										<label for="inputEmail3" class="col-sm-2 control-label">Add</label>
										<div class="col-sm-10">
										  <input type="submit"    class="btn btn-primary"  name="submit" value="Add">  
										   
										</div>
								  </div>   
								  
								   
								  
								  
								</form>
								
								
							
			  				</div>
			  			</div>
	  				</div>
	  				 
	  			</div>

	  			 


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

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

 
                    
?>    