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.148.104.103
Current Path : /var/www/html/oums/src/ |
| Current File : /var/www/html/oums/src/popup_work_review.php |
<div class="list-group" style="text-align:left; cursor:pointer;">
<?php
include("sys_connect.php");
include("sys_session.php");
$mysql = "select
concat('[',wk.femplcode,'] ',em.femplname) as femplname,
concat('[',wk.fdeptcode,'] ',dp.fdeptshrt) as fdeptname,
count(*) as fviewpend
from workentry wk
inner join masempl em on wk.femplcode = em.femplcode
inner join masdept dp on wk.fdeptcode = dp.fdeptcode
where wk.freptempl='$empl_id' and fviewstat='PENDING' and ifnull(wk.fdelestat,'F')='F' and em.femplstat='T'
group by em.femplcode,wk.fdeptcode;";
$myres = mysqli_query($mycon, $mysql);
if (mysqli_num_rows($myres) > 0) {
echo "<table class='table table-default'>";
echo "<tr>";
echo "<th class='text-right'>#</th>";
echo "<th class='text-left col-sm-8'>Empl Name</th>";
echo "<th class='text-left col-sm-2'>Client</th>";
echo "<th class='text-center col-sm-2'>Total</th>";
echo "</tr>";
$i = 1;
while ($myrow = mysqli_fetch_assoc($myres)) {
echo "<tr>";
echo "<td class='text-right'> $i.</td>";
echo "<td class='text-left'> $myrow[femplname]</td>";
echo "<td class='text-left'> $myrow[fdeptname]</td>";
echo "<td class='text-center'> $myrow[fviewpend]</td>";
echo "</tr>";
$i++;
}
echo "</table>";
} else {
echo "<div class='alert alert-info'>No work entry review pending!</div>";
}
?>
</div>
|