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

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

if(isset($_REQUEST['sm']))
$disp .= '<div class="smdiv">'.$_REQUEST['sm'].'</div>';
else
$disp .= '<div class="smdiv">Let us begin</div>';

$disp .='<form role="form" id="addemployee" method="post" action="addemployee2.php" enctype="multipart/form-data">
                                    <div class="row">
                                <div class="col-md-6">
                                    <h3>Fill all required fields(*) and click Submit</h3>
                                    
                                        <div class="form-group">
                                            <label>Employee Name *</label>
                                            <input type="text" name="name" data-validation="required" class="form-control" />
                                                                                  </div>
                                        <div class="form-group">
                                            <label>Father/Husband Name *</label>
                                            <input type="text" class="form-control" name="fname" data-validation="required"  placeholder="Father\'s full name" />
                                        </div>
                                        <div class="form-group">
                                            <label>Qualification *</label>
                                           <input type="text" class="form-control" name="qualification" data-validation="required" placeholder="Employee Qualification credentials" />
                                        </div>
										
										                                   
                                        <div class="form-group">
                                            <label>Mobile Number *</label>
                                            <input type="text" class="form-control" name="mobile" data-validation="required number" placeholder="Mohile Number" />
                                        </div>
                                        
                                       
                                        <div class="form-group">
                                            <label>Address *</label>
                                            <textarea class="form-control" name="address" data-validation="required" rows="3"></textarea>
                                        </div>
                                        
											  
																				  
											  </div>
											  
											  <div class="col-md-6" style="margin-top:55px">
											  
											  <div class="form-group" >
											  <label>Upload Photo</label>
											  <input type="file" multiple name="empphoto" class="form-control">
											  </div>
											  
											  <div class="form-group">
                                            <label>Gender *</label>
                                            <div class="checkbox">
                                                <label>
                                                    <input type="radio" value="Male" name="gender" data-validation="required" />Male
                                                </label>
                                            </div>
                                            <div class="checkbox">
                                                <label>
                                                    <input type="radio" value="Female" name="gender" data-validation="required" />Female
                                                </label>
                                            </div>
                                              </div>
											  
											  
											  <div class="form-group" >
                                            <label>Date of Joining *</label>
                                           <input type="text" id="datep1" readonly class="form-control" name="doj" data-validation="required"   placeholder="Employee Joining Date" />
                                        </div>
                                              
                                               											
											   <div class="form-group">
                                            <label>Salary *</label>
                                           <input type="text" class="form-control" name="salary" data-validation="required number" data-validation-error-msg="Please enter salary" placeholder="Monthly salary of employee" />
                                        </div>
										
										 
										
                                        </div>
										
										<div class="col-md-9" style="text-align:center"><button type="submit" class="btn btn-primary" name="addemployeesubmit">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 : '#addemployee'
});
</script>
                                      