Beispiel #1
0
namespace Ventus\Transcription;

//============================================================================================
// 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
//============================================================================================
$follow = new \Ventus\Specialist\FollowUps($dbo);
//============================================================================================
// Load the content
//============================================================================================
if (!isset($_GET['page'])) {
    $render = true;
    if ($_GET['for'] === "employee") {
        $followups = $follow->listFollowUpsEmployee($SESSION->user_id);
    }
    foreach ($followups as $key => $f) {
        $recipients = $follow->listFollowUpRecipients($f['follow_up_id']);
        $recipient_string = "";
        foreach ($recipients as $r) {
            $recipient_string .= $r['first_name'] . ' ' . $r['last_name'] . ', ';
        }
        $followups[$key]['recipients'] = $recipient_string;
Beispiel #2
0
//============================================================================================
// 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);
$ir = new IncidentReport($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 = 'incident';
        $semester = \Ventus\Utilities\Functions::fetchSemester();
        $current_courses = $courses->fetchAllStudentCoursesForSemester($_GET['student_num'], $semester['now_short']);
        $followupcount = $follow->fetchFollowUpsCountStudent($_GET['student_num']);
        $poccount = $profile->countUnlockedPOC($_GET['student_num']);
Beispiel #3
0
namespace Ventus\AccessReception;

//============================================================================================
// 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
//============================================================================================
$follow = new \Ventus\Specialist\FollowUps($dbo);
$workshop = new \Ventus\Workshops\Workshops($dbo);
$studentws = new \Ventus\Workshops\StudentWorkshops($dbo);
//============================================================================================
// Load the content
//============================================================================================
if (!isset($_GET['page'])) {
    $render = true;
    $thisPage = "Workshops";
    $departmentEmail = EMAIL_ALIAS_ACCESS_SERVICE_COUNSELORS . EMAIL_ORG_STAFF_DOMAIN;
    $past = isset($_GET['mode']) && $_GET['mode'] === 'past';
    if ($past) {
        $workshops = $workshop->listPastWorkshops(SERVICE_ID_ACCESS);
    } else {
        $workshops = $workshop->listFutureWorkshops(SERVICE_ID_ACCESS);
    }