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 : 18.116.19.29
<?php
include("src/sys_session.php");
include("src/sys_connect.php");
?>
<div id="page-container-main">
<table style="width:100%;">
<tr>
<td style="width:25%;">
<?php
if ($type_id == 'ADMIN') {
$user_dept = "";
} else {
$user_dept = " inner join masdept_user du on dp.fdeptcode = du.fdeptcode and du.fusercode='$user_id' ";
}
echo "<select class='form-input' id='seldeptcode' onChange='load_grid_data(20,1);'>";
$mysql = "select * from masdept dp " . $user_dept . " where fdeptstat='T' and fdeleted<>'T' order by fdeptname";
$myres = mysqli_query($mycon, $mysql);
if (mysqli_num_rows($myres) > 1) {
echo "<option value='%%'>ALL [LOCATIONS]</option>";
}
while ($myrow = mysqli_fetch_assoc($myres)) {
echo "<option value='$myrow[fdeptcode]'>$myrow[fdeptname] [$myrow[fdeptcode]]</option>";
}
echo "</select>";
?>
</td>
<td style="width:25%;">
<?php
if ($type_id == 'ADMIN') {
$user_dept = "";
} else {
$user_dept = " inner join masdept_user du on em.fdeptcode = du.fdeptcode and du.fusercode='$user_id' ";
}
echo "<select class='form-input' id='selempldesn' onChange='load_grid_data(20,1);'>";
$mysql = "select distinct fempldesn from masempl em " . $user_dept . " order by fempldesn";
$myres = mysqli_query($mycon, $mysql);
if (mysqli_num_rows($myres) > 1) {
echo "<option value='%%'>ALL [DESIGNATIONS]</option>";
}
while ($myrow = mysqli_fetch_assoc($myres)) {
echo "<option value='$myrow[fempldesn]'>$myrow[fempldesn]</option>";
}
echo "</select>";
?>
</td>
<td style="width:25%;">
<select class="form-input" id="selemplstat" onChange="load_grid_data(20,1);" style="width:100%;">
<option value="T">ACTIVE [STATUS]</option>
<option value="F">INACTIVE [STATUS]</option>
<option value="%">ALL [STATUS]</option>
</select>
</td>
<td style="width:25%;">
<input type="text" class="form-input" id="txtemplfind" onInput="load_grid_data(20,1);" style="width:100%;" placeholder="Search name">
</td>
</tr>
</table>
</div>
<div id="page-container-grid"></div>
|