$msg,
        $SessSemName,
        $view_mode;

// clear session data of seminar-assi, otherwise the navigation item "back to seminar" will vanish
$_SESSION['links_admin_data']['assi'] = false;

if ($perm->have_perm('tutor')) {    // Navigationsleiste ab status "Tutor"
    //ob_start();

    require_once 'lib/dates.inc.php';
    require_once 'lib/msg.inc.php';
    require_once 'lib/visual.inc.php';
    require_once 'lib/functions.php';

    $cssSw=new cssClassSwitcher;
    $semester=new SemesterData;
    $aux_rules=new AuxLockRules();
    $all_aux_rules=$aux_rules->getAllLockRules();

    //Einheitliches Auswahlmenu fuer Einrichtungen
    //if (((!$SessSemName[1]) || ($SessSemName["class"] == "sem")) && $list && ($view_mode == "inst")) {
        //Save data back to database and start a connection  - so we avoid some problems with large search results and data is writing back to db too late
        //page_close();
        //if(isset($admin_view)){
        //     URLHelper::bindLinkParam('admin_view',$admin_view);
        //}
        ?>
        <table width="100%" cellspacing=0 cellpadding=0 border=0>
        <?
        if ($msg) {
예제 #2
0
    $message = sprintf(_("Wollen Sie die Konfiguration <b>&quot;%s&quot;</b> des Moduls <b>%s</b> wirklich löschen?"), $config["name"], $GLOBALS["EXTERN_MODULE_TYPES"][$config["type"]]["name"]);
    $message .= '<br><br>';
    $message .= LinkButton::createAccept("JA", URLHelper::getURL('?com=delete&config_id='.$config_id));
    $message .= LinkButton::createCancel("NEIN", URLHelper::getURL('?list=TRUE&view=extern_inst'));

    my_info($message, "blank", 1);
    print_footer();

    $template = $GLOBALS['template_factory']->open('layouts/base.php');
    $template->content_for_layout = ob_get_clean();
    echo $template->render();
    page_close();
    die;
}

$css_switcher = new cssClassSwitcher();

if (Request::option('com') == 'info') {
    include($RELATIVE_PATH_EXTERN . "/views/extern_info_module.inc.php");
    print_footer();

    $template = $GLOBALS['template_factory']->open('layouts/base.php');
    $template->content_for_layout = ob_get_clean();
    echo $template->render();
    page_close();
    die;
}

if (Request::option('com') == 'new' || Request::option('com') == 'edit' || Request::option('com') == 'open' ||
        Request::option('com') == 'close' || Request::option('com') == 'store') {
예제 #3
0
function display_roles_recursive($roles, $level = 0, $pred = '') {
    if (is_array($roles))
    foreach ($roles as $role_id => $data) {
        $css_rec = new cssClassSwitcher();
        if ($level > 0) {
            $title = $pred.' > '. $data['name'];
        } else {
            $title = $data['name'];
        }
        echo '<tr><td colspan="2" class="content_seperator"><b>'.$title.'</b></td></tr>';
        if ($persons = getPersonsForRole($role_id)) {
            $z = 1;
            if (is_array($persons))
            foreach ($persons as $p) {
                $css_rec->switchClass();
                $class = 'class="'.$css_rec->getClass().'"';
                //echo '<tr><td '.$class.' width="20" align="center">'.$p['position'].'</td>';
                echo '<tr><td '.$class.' width="20" align="center">'.$z.'&nbsp;</td>';
                echo '<td '.$class.'><a href="'.URLHelper::getLink('dispatch.php/profile?username='******'username']).'">'.$p['fullname'].'</a></td>';
                $z++;
            }
        }
        echo '<tr><td colspan="2" class="blank">&nbsp;</td></tr>';
        echo '</tr>';
        if ($data['child']) {
            if ($level > 0) {
                $zw = $pred . ' > '.$data['name'];
            } else {
                $pred = $data['name'];
                $zw = $pred;
            }
            display_roles_recursive($data['child'], $level+1, $zw);
        }
    }
}