Exemplo n.º 1
0
        $htmlSubHeadline .= ', ' . $role['rol_name'];
    }
    $htmlSubHeadline = substr($htmlSubHeadline, 2);
} else {
    $role = new TableRoles($gDb, $roleIds[0]);
    // check if user has right to view role
    if (!$gCurrentUser->hasRightViewRole($roleIds[0])) {
        $gMessage->show($gL10n->get('SYS_NO_RIGHTS'));
    }
    $roleName = $role->getValue('rol_name');
    $htmlSubHeadline .= $role->getValue('cat_name');
}
// if no list parameter is set then load role default list configuration or system default list configuration
if ($numberRoles === 1 && $getListId === 0) {
    // set role default list configuration
    $getListId = $role->getDefaultList();
    if ($getListId === 0) {
        $gMessage->show($gL10n->get('LST_DEFAULT_LIST_NOT_SET_UP'));
    }
}
// initialize some special mode parameters
$separator = '';
$valueQuotes = '';
$charset = '';
$classTable = '';
$orientation = '';
switch ($getMode) {
    case 'csv-ms':
        $separator = ';';
        // Microsoft Excel 2007 or new needs a semicolon
        $valueQuotes = '"';
Exemplo n.º 2
0
    }
    $htmlSubHeadline = substr($htmlSubHeadline, 2);
} else {
    $role = new TableRoles($gDb, $getRoleId);
    // check if user has right to view role
    if (!$gCurrentUser->hasRightViewRole($getRoleId)) {
        $gMessage->show($gL10n->get('SYS_NO_RIGHTS'));
    }
    $roleName = $role->getValue('rol_name');
    $htmlSubHeadline .= $role->getValue('cat_name');
    $roleIdLink = '&rol_id=' . $getRoleId;
}
// if no list parameter is set then load role default list configuration or system default list configuration
if ($getRoleId === 0 && $numberRoles === 1) {
    // set role default list configuration
    $getRoleId = $role->getDefaultList();
    if ($getRoleId == 0) {
        $gMessage->show($gL10n->get('LST_DEFAULT_LIST_NOT_SET_UP'));
    }
}
// initialize some special mode parameters
$separator = '';
$valueQuotes = '';
$charset = '';
$classTable = '';
$orientation = '';
switch ($getMode) {
    case 'csv-ms':
        $separator = ';';
        // Microsoft Excel 2007 or new needs a semicolon
        $valueQuotes = '"';