79 lines
1.8 KiB
PHP
79 lines
1.8 KiB
PHP
<script>
|
|
|
|
$(function() {
|
|
var d = new Date();
|
|
|
|
var month = d.getMonth();
|
|
var day = d.getDate();
|
|
var year = d.getFullYear() ;
|
|
var SIAStartYear = year - 2015;
|
|
var mindt = year-70;
|
|
var maxdt = year-15;
|
|
|
|
|
|
$("#selectmonth").datepicker({
|
|
minDate : new Date(year-SIAStartYear,1,1),
|
|
maxDate :'now',
|
|
dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
<section class="content-header">
|
|
<h1>
|
|
<center>Siddharth Industries PaySlip Generator</center>
|
|
|
|
</h1>
|
|
</section>
|
|
<section class="content">
|
|
<div class="row" style="border:2px dotted; padding:5%">
|
|
<div class="row" align="right">
|
|
<button type="button" class="btn btn-info">Print</button>
|
|
</div>
|
|
<div class="row" >
|
|
<div class="col-md-6">
|
|
<div class="row">
|
|
<div class="form-group">
|
|
<span>Employee</span>
|
|
<select class="form-control " id="role" name="role">
|
|
<option value="0">Select Employee</option>
|
|
<?php
|
|
if(!empty($roles))
|
|
{
|
|
foreach ($roles as $rl)
|
|
{
|
|
?>
|
|
<option value="<?php echo $rl->role ?>"><?php echo $rl->role ?></option>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<input type="checkbox" name="allemployee" value="allempolyee">Select All<br>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<span for="selectmonth">Select Month</span>
|
|
<input id="selectmonth" required name="selectmonth" onkeypress="return false;" maxlength="10" class="form-control" value= "<?php echo isset($_POST['selectmonth']) ? $_POST['selectmonth'] : '' ?>">
|
|
</div>
|
|
</div>
|
|
<div class="row" align="right">
|
|
<button type="button" class="btn btn-info">Generate</button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</section>
|
|
</div>
|
|
|