How awabwdbashry-sketch/employee_attendance works
This is a PHP/MySQL employee attendance and leave-management web application for employees, managers, and HR administrators. Employees use the dashboard to reach signed QR attendance or submit leave requests; managers and admins review requests, while administrators maintain staff, organization structure, schedules, and audit settings. Attendance, leave, notifications, dashboards, and reports are distinct functional areas. Shared PHP modules provide authentication, policy calculations, and presentation. The graph follows documented capabilities and visible references; unsampled areas are included at their exact tree paths, with uncertain runtime links omitted.
Main entry points: leave.php Leave rules and balances · attendance.php Attendance rules · db.example.php MySQL data · layout.php Page layout and guards
Components 26
Access and dashboards
- Login and session
login.php - Role dashboards
index.php - Shared access utilities
includes/functions.php - Page layout and guards
includes/layout.php - Dashboard data
includes/dash.php
Workforce administration
- Employee records
employees/form.php - Employee profile
employees/view.php - Departments
departments/index.php - Positions
positions/index.php
Attendance
- Scan and attendance views
attendance/scan.php - QR scan endpoint
attendance/api_scan.php - Signed QR verification
attendance/check.php - Attendance rules
includes/attendance.php - Employee QR token
employees/qr_token.php - History and calendar
attendance/history.php
Leave management
- Employee leave requests
employee/leaves.php - Leave rules and balances
includes/leave.php - Approvals and leave setup
leaves/approvals.php - Leave calendar
leaves/calendar.php
Insights and operations
- Report functions
includes/reports.php - Attendance and leave reports
reports/attendance.php - Notifications
notifications/index.php - Schedule and holidays
settings/index.php - Audit log
settings/audit.php
Other components
- Employee / manager / admin
- MySQL data
config/db.example.php
Connections 30
- Employee / manager / admin → Login and session: signs in
README.md - Login and session → Shared access utilities: checks session
login.php - Role dashboards → Page layout and guards: loads layout
index.php - Role dashboards → Dashboard data: loads dashboard data
index.php - Dashboard data → Attendance rules: uses attendance rules
includes/dash.php - Employee records → Page layout and guards: loads layout
employees/form.php - Employee profile → Attendance rules: uses attendance logic
employees/view.php - Departments → Page layout and guards: loads layout
departments/index.php - Positions → Page layout and guards: loads layout
positions/index.php - Scan and attendance views → Page layout and guards: loads layout
attendance/scan.php - QR scan endpoint → Attendance rules: records attendance
attendance/api_scan.php - Signed QR verification → Attendance rules: verifies QR
attendance/check.php - Employee QR token → Attendance rules: creates QR token
employees/qr_token.php - Attendance rules → Leave rules and balances: checks leave and holidays
includes/attendance.php - History and calendar → Leave rules and balances: loads leave rules
attendance/history.php - Employee leave requests → Leave rules and balances: uses leave rules
employee/leaves.php - Approvals and leave setup → Leave rules and balances: uses leave rules
leaves/approvals.php - Leave calendar → Leave rules and balances: uses leave rules
leaves/calendar.php - Attendance and leave reports → Report functions: builds reports
reports/attendance.php - Report functions → Leave rules and balances: loads leave rules
includes/reports.php - Notifications → Page layout and guards: loads layout
notifications/index.php - Schedule and holidays → Leave rules and balances: uses settings helpers
settings/index.php - Login and session → MySQL data: queries data
- Attendance rules → MySQL data: reads and writes records
- Leave rules and balances → MySQL data: reads and writes records
- Role dashboards → MySQL data: queries dashboard data
- Report functions → MySQL data: queries report data
- Schedule and holidays → MySQL data: stores settings
- Notifications → MySQL data: reads notifications
- Audit log → Shared access utilities: uses shared utilities