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.15.214.244
<?php include("src/sys_session.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/staff_move.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 width="100%">
<td style="width:20%;">
<?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 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 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 fdeleted<>'T' order by fdeptname";
}
$myres = mysqli_query($mycon, $mysql);
if (mysqli_num_rows($myres) > 1) {
echo "<option value='%%'>ALL [DEPARTEMENTS]</option>";
}
while ($myrow = mysqli_fetch_assoc($myres)) {
echo "<option value='$myrow[fdeptcode]'>$myrow[fdeptname]</option>";
}
echo "</select>";
?>
</td>
<td style="width:20%;">
<?php
echo "<select class='form-input' id='selemplcode' onChange='load_grid_data(20,1);'>";
if ($type_id == 'ADMIN') {
$mysql = "select distinct sm.femplcode, em.femplname from staffmove sm
inner join masempl em on sm.femplcode = em.femplcode
where sm.fdeleted<>'T' order by femplname";
} elseif ($type_id == 'CHIEF') {
$mysql = "select distinct sm.femplcode, em.femplname from staffmove sm
inner join masempl em on sm.femplcode = em.femplcode
inner join masdept_user du on sm.fdeptcode = du.fdeptcode and du.fusercode = '$user_id'
where sm.fdeleted<>'T' order by femplname";
} else {
$mysql = "select distinct sm.femplcode, em.femplname from staffmove sm
inner join masempl em on sm.femplcode = em.femplcode
inner join masdept_user du on sm.fdeptcode = du.fdeptcode and du.fusercode = '$user_id'
where sm.fdeleted<>'T' 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]</option>";
}
echo "</select>";
?>
</td>
<td style="width:20%;">
<select class="form-input" id="selmovetype" style="width:100%;" onChange="load_grid_data(20,1);">
<option value="%">ALL [PURPOSE]</option>
<option value="OFFICIAL">OFFICIAL</option>
<option value="PERSONAL">PERSONAL</option>
</select>
</td>
<td style="padding:0px;">
<input class="form-input" type="text" id="txtmovefind" style="width:100%;" onInput="load_grid_data(20,1);" placeholder="Search place">
</td>
</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="txtmovecode" readonly="readonly" />
<div class="panel panel-primary" style="width:1024px;margin-left:auto;margin-right:auto;">
<div class="panel-heading">Movement Details</div>
<div class="panel-body" style="position: relative;">
<div class="form-group">
<label for="" class="col-sm-2 control-label">Client</label>
<div class="col-sm-10">
<select class="form-control" id="txtdeptcode" onChange="load_empl_data(this.value);">
<?php
if ($type_id == 'ADMIN') {
$mysql = "select * from masdept where fdeleted<>'T' and ifnull(fdeleted,'F')='F' order by fdeptcode";
} elseif ($type_id == 'CHIEF') {
$mysql = "select * from masdept where fdepthead='$empl_id' and ifnull(fdeleted,'F')='F' order by fdeptname";
} else {
$mysql = "select * from masdept where fdeptcode='$dept_id' and ifnull(fdeleted,'F')='F' order by fdeptcode";
}
$myres = mysqli_query($mycon, $mysql);
if (mysqli_num_rows($myres) > 1) {
echo "<option value=''>--Select--</option>";
}
while ($row = mysqli_fetch_assoc($myres)) {
echo "<option value='$row[fdeptcode]'>$row[fdeptname]</option>";
}
?>
</select>
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Employee Name</label>
<div class="col-sm-10">
<select class="form-control" id="txtemplcode"></select>
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Departure on</label>
<div class="col-sm-2">
<input type="text" class="form-control text-center" id="txtstrtdate" />
</div>
<label for="" class="col-sm-2 control-label">Arrival on</label>
<div class="col-sm-2">
<input type="text" class="form-control text-center" id="txtdestdate" />
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Movement From</label>
<div class="col-sm-4">
<select class="form-control" id="txtstrttown" onChange="load_dest_town(this.value);"></select>
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Movement To</label>
<div class="col-sm-4">
<select class="form-control" id="txtdesttown"></select>
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Purpose</label>
<div class="col-sm-4">
<select class="form-control" id="txtmovetype">
<option value="">--Select--</option>
<option value="OFFICIAL">OFFICIAL</option>
<option value="PERSONAL">PERSONAL</option>
</select>
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Status</label>
<div class="col-sm-4">
<select class="form-control" id="txtmovestat">
<option value="">--Select--</option>
<option value="SCHEDULED">SCHEDULED</option>
<option value="MOVING">MOVING</option>
<option value="REACHED">REACHED</option>
<option value="CANCELLED">CANCELLED</option>
</select>
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Remarks (if any)</label>
<div class="col-sm-10">
<textarea class="form-control" id="txtmoveremk" rows="3" /></textarea>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
|