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

$disp = '';
$pagetitle = 'View Salaries';

$d = date('Y-m-d'); 
$year = date("Y",strtotime($d));
//$disp .=' <div class="col-md-6">';

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

$disp .='<form role="form" id="viewsalary" method="post" action="viewsalary2.php">
                                    <div class="row">
                                <div class="col-md-6">
                                    <h3>Fill all required fields(*) and click Submit</h3>
                                    										
                                        <div class="form-group">
                                            <label>Salary for: * </label> <br>
											<select name="salary_month"  data-validation="required" style="width:40%;border-radius:4px;padding:6px 12px;">
											<option value=""></option>
											<option value="01">Jan</option>
											<option value="02">Feb</option>
											<option value="03">Mar</option>
											<option value="04">Apr</option>
											<option value="05">May</option>
											<option value="06">June</option>
											<option value="07">Jul</option>
											<option value="08">Aug</option>
											<option value="09">Sep</option>
											<option value="10">Oct</option>
											<option value="11">Nov</option>
											<option value="12">Dec</option>
											</select>
                                            <input type="text" name="salary_year" data-validation="required number"  style="width:40%;border-radius:4px;padding:6px 12px;" value="'.$year.'"/>
                                                                                  </div>
                                       
										<div class="col-md-9" style="text-align:center"><button type="submit" class="btn btn-primary" name="viewsalarysubmit">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 : '#viewsalary'
});
</script>
                                      