<?php 	include_once('../../config.php');   	
		include_once(ABS_PATH.'/admin/login_check.php');    
 
  
  
			if(isset($_POST['submitF']))
			{     
                $stmt=$conn->prepare("update  UI__theamcolor set  colorTyp=:colorTyp,colorTyp1=:colorTyp1,colorTyp2=:colorTyp2");    
                $stmt->bindValue(':colorTyp', $_POST['colorTyp'] , PDO::PARAM_STR);
                $stmt->bindValue(':colorTyp1', $_POST['colorTyp1'] , PDO::PARAM_STR);
                $stmt->bindValue(':colorTyp2', $_POST['colorTyp2'] , PDO::PARAM_STR);
                $stmt->execute();         
				header("Location: theamcolor.php");  
				die;
			}   
			
			if(isset($_POST['submitN']))
			{     
                $stmt=$conn->prepare("update  UI__theamcolor set  colorTyp3=:colorTyp3,colorTyp4=:colorTyp4");     
                $stmt->bindValue(':colorTyp3', $_POST['colorTyp3'] , PDO::PARAM_STR);
                $stmt->bindValue(':colorTyp4', $_POST['colorTyp4'] , PDO::PARAM_STR);
                $stmt->execute();         
				header("Location: theamcolor.php");  
				die;
			}   
			
			if(isset($_POST['submitD']))
			{     
                $stmt=$conn->prepare("update  UI__theamcolor set  colorTyp5=:colorTyp5 ");     
                $stmt->bindValue(':colorTyp5', $_POST['colorTyp5'] , PDO::PARAM_STR); 
                $stmt->execute();         
				header("Location: theamcolor.php");  
				die;
			}   
			
			
			
			
			if(isset($_POST['submitP']))
			{     
                $stmt=$conn->prepare("update  UI__theamcolor set  pattern=:pattern ");    
                $stmt->bindValue(':pattern', $_POST['pattern'] , PDO::PARAM_STR); 
                $stmt->execute();         
				header("Location: theamcolor.php");  
				die;
			}   
			
    
            $stmt=$conn->prepare("select  * from  UI__theamcolor   ");   
            $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:{
				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> Theam 1</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"> 
							   	 <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Color 1</label>
								    <div class="col-sm-6">
								      <input name="colorTyp" class="form-control"   placeholder="Color"   required  value="<?php echo $AllUsers->colorTyp; ?>"  >
								    </div>
								 </div>
								 <hr>
							 
							  
							 
							    <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Color 2</label>
								    <div class="col-sm-6">
								      <input name="colorTyp1" class="form-control"   placeholder="Color"   required  value="<?php echo $AllUsers->colorTyp1; ?>"  >
								    </div>
								 </div>
								 <hr>
								 
								   <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Color 3</label>
								    <div class="col-sm-6">
								      <input name="colorTyp2" class="form-control"   placeholder="Color"   required  value="<?php echo $AllUsers->colorTyp2; ?>"  >
								    </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">
										  <input type="hidden" value="<?php echo $AllUsers->cuurentId?>"  name="Ccid"/> 
										</div>
								  </div> 
								  
								</form>   
			  				</div>
			  			</div>
	  				</div> 
	  			</div>
	  			
	  			
	  			<div class="row">
	  				<div class="col-md-12">
	  					<div class="content-box-large">
							<div class="panel-heading">
								<div class="panel-title"> <h3>  Theam 2</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"> 
							   	 <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Color 1</label>
								    <div class="col-sm-6">
								      <input name="colorTyp3" class="form-control"   placeholder="Color"   required  value="<?php echo $AllUsers->colorTyp3; ?>"  >
								    </div>
								 </div>
								 <hr>
							 
							  
							 
							    <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Color 2</label>
								    <div class="col-sm-6">
								      <input name="colorTyp4" class="form-control"   placeholder="Color"   required  value="<?php echo $AllUsers->colorTyp4; ?>"  >
								    </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="submitN" value="Update">
										  <input type="hidden" value="<?php echo $AllUsers->cuurentId?>"  name="Ccid"/> 
										</div>
								  </div> 
								  
								</form>   
			  				</div>
			  			</div>
	  				</div> 
	  			</div>
	  			
	  			
	  			
	  			<div class="row">
	  				<div class="col-md-12">
	  					<div class="content-box-large">
							<div class="panel-heading">
								<div class="panel-title"> <h3>  Theam 3</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"> 
							   	 <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Color 1</label>
								    <div class="col-sm-6">
								      <input name="colorTyp5" class="form-control"   placeholder="Color"   required  value="<?php echo $AllUsers->colorTyp5; ?>"  >
								    </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="submitD" value="Update">
										  <input type="hidden" value="<?php echo $AllUsers->cuurentId?>"  name="Ccid"/> 
										</div>
								  </div> 
								  
								</form>   
			  				</div>
			  			</div>
	  				</div> 
	  			</div>
	  			
	  			
	  			
	  			
	  			
	  			<div class="row">
	  				<div class="col-md-12">
	  					<div class="content-box-large">
							<div class="panel-heading">
								<div class="panel-title"> <h3>  Theam Pattern</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"> 
							   	 <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Theam Pattern 1</label>
								    <div class="col-sm-6">
								      <input    type="radio"    name="pattern"    value="1"   <?php if($AllUsers->pattern==1) echo "Checked"; ?>   >
								    </div>
								 </div>
								 <hr>
							 
							  
							 
							     <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Theam Pattern 2</label>
								    <div class="col-sm-6">
								      <input   type="radio"  name="pattern"   value="2"   <?php if($AllUsers->pattern==2) echo "Checked"; ?>  >
								    </div>
								 </div>
								 <hr>
								  
							 
							 
							 
							     <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">Theam Pattern 3</label>
								    <div class="col-sm-6">
								      <input   type="radio"  name="pattern"   value="3"   <?php if($AllUsers->pattern==3) echo "Checked"; ?>  >
								    </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="submitP" value="Update"> 										   
										</div>
								  </div>   
								</form>
								
								
							
			  				</div>
			  			</div>
	  				</div> 
	  			</div>

	  			 


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

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