//============================================================================================ // Model //============================================================================================ $profile = new Profile($dbo); $alog = new ActivityLog($dbo); if (isset($_GET['student_num']) && ctype_digit($_GET['student_num'])) { $studentProfile = $profile->getProfile($_GET['student_num']); } //============================================================================================ // Load the content //============================================================================================ if (!isset($_GET['page'])) { $render = true; $thisPage = 'activity-log'; if (!empty($studentProfile)) { $all_student_activity = $alog->listAllActivity($_GET['student_num']); $l10n->addResource(__DIR__ . '/l10n/activity-log.json'); $viewFile = 'views/activity-log.php'; } } /** * View rendering */ if (isset($render) && $render) { $l10n->addResource(__DIR__ . '/l10n/menu.json'); require FS_PHP . '/header.php'; require FS_PHP . '/nav.php'; if (isset($viewFile) && file_exists($viewFile)) { require $viewFile; require 'views/menu.php'; } else {