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 : 13.58.103.70
<!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/expense_advance.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='selemplcode' onChange='load_grid_data(20,1);'>";
if ($type_id == 'ADMIN') {
$mysql = "select distinct em.femplcode,femplname from masempl em
inner join expenses_advance ex on em.femplcode = ex.femplcode
order by femplname;";
} else {
$mysql = "select * from masempl where femplcode='$empl_id' order by femplname";
}
$myres = mysqli_query($mycon, $mysql);
if (mysqli_num_rows($myres) > 1) {
echo "<option value='%%'>ALL [EMPLOYEES]</option>";
}
while ($myrow = mysqli_fetch_assoc($myres)) {
echo "<option value='$myrow[femplcode]'>$myrow[femplname] [$myrow[femplcode]]</option>";
}
echo "</select>";
?>
</td>
<td style="width:30%;">
<?php
echo "<select class='form-input' id='seladvnmnth' onChange='load_grid_data(20,1);'>";
$mysql = "select date_format(fadvndate,'%Y-%m') as fadvnmnth,date_format(fadvndate,'%Y %M') as fdispmnth from expenses_advance
group by date_format(fadvndate,'%Y-%m') order by fadvndate desc";
$myres = mysqli_query($mycon, $mysql);
while ($myrow = mysqli_fetch_assoc($myres)) {
echo "<option value='$myrow[fadvnmnth]'>$myrow[fdispmnth]</option>";
}
if (mysqli_num_rows($myres) > 1) {
echo "<option value='%'>ALL [MONTHS]</option>";
}
echo "</select>";
?>
</td>
<td style="width:30%;">
<input type="text" id="txtadvnfind" class="form-input" onInput="load_grid_data(20,1);" placeholder="Search expense advance details..">
</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="txtadvncode" style="text-align:center; width:auto;" />
<div class="panel panel-primary" style="width:1024px;margin-left:auto;margin-right:auto;">
<div class="panel-heading">Advance Details</div>
<div class="panel-body" style="position: relative;">
<div class="form-group">
<label for="" class="col-sm-2 control-label">Advance Month</label>
<div class="col-sm-2">
<input type="text" class="form-control text-center text-uppercase" id="txtadvndate" maxlength="7" />
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Employee</label>
<div class="col-sm-9">
<?php
$myqry = "";
if ($type_id == 'ADMIN') {
$myqry = "";
} else{
$myqry = " and femplcode ='$empl_id' ";
}
echo "<select class='form-input' id='txtemplcode'>";
$mysql = "select * from masempl where femplstat='T' and fexpnentr='T' and fdeleted<>'T' " . $myqry . " order by femplname;";
$myres = mysqli_query($mycon, $mysql);
if (mysqli_num_rows($myres) > 1) {
echo "<option value=''>--SELECT--</option>";
}
while ($myrow = mysqli_fetch_assoc($myres)) {
echo "<option value='$myrow[femplcode]'>$myrow[femplname]</option>";
}
echo "</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="txtadvndesc" maxlength="100" placeholder="Desciption" />
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Amount</label>
<div class="col-sm-2">
<input type="text" class="form-control text-right" id="txtadvnamnt" value="0.00" maxlength="10" placeholder="Amount" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
|