Пример #1
0
            $dialogBox->warning(get_lang('No change applied'));
        } elseif (!empty($properties['profileId'])) {
            if (claro_get_profile_label($properties['profileId']) == 'manager') {
                $dialogBox->success(get_lang('User is now course manager'));
            } else {
                $dialogBox->success(get_lang('User is now student for this course'));
            }
        }
        break;
}
//------------------------------------
// FIND GLOBAL INFO SECTION
//------------------------------------
if (isset($uidToEdit)) {
    // get course user info
    $courseUserProperties = course_user_get_properties($uidToEdit, $cidToEdit);
}
//------------------------------------
// PREPARE DISPLAY
//------------------------------------
// Javascript confirm pop up declaration for header
JavascriptLanguage::getInstance()->addLangVar('Are you sure you want to unregister %name ?');
JavascriptLoader::getInstance()->load('admin');
$displayBackToCU = false;
$displayBackToUC = false;
if ('culist' == $ccfrom) {
    $displayBackToCU = TRUE;
} elseif ('uclist' == $ccfrom) {
    $displayBackToUC = TRUE;
}
$cmd_menu[] = '<a class="claroCmd" href="adminuserunregistered.php' . '?cidToEdit=' . $cidToEdit . '&amp;cmd=UnReg' . '&amp;uidToEdit=' . $uidToEdit . '" ' . ' onclick="return ADMIN.confirmationUnReg(\'' . clean_str_for_javascript(claro_htmlspecialchars($courseUserProperties['firstName']) . ' ' . claro_htmlspecialchars($courseUserProperties['lastName'])) . '\');">' . get_lang('Unsubscribe') . '</a>';
Пример #2
0
    if ($do != DO_EDIT_EXTRA_FIELD) {
        $catToEdit = array();
        $catToEdit['title'] = '';
        $catToEdit['comment'] = '';
        $catToEdit['nbline'] = 1;
        $catToEdit['id'] = '';
    }
} elseif ($displayMode == 'viewDefList') {
    $catList = claro_user_info_claro_user_info_get_cat_def_list();
} elseif ($displayMode == 'viewMainInfoEdit') {
    /*>>>>>>>>>>>> CATEGORIES MAIN INFO : EDIT <<<<<<<<<<<<*/
    $mainUserInfo = course_user_get_properties($userIdViewed, claro_get_current_course_id());
} elseif ($displayMode == 'viewContentEdit') {
    $catToEdit = claro_user_info_get_cat_content($userIdViewed, $_REQUEST['editContent']);
} elseif ($displayMode == 'viewContentList') {
    $mainUserInfo = course_user_get_properties($userIdViewed, claro_get_current_course_id());
}
if ($displayMode != "viewContentList") {
    claro_set_display_mode_available(false);
}
$skypeName = get_user_property($userIdViewed, 'skype');
if ($skypeName) {
    $skypeStatus = '<a href="skype:' . $skypeName . '?call">' . "\n" . '<img src="http://mystatus.skype.com/smallclassic/' . $skypeName . '"
                        style="border: none;" width="100" height="15" alt="" />' . "\n" . '</a>';
} else {
    $skypeStatus = '<em>' . get_lang('None') . '</em>';
}
//////////////////////////////
// OUTPUT
//////////////////////////////
$out = '';