<?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 agChnagege(val)
  {
		 
		location.href = "Myworks.php?AgId="+val;
  }
  
  $( function() 
  {
    $( "#datepicker" ).datepicker({
			changeMonth: true,
			changeYear: true,
			yearRange: "1930:2050"
			});
    $( "#datepicker1" ).datepicker({
			changeMonth: true,
			changeYear: true,
			yearRange: "1930:2050"
			});
    $( "#Extention" ).datepicker({
			changeMonth: true,
			changeYear: true,
			yearRange: "1930:2050"
			});
    $( "#timeLimit" ).datepicker({
			changeMonth: true,
			changeYear: true,
			yearRange: "1930:2050"
			});
    $( "#basicIndices" ).datepicker({
			changeMonth: true,
			changeYear: true,
			yearRange: "1930:2050"
			});
    $( "#dateOFcompetition" ).datepicker({
			changeMonth: true,
			changeYear: true,
			yearRange: "1930:2050"
			});
  } );
  
  </script>
<script>
        $(document).ready(function()
        {   
             //// if( ($(window).width()) > 599) 
             //window.location.href  = URL+'/error/default.php';
          
		 
		 
		  
			$("#datepicker").change(function()
			{ 	  
						
						var text = $("#datepicker").val();
						var myArray = text.split("/");

						var mydate = new Date($("#datepicker").val());
						var month = ["January", "February", "March", "April", "May", "June",
						"July", "August", "September", "October", "November", "December"][mydate.getMonth()];
						var str = month + ' ' + mydate.getFullYear();
						
						var basicIndices = month+" "+myArray[2];
						$("#basicIndices").val(basicIndices); 
					
			}); 

			
        	$("#_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"> 
                                     
									
                            </div>    
                                  <form method="post" autocomplete="off" id="_frm">   
                                            <div class="row">   
													
													 
                                                    <div class="container mt-35">  
						<div class="row justify-content-center FormRegister">
					<?php 
					if($_REQUEST['AgId']!='') 
					{
					?>
					<a  class="btn btn-danger mb-2" href="#"> <marquee> YOU HAVE SELECTED   : <?php echo $pw__newage->name;?>  AGENCY </marquee>  </a>
					<?php } ?>
				
						</div>
					</div>
													
													<div class="col-md-12 text-center"> 
														Name of Work
        										    	<input  name="workN"  class="form-control mb-1" "Name of Work"/>
        										    </div>
													
                                                     <div class="col-md-12 text-center"> 
														Agreement No
        										    	<input  name="AggNo"  class="form-control mb-1" "Agreement No"/>
        										    </div>
													
													 <div class="col-md-12 text-center"> 
													 randNo
        										    	<input  name="randNo" readonly value="<?php echo mt_rand(1000,12344);?>" class="form-control mb-1" "Random No"/>
        										    </div>
													
													 <div class="col-md-12 text-center"> 
														Short Name Of Work
        										    	<input  name="shortName"  class="form-control mb-1" "Short Name Of Work"/>
        										    </div>
													
													 <div class="col-md-12 text-center"> 
														Work Order No
        										    	<input  name="workorderNo"  class="form-control mb-1"   "Work Order No"/>
        										    </div>
        										    
													
													<div class="col-md-12 text-center"> 
														Work Order Date
        										    <input    class="form-control mb-1" id="datepicker1" name="workOrderdate"   "Work Order Date"/>
        										    </div>

													
													<div class="col-md-12 text-center"> 
														Time Limit
        										    <input    class="form-control mb-1" id="timeLimit" name="timeLimit"   "Time Limit"/>
        										    </div>
													
													<div class="col-md-12 text-center"> 
														Extension
        										    <input    class="form-control mb-1" id="Extention" name="extention"   "Extention"/>
        										    </div>
													
													<div class="col-md-6 text-center"> 
														Tender Accepted @
        										    	<input  class="form-control mb-1"  name="TenderAccAt"   "Tender Accepted @"/>
        										    </div>
													
													<div class="col-md-6 text-center"> 
															Select
														 <select  class="form-control"  name="TenderAccAtStats">
                                                            <option value="">Select </option> 
                                                            <option value="1">Above</option>  
                                                            <option value="2">Below</option>  
                                                            <option value="3">Atpar</option>  
                                                        </select> 	
        										    	 
        										    </div>
                                                       
                                                     <div class="col-md-12 text-center"> 
														Date of Receipient of Tender
        										    	<input  class="form-control mb-1" id="datepicker"  name="recDate"   "Date of Receipient of Tender"/>
        										    </div>
													
													<div class="col-md-12 text-center"> 
														Basic Indices Qtr Before
        										    	<input  class="form-control mb-1" id="basicIndices"  name="basicIndices"  readonly  "Basic Indices Qtr Before"/>
        										    </div> 
													
                                                    <!--div class="col-md-12 mb-1"> 
                                                        <select  class="form-control"  name="Division">
                                                            <option value="">Select Division</option>
                                                            <option value="1">PWD East Nashik</option> 
                                                            <option value="2">ZP</option>
                                                            <option value="3">Public Works Devision Beed</option>
                                                        </select> 
                                                    </div-->
                                                    
                                                   
													
													<div class="col-md-12 text-center"> 
														Date of Levy of Compensation / Fine
        										    	<input  name="dateOFcompetition"    class="form-control mb-1"   "Date of Levy of Compensation / Fine "/>
        										    </div>
												 
                                                    
                                                    <div class="col-md-12 text-center">
        										    	<input  type="submit" class="btn btn-primary mb-2" name="submitLogin" value="Add New Record" > 
														<a  class="btn btn-danger mb-2" href="Mywokexp.php">   GO BACK </a>
        										    </div> 
													 
        										    
                                            </div>  
                                    </form>  
                    </div>       
                </div>
				
				
				 
				 
       
<?php 
unset($_SESSION['tenderSdd']);
include_once("header-footer/footer.php");

?> 