Exemple #1
0
$l10n->_e('colHeaderDateAdded');
?>
</th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php 
$unlocked_exists = false;
foreach ($data as $r) {
    if ($r['locked'] == 0) {
        $unlocked_exists = true;
        echo '<tr><td>' . $r['first_name'] . ' ' . $r['last_name'] . '</td>
                                 <td>' . $l10nDate->format($r['inserted_on'], 'date_time') . '</td>
                                 <td class="button-options">
                                     <button name="' . $r['post_triage_id'] . '" class="btn-maroon btn-icon btn-arrow-right view-edit-note">' . $l10n->__('viewEditBtn') . '<span></span></button>' . (\Ventus\Utilities\Functions::getModuleNameFromURL() !== "counselling-reception" ? '<button name="' . $r['post_triage_id'] . '" class="btn-maroon btn-icon btn-refresh lock-note">' . $l10n->__('lockBtn') . '<span></span></button>' : '') . (\Ventus\Utilities\Functions::getModuleNameFromURL() !== "counselling-reception" ? '<button name="' . $r['post_triage_id'] . '" class="btn-maroon btn-icon btn-cross delete-note">' . $l10n->__('deleteBtn') . '<span></span></button>' : '') . '
                                 </span></td></tr>';
    }
}
if (!$unlocked_exists) {
    echo '<tr><td colspan="3" class="table-placeholder">' . $l10n->__('noUnlockedNotes') . '</td></tr>';
}
?>
                    </tbody>
                </table>
            </div>
            
            <div class="past-tables">
                <h2><span data-ventus-icon='&#x4C;' aria-hidden="true"></span><?php 
$l10n->_e('lockedSectionTitle');
?>
Exemple #2
0
    foreach ($all_employees as $a) {
        echo '<option value="' . $a['user_id'] . '" ' . ($studentProfile['access_assigned_employee_id'] === $a['user_id'] ? 'selected' : '') . '>' . $a['first_name'] . ' ' . $a['last_name'] . '</option>';
    }
    ?>
                                </select>
                            </td>
                            <td class="profile-cell-title"><?php 
    $l10n->_e('camRow');
    ?>
</td>
                            <td class="profile-cell-data" id="cam-checkbox-container">
                                <input type="checkbox" id="cam-letter-auth" <?php 
    echo $studentProfile['access_email_permission'] == "0" ? '' : 'checked';
    ?>
 <?php 
    echo \Ventus\Utilities\Functions::getModuleNameFromURL() === "access-reception" ? 'disabled' : '';
    ?>
>
                                <label for="cam-letter-auth"><?php 
    $l10n->_e('sendLetterBtn');
    ?>
</label>
                            </td> 
                        </tr>
                        <?php 
}
?>
                    </tbody>
                </table>
                <?php 
if ($studentProfile['access_profile_status'] !== "active") {
Exemple #3
0
}
?>
                            <th scope='col'><?php 
$l10n->_e('colHeaderDeadline');
?>
</th>
                            <th style="width: 19%;"></th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php 
