getConnection(); /* ========================================== PERMISSIONS (mirror trainings.php) ========================================== */ $isHrManager = Auth::user()->hasRole('Admin') || Auth::user()->hasRole('Superuser') || Auth::user()->hasRole('employee-hr') || Auth::user()->hasRole('manager'); if (!$isHrManager) { header('Location: employee-profile.php'); exit; } /* Dropdown data */ $employees = $pdo->query(" SELECT id, first_name, last_name, employee_code FROM employees ORDER BY last_name, first_name ")->fetchAll(PDO::FETCH_ASSOC); $topics = $pdo->query(" SELECT id, name FROM training_topics WHERE is_active = 1 ORDER BY sort_order, name ")->fetchAll(PDO::FETCH_ASSOC); $departments = $pdo->query(" SELECT id, name FROM departments WHERE is_active = 1 ORDER BY sort_order, name ")->fetchAll(PDO::FETCH_ASSOC); ?> Calendario Formazione - <?= htmlspecialchars($titlewebsite, ENT_QUOTES, 'UTF-8'); ?>
📅 Calendario Formazione
📚 Storico Formazione
Scaduto
Da aggiornare
Conforme