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 : 18.117.254.202


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

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

    $mysql = "select * from (
    select femplname,e.fdeptcode,fdeptname,'Birthday' as fevntremk,
    (case when femplstat='T' then 'Active' else 'Not Active' end) as femplstat,
    concat(date_format(fbrthdate,'%d %b'),' ',year(current_date)) as fevntdate
    from masempl e 
    left join masdept d on e.fdeptcode=d.fdeptcode 
    where date_format(fbrthdate,'%d-%m') = date_format(current_date,'%d-%m') and femplstat='T'
    ) xtmp
    order by fevntdate,femplname";
    $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'>Birthday</th>";
        echo "</tr>";
        while ($myrow = mysqli_fetch_assoc($myres)) {
            echo "<tr>";
            echo "<td width='30%' class='text-left'> $myrow[femplname]</td>";
            echo "<td class='text-left'> $myrow[fdeptname]</td>";
            echo "</tr>";
        }
        echo "</table>";
    } else {
        echo "<div class='alert alert-info'>No birthday's today!</div>";
    }


    $mysql = "select * from (
        select femplname,e.fdeptcode,fdeptname,'Work Anniversary' as fevntremk,
        (case when femplstat='T' then 'Active' else 'Not Active' end) as femplstat,
        concat(date_format(fjoindate,'%d %b'),' ',year(current_date)) as fevntdate
        from masempl e 
        left join masdept d on e.fdeptcode=d.fdeptcode 
        where date_format(fjoindate,'%d-%m') = date_format(current_date,'%d-%m') and femplstat='T'
        ) xtmp
        order by fevntdate,femplname";
    $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 Anniversary</th>";
        echo "</tr>";
        while ($myrow = mysqli_fetch_assoc($myres)) {
            echo "<tr>";
            echo "<td width='30%' class='text-left'> $myrow[femplname]</td>";
            echo "<td class='text-left'> $myrow[fdeptname]</td>";
            echo "</tr>";
        }
        echo "</table>";
    } else {
        echo "<div class='alert alert-info'>No work anniversary today!</div>";
    }
    ?>
</div>