<?php
include('../headertop.php');
include('../datepicker.php');

$disp = '';
$pagetitle = 'New Contractor Details';
//$disp .=' <div class="col-md-6">';

if(isset($_REQUEST['sm']))
$disp .= '<div class="smdiv">'.$_REQUEST['sm'].'</div>';
else
$disp .= '<div class="smdiv">Add Contractor Details</div>';

$disp .='<form role="form" id="addcontractor" method="post" action="addcontractor2.php" >
                                    <div class="row">
                                <div class="col-md-6">
                                    <h3>Fill all required fields(*) and click Submit</h3>
                                    
                                        <div class="form-group">
                                            <label>Name *</label>
                                            <input type="text" name="name" data-validation="required" class="form-control" />
                                                                                  </div>
                                        <div class="form-group">
                                            <label>Phone *</label>
                                            <input type="text" class="form-control" name="phone" data-validation="required number"   />
                                        </div>
                                       
										                                       
                                       
                                        <div class="form-group">
                                            <label> Office Address </label>
                                            <textarea class="form-control" name="project_address" rows="3"></textarea>
                                        </div>
										
										
                                        
											  
																				  
											  </div>
											  
										                                             
                                               		<div class="col-md-6" style="margin-top:55px">
													
													<div class="form-group">
                                            <label>Bank Details </label>
                                            <textarea class="form-control" name="bank_details"  rows="3"></textarea>
                                        </div>
																						
											<div class="form-group">
                                            <label>Other Details (if any) </label>
                                            <textarea class="form-control" name="other_details"  rows="3"></textarea>
                                        </div> 
										
										</div>  
										
										 
										
                                        </div>
										
										<div class="col-md-9" style="text-align:center"><button type="submit" class="btn btn-primary" name="addcontractorsubmit">Submit Button</button>
                                        <button type="reset" class="btn btn-default">Reset Button</button>
										</form></div>
                                    </div>';
									
									include('../template.php');
									include('../header.php');
                                    ?>
                                    <script>
                                    $.validate({
  form : '#addcontractor'
});
</script>
                                      