Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.12.163.23
Current Path : /var/www/html/oums/ |
| Current File : /var/www/html/oums/holidays.php |
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" media="screen" href="assets/datepicker/grid/js/themes/redmond/jquery-ui.custom.css">
<link rel="stylesheet" type="text/css" media="screen" href="assets/datepicker/grid/js/jqgrid/css/ui.jqgrid.css">
<script src="assets/datepicker/grid/js/jquery.min.js" type="text/javascript"></script>
<script src="assets/datepicker/grid/js/themes/jquery-ui.custom.min.js" type="text/javascript"></script>
<script src="js/holidays.js" type="text/javascript"></script>
</head>
<body onLoad="load_page();">
<?php include("header.php"); ?>
<div id="page-middle">
<div class="page-container panel panel-primary">
<div class="page-container-head panel-heading">
<div id="page-container-titl" class="pull-left"></div>
<div id="page-container-link" class="pull-right"></div>
<div class="clearfix"></div>
</div>
<div id="page-container-body" class="panel-body">
<div id="page-container-main">
<table style="width:100%;">
<tr>
<td style="width:40%;">
<?php
echo "<select class='form-input' id='seldeptcode' onChange='load_grid_data(20,1);'>";
if ($type_id == 'ADMIN') {
$mysql = "select * from masdept where fdeptstat='T' and fholienbl='T' and fdeleted<>'T' order by fdeptname";
} elseif ($type_id == 'CHIEF') {
$mysql = "select * from masdept dp
inner join masdept_user du on dp.fdeptcode = du.fdeptcode and du.fusercode='$user_id'
where fdeptstat='T' and fholienbl='T' and fdeleted<>'T' order by fdeptname";
} else {
$mysql = "select * from masdept dp
inner join masdept_user du on dp.fdeptcode = du.fdeptcode and du.fusercode='$user_id'
where fdeptstat='T' and fholienbl='T' and fdeleted<>'T' order by fdeptname";
}
$myres = mysqli_query($mycon, $mysql);
if (mysqli_num_rows($myres) > 1) {
echo "<option value='%%'>ALL [CLIENTS]</option>";
}
while ($myrow = mysqli_fetch_assoc($myres)) {
echo "<option value='$myrow[fdeptcode]'>$myrow[fdeptname] [$myrow[fdeptcode]]</option>";
}
echo "</select>";
?>
</td>
<td style="width:30%;">
<select class="form-input" id="seldatetype" onChange="load_grid_data(20,1);" style="width:100%;">
<option value="upcoming">UPCOMING</option>
<option value="<?php echo date("Y-m-d") ?>">TODAY [<?php echo date("d/m/Y") ?>]</option>
<optgroup label="MONTH WISE">
<option value="<?php echo date("Y-m") ?>">THIS MONTH</option>
<option value="<?php echo date('Y-m', strtotime('+1 month')) ?>">NEXT MONTH</option>
<option value="<?php echo date('Y-m', strtotime('-1 month')) ?>">PREVIOUS MONTH</option>
</optgroup>
<optgroup label="YEAR WISE">
<option value="<?php echo date("Y") ?>">THIS YEAR</option>
<option value="<?php echo date("Y", strtotime("+1 year")) ?>">NEXT YEAR</option>
<option value="<?php echo date("Y", strtotime("-1 year")) ?>">PREVIOUS YEAR</option>
</optgroup>
<option value="%">ALL [HOLIDAYS]</option>
</select>
</td>
<td style="width:30%;">
<input type="text" id="txtholifind" class="form-input" onInput="load_grid_data(20,1);" placeholder="Search holidays">
</td>
</tr>
</table>
</div>
<div id="page-container-grid"></div>
<div id="page-container-form" class="form-horizontal">
<div id="lblpagemode" class="page_mode"></div>
<input type="hidden" id="txtpagemode" readonly="readonly" />
<input type="hidden" id="txtholicode" style="text-align:center; width:auto;" />
<div class="panel panel-primary" style="width:1024px;margin-left:auto;margin-right:auto;">
<div class="panel-heading">Holiday Details</div>
<div class="panel-body" style="position: relative;">
<div class="form-group">
<label for="" class="col-sm-2 control-label">Date</label>
<div class="col-sm-2">
<input type="text" class="form-control text-center" id="txtholidate" maxlength="10" onChange='load_dept_data("add")' />
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Client</label>
<div class="col-sm-9">
<select class='form-input' id='txtdeptcode'></select>
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Description</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="txtholidesc" maxlength="100" placeholder="Desciption" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
|