<?php 
include_once("header-footer/header.php")
?>

<link rel="stylesheet" href="//code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/ui/1.13.2/jquery-ui.js"></script>
 <script>
  
  $( function() 
  {
    $( "#datepicker" ).datepicker();
    $( "#datepicker1" ).datepicker();
    $( "#Extention" ).datepicker();
    $( "#timeLimit" ).datepicker();
    $( "#basicIndices" ).datepicker();
  } );
  
  </script>
<script>
        $(document).ready(function()
        {   
             //// if( ($(window).width()) > 599) 
             //window.location.href  = URL+'/error/default.php';
          
        	$("#_frm").validate({
        		
        		errorElement:'div',
        		rules:{ 
        		    
        		    
        		    Title:{
        				required:true,
        				maxlength:300,
        				minlength:3 
        			}, 
        			AggNo:{
        				required:true 
        			},
        			workOrder:{
        				required:true 
        			}, 
        			workcomm:{
        				required:true 
        			},
        			cost:{
        				required:true,
        				maxlength:10,
        			} 
        			
        		},
        		messages:{
                   
        			Title:{
        				required:"Enter project title",
        				maxlength:"Maximum  300 charaters allow",
        				minlength:"Minimum 3 charaters required"  
        			},
        			AggNo:{
        				required:"Enter agreement no "
        			},
        			workOrder:{
        				required:"Select date of work order "
        			},
        			workcomm:{
        				required:"Select date : order of commencement  "
        			},
        			cost:{
        				required:"Enter project cost",
    					maxlength:"Maximum  19 digits allow",
        			}      
        			 
        		}
        	}); 
        }); 
        </script>
        
        <style>
          .FormRegister
          {
              border: 1px solid #c2c2c2;
              margin: 1px;
              border-radius: 3px;
          }
        </style>
        
    	<link href="<?php echo ROOTPATH;?>/view/css/screen-600.css" rel="stylesheet" type="text/css">
               <?php 
	    include_once(ABS_PATH."/menu.php");
	?> 
               
                <div class="container mt-35">
                    <div class="row justify-content-center FormRegister">
                            <div class="col-12 p-3 text-center"> 
                                    <h3 class="card-title">
											<?php 
												 
														echo "Update Agency ";
											?>
									
									</h3>
									
									<a  class="btn btn-primary mb-2" href="Mywokexp.php"> GO Back</a>
                            </div>    
                                  <form method="post" autocomplete="off" id="_frm">   
                                            <div class="row"> 
                                                    
                                                    <div class="col-md-12 mb-1"> 
                                                        <input  class="form-control" id="Title" name="agency" value="<?php echo $AgencyId->name;?>" placeholder="Name of Agency" required>
                                                    </div>
                                                    
													
													<div class="col-md-12 text-center"> 
        										    	<input  name="address"  class="form-control mb-1" placeholder="Address"    value="<?php echo $AgencyId->address;?>" />
        										    </div>
													
                                                     <div class="col-md-12 text-center"> 
        										    	<input  name="phone"  class="form-control mb-1" placeholder="Phone"  value="<?php echo $AgencyId->ph;?>"  />
        										    </div>
													         
                                                    
                                                    <div class="col-md-12 text-center">
        										    	<input  type="submit" class="btn btn-primary mb-2" name="submitLogin" value="Update  Record" > 
        										    </div> 
        										    
                                            </div>  
                                    </form>  
                    </div>       
                </div>
				 
				
                
              
       
<?php 
include_once("header-footer/footer.php");
unset($_SESSION['adAdd']);

?> 