MMCT TEAM
Server IP : 103.191.208.50  /  Your IP : 216.73.216.53
Web Server : LiteSpeed
System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64
User : celkcksm ( 1031)
PHP Version : 7.4.33
Disable Function : show_source, system, shell_exec, passthru, popen, exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home/celkcksm/websites/attendance.rmpharma.in/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/celkcksm/websites/attendance.rmpharma.in/getholidays.php
<!DOCTYPE html>
<html lang="en">
<head>
  <title>Holidays</title>
</head>
<body>
<?php
include("include/config.inc.php");
?>

<table border=1>
    <tr>
        <th>Day Details</th>
        <td>Date</td>
        <th>Status</th>
    </tr>
<?php
    $attendanceQ=mysqli_query($con,"select * from attendance order by date asc");
    while($attendanceR=mysqli_fetch_array($attendanceQ)){
        $statusarr=explode(",",$attendanceR['status']);
        $holiday=true;
        for($i=0;$i<count($statusarr);$i++){
            if($i==count($statusarr)-1) break;
            if(explode("_",$statusarr[$i])[1]!=0){
                $holiday=false;
            }
        }
    ?>
    <tr>
        <td <?php if($holiday) echo "style='background-color:orange;'"; ?>><?php if($holiday) echo "HOLIDAY"; ?></td>
        <td><?=$attendanceR['date'];?></td>
        <td><?=$attendanceR['status'];?></td>
    </tr>
<?php
    }
?>
</table>
</body>
</html>

MMCT - 2023