$count_pending = 0;
foreach ($followups as $f) {
    $warning = "";
    if ($f['completion_status'] == "0") {
        if (\Ventus\Utilities\Functions::getModuleNameFromURL() === "specialist") {
            $link_to_student = URL_SPECIALIST;
        } else {
            $link_to_student = URL_ACCESS_RECEPTION;
        }
        $student_details = '<td>' . (empty($f['student_num']) ? 'N/A' : '<a style="color: blue; text-decoration: none;" target="_blank" href="https://' . $link_to_student . '/profile.php?student_num=' . $f['student_num'] . '">' . $f['student_fname'] . ' ' . $f['student_lname'] . ' (' . $f['student_num'] . ')</a>') . '</td>';
        $count_pending++;
        //If the deadline is less than 3 days then show an indicator
        if (strtotime($f['deadline']) - time() < 259200 && $f['deadline'] !== null) {
            $warning = "<span data-ventus-icon='&#x11D;' aria-hidden='true' class='warning' rel='tooltip' title='" . $l10n->__('deadlineWarning', $antiXSS::HTML_ATTR) . "'></span>";
        }
        echo '<tr class="pending-rows" name="' . $f['follow_up_id'] . '"><td>' . $l10nDate->format($f['inserted_on'], 'date_time') . '</td>
                                <td>' . ($f['emp_id'] == null ? 'Ventus <span data-ventus-icon="&#x59;" aria-hidden="true" style="font-size: 2.1em;"></span>' : $f['from_fname'] . ' ' . $f['from_lname']) . '</td>
                                <td>' . ($f['for_student'] == "1" ? "<a style='color:black;' href='https://" . $link_to_student . "/profile.php?student_num=" . $f['student_num'] . " ' target='_blank'>" . $l10n->__('colHeaderStudent') . ": " . $f['student_num'] . "</a>" : substr_replace($f['recipients'], "", -2)) . '</td>
                                <td class="row-message-count">' . '<span name="' . $f['follow_up_id'] . '" class="view-messages" original-text="' . $f['subject'] . '">' . $f['subject'] . '</span>' . '</td>' . ($_GET['for'] !== "student" ? $student_details : '') . '<td style="font-weight: bold;">' . ($f['deadline'] === null ? "N/A" : $l10nDate->format($f['deadline'], 'date_time')) . $warning . '</td>
                                <td><button type="button" class="btn-unset flags" data-current-status="' . $f['completion_status'] . '" data-follow-up-id="' . $f['follow_up_id'] . '" rel="tooltip" title="' . $l10n->__('flagComplete', $antiXSS::HTML_ATTR) . '"><span data-ventus-icon="&#x216;" aria-hidden="true"></span></button><button name="' . $f['follow_up_id'] . '" class="btn-maroon btn delete">' . $l10n->__('deleteBtn') . '<span></span></button></td></tr>';
Exemple #4
0
        </tr>
        <tr>
            <th scope="row"><kbd> <?php 
$l10n->_e("scEscape");
?>
 </kbd></th>
            <td><?php 
$l10n->_e("tdRemoveFocus");
?>
</td>
        </tr>
    </table>

    <?php 
if (is_file(FS_VENTUS . DIRECTORY_SEPARATOR . \Ventus\Utilities\Functions::getModuleNameFromURL() . "/includes/php/keyboard-shortcuts.php")) {
    require FS_VENTUS . DIRECTORY_SEPARATOR . \Ventus\Utilities\Functions::getModuleNameFromURL() . "/includes/php/keyboard-shortcuts.php";
}
?>
    
    <table class="shortcut-table">
        <caption><?php 
$l10n->_e("datepickerShortcutHeader");
?>
</caption>
        <tr>
            <th scope="row"><kbd> <?php 
$l10n->_e("scPageUp");
?>
 </kbd></th>
            <td><?php 
$l10n->_e("tdPreviousMonth");
Exemple #5
0
        color: white;
        font-weight: bold;
    }
    h3 {
        font-size: 1.2em;
        margin-left: 0;
    }
</style>
<div id="content" class="xfluid">
    <div id="invoice" class="portlet x9">
        <div class="portlet-content">
            <header>
                <div class='heading-controls'>
                    <?php 
//Access receptionist shouldn't be able to see LS notes
if (\Ventus\Utilities\Functions::getModuleNameFromURL() !== "access-reception") {
    //If the form is complete, then show buttons to switch between student answers and learning specialist notes
    if ($status) {
        if ($_GET['mode'] === "student_answers" || !isset($_GET['mode'])) {
            echo '<button id="view-ls-notes" class="btn-icon btn-maroon btn-refresh">' . $l10n->__('viewNotesBtn') . '<span></span></button>';
        } else {
            echo '<button id="view-student-answers" class="btn-icon btn-maroon btn-refresh">' . $l10n->__('colHeaderAnswer') . '<span></span></button>';
        }
    }
}
?>
                </div>
                <h1 class='page-heading'><span data-ventus-icon='&#x122;' aria-hidden="true"></span><?php 
$l10n->_e('pageTitle');
?>
</h1>
Exemple #6
0
<?php

namespace Ventus\Student;

/**
 * This controller will either grant or refuse a read-only session request to a user
 */
// Session, config
require '../includes/php/bootstrap.php';
$SESSION = new \Zend_Session_Namespace('internal', true);
// Kill existing student session if one exists
\Zend_Session::namespaceUnset('student');
//Models
$model = new StudentProfile($dbo);
$module = \Ventus\Utilities\Functions::getModuleNameFromURL($_SERVER['HTTP_REFERER']);
$module === 'specialist' ? $url = URL_SPECIALIST : ($url = URL_ACCESS_RECEPTION);
//We first check if the employee has a valid session and is authorized to access the Specialist module
\Ventus\Utilities\Authentication::isAuthenticated($SESSION, 'internal');
\Ventus\Utilities\Authentication::isAuthorized($SESSION, 'https://' . $url);
//Check and decrypt read only session key
if (empty($_GET['key']) || empty($_GET['iv'])) {
    //No key exists...we have a problem
    $loggers['audit']->error('Attempted access to student read-only session without key.');
    header('location: https://' . URL_PHP . '/error-external.php?eid=R9001');
    exit;
}
$student = mcrypt_decrypt(MCRYPT_BLOWFISH, hash('md5', HASH_GENERATION_RANDOM_STRING), base64_decode($_GET['key']), MCRYPT_MODE_ECB, base64_decode($_GET['iv']));
$student = unserialize($student);
$log_in = $model->validateUserForReadOnlySession($student);
if (!$log_in) {
    //No student found...we have a problem