예제 #1
0
echo _t('Not Member');
?>
</th>
						</tr>
					</thead>
					<!-- // Table heading END -->
				
					<!-- Table body -->
					<tbody>
						<?php 
$roleACL = new \app\src\ACL(_h((int) $nae[0]['personID']));
$role = $roleACL->getAllRoles('full');
foreach ($role as $k => $v) {
    echo '<tr><td>' . _h($v['Name']) . '</td>';
    echo "<td class=\"center\"><input type=\"radio\" name=\"role_" . _h($v['ID']) . "\" id=\"role_" . _h($v['ID']) . "_1\" value=\"1\"";
    if ($roleACL->userHasRole(_h($v['ID']))) {
        echo " checked=\"checked\"";
    }
    echo " /></td>";
    echo "<td class=\"center\"><input type=\"radio\" name=\"role_" . _h($v['ID']) . "\" id=\"role_" . _h($v['ID']) . "_0\" value=\"0\"";
    if (!$roleACL->userHasRole(_h($v['ID']))) {
        echo " checked=\"checked\"";
    }
    echo " /></td></tr>";
}
?>
					</tbody>
					<!-- // Table body END -->
		
			</table>
			<!-- // Table END -->
예제 #2
0
/**
 * Shows update message when a new release of
 * eduTrac SIS is available.
 *
 * @since 4.0.0
 */
function show_update_message()
{
    $app = \Liten\Liten::getInstance();
    $acl = new \app\src\ACL(get_persondata('personID'));
    if ($acl->userHasRole(8)) {
        $update = new \VisualAppeal\AutoUpdate(rtrim($app->config('file.savepath'), '/'), BASE_PATH, 1800);
        $update->setCurrentVersion(RELEASE_TAG);
        $update->setUpdateUrl('https://etsis.s3.amazonaws.com/core/1.1/update-check');
        // Optional:
        $update->addLogHandler(new Monolog\Handler\StreamHandler(APP_PATH . 'tmp/logs/core-update.' . date('m-d-Y') . '.txt'));
        $update->setCache(new Desarrolla2\Cache\Adapter\File(APP_PATH . 'tmp/cache'), 3600);
        if ($update->checkUpdate() !== false) {
            if ($update->newVersionAvailable()) {
                $alert = '<div class="alerts alerts-warn center">';
                $alert .= sprintf(_t('eduTrac SIS release %s is available for download/upgrade. Before upgrading, make sure to <a href="%s">backup your system</a>.'), $update->getLatestVersion(), 'https://www.edutracsis.com/manual/edutrac-sis-backups/');
                $alert .= '</div>';
            }
        }
    }
    return $app->hook->apply_filter('update_message', $alert);
}
예제 #3
0
                <?php 
    }
}
?>
				</tbody>
				<!-- // Table body END -->
				
			</table>
			<!-- // Table END -->
            
            <hr class="separator" />
    			
			<!-- Form actions -->
			<div class="form-actions">
				<?php 
if ($grade[0]['facID'] == get_persondata('personID') || $acl->userHasRole(8) || hasPermission('submit_final_grades')) {
    ?>
			    <?php 
    if ($grade[0]['stuID'] != '') {
        ?>
			    <input type="hidden" name="attCredit" value="<?php 
        echo _h($grade[0]['minCredit']);
        ?>
" />
			    <input type="hidden" name="courseSecID" value="<?php 
        echo _h($grade[0]['courseSecID']);
        ?>
" />
				<button type="submit" class="btn btn-icon btn-primary glyphicons circle_ok"><i></i><?php 
        echo _t('Submit');
        ?>