コード例 #1
0
ファイル: course-schedule.php プロジェクト: hughnguy/php
//============================================================================================
// Session, configuration file, localization constructor
//============================================================================================
require '../includes/php/bootstrap.php';
$SESSION = new \Zend_Session_Namespace('internal', true);
if (!isset($SESSION->lang)) {
    $SESSION->lang = DEFAULT_LANGUAGE;
}
\Locale::setDefault($SESSION->lang);
$l10n->setLanguage($SESSION->lang);
//============================================================================================
// Model
//============================================================================================
$profile = new \Ventus\Specialist\Profile($dbo);
$modelacc = new \Ventus\Specialist\Accommodation($dbo);
$follow = new \Ventus\Specialist\FollowUps($dbo);
$model = new \Ventus\Utilities\CourseSchedule($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;
    if (!empty($studentProfile)) {
        $followupcount = $follow->fetchFollowUpsCountStudent($_GET['student_num']);
        $poccount = $profile->countUnlockedPOC($_GET['student_num']);
        $active_accommodations = $modelacc->getAccommodations($_GET['student_num']);
        $semester = \Ventus\Utilities\Functions::fetchSemester();
コード例 #2
0
ファイル: accommodations.php プロジェクト: hughnguy/php
//============================================================================================
// Session, configuration file, localization constructor
//============================================================================================
require '../includes/php/bootstrap.php';
$SESSION = new \Zend_Session_Namespace('internal', true);
if (!isset($SESSION->lang)) {
    $SESSION->lang = DEFAULT_LANGUAGE;
}
\Locale::setDefault($SESSION->lang);
$l10n->setLanguage($SESSION->lang);
//============================================================================================
// MODEL
//============================================================================================
$profile = new \Ventus\Specialist\Profile($dbo);
$model = new \Ventus\Specialist\Accommodation($dbo);
$follow = new \Ventus\Specialist\FollowUps($dbo);
$courses = new \Ventus\Specialist\Courses($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;
    if (!empty($studentProfile)) {
        $thisPage = 'acc';
        $followupcount = $follow->fetchFollowUpsCountStudent($_GET['student_num']);
        $poccount = $profile->countUnlockedPOC($_GET['student_num']);
        $current_semester = \Ventus\Utilities\Functions::fetchSemester();