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.145.45.223
Current Path : /var/www/html/oums/ |
| Current File : /var/www/html/oums/work_assign_grid.php |
<?php
include("src/sys_session.php");
include("src/sys_connect.php");
?>
<div id="page-container-main">
<table style="width:100%;">
<tr>
<td style="width: 20%">
<?php
if ($type_id == 'ADMIN') {
$mysql = "select distinct femplname,femplcode from workassign wk
left join masempl em on wk.fassnempl = em.femplcode
where ifnull(wk.fassnempl,'')<>'' order by femplname";
} else {
$mysql = "select distinct femplname,femplcode from workassign wk
inner join masempl em on wk.fassnempl = em.femplcode
where wk.fassnempl = '$empl_id' and ifnull(wk.fassnempl,'')<>'' order by femplname";
}
$myres = mysqli_query($mycon, $mysql);
echo "<select class='form-input' id='selassnempl' onChange='load_grid_data(20,1);'>";
if (mysqli_num_rows($myres) > 1) {
echo "<option value=%>ALL [ASSIGNERS]</option>";
}
while ($myrow = mysqli_fetch_assoc($myres)) {
echo "<option value='$myrow[femplcode]'>$myrow[femplname] [$myrow[femplcode]] [ASSIGNER]</option>";
}
echo "</select>";
?>
</td>
<td style="width: 20%">
<?php
if ($type_id == 'ADMIN') {
$mysql = "select distinct femplname,femplcode from workassign wk
left join masempl em on wk.fworkempl = em.femplcode
where ifnull(wk.fworkempl,'')<>'' order by femplname";
} else {
$mysql = "select distinct femplname,femplcode from workassign wk
inner join masempl em on wk.fworkempl = em.femplcode
where wk.fassnempl = '$empl_id' and ifnull(wk.fworkempl,'')<>'' order by femplname";
}
$myres = mysqli_query($mycon, $mysql);
echo "<select class='form-input' id='selworkempl' onChange='load_grid_data(20,1);'>";
if (mysqli_num_rows($myres) > 1) {
echo "<option value=%>ALL [ASSIGNEES]</option>";
}
while ($myrow = mysqli_fetch_assoc($myres)) {
echo "<option value='$myrow[femplcode]'>$myrow[femplname] [$myrow[femplcode]] [ASSIGNEE]</option>";
}
echo "</select>";
?>
</td>
<td style="width: 20%">
<select class="form-input" id="selworkstat" onChange="load_grid_data(20,1);">
<option value="%">ALL [WORK STATUS]</option>
<option value="PENDING">PENDING [WORK STATUS]</option>
<option value="COMPLETED">COMPLETED [WORK STATUS]</option>
<option value="INCOMPLETE">INCOMPLETE [WORK STATUS]</option>
<option value="INVALID">INVALID [WORK STATUS]</option>
</select>
</td>
<td style="width: 20%">
<select class="form-input" id="selviewstat" onChange="load_grid_data(20,1);">
<option value="PENDING">PENDING [REVIEW STATUS]</option>
<option value="COMPLETED">REVIEWED [REVIEW STATUS]</option>
<option value="%">ALL [REVIEW STATUS]</option>
</select>
</td>
<td align="left" style="padding:0px;">
<input type="text" class="form-input" id="txtworkfind" onInput="load_grid_data(20,1);" placeholder="Search">
</td>
</tr>
</table>
</div>
<div id="page-container-grid"></div>
|