$error = get_string('dateexpired', BLOCK_SG_LANG_TABLE); } else { $groupingid = $sgs->get_grouping_id(); $sgrouping = new skills_grouping($courseid); // If user is in group - display error. if ($sgrouping->check_for_user_in_grouping($USER->id) !== false) { $error = get_string('alreadyingroup', BLOCK_SG_LANG_TABLE); } } } set_header(); echo $OUTPUT->header(); display_header(); display_group_view(); display_buttons(); load_yui_modules($courseid, $groupingid, $error); echo $OUTPUT->footer(); /** * This function set the page header -> JS/CSS includes. * */ function set_header() { global $PAGE; $PAGE->requires->css('/blocks/skills_group/css/skills_group.css'); $PAGE->requires->js_module(get_js_module_info('gallery-datatable-selection')); $PAGE->requires->js_module(get_js_module_info('gallery-datatable-paginator')); $PAGE->requires->js_module(get_js_module_info('gallery-paginator-view')); $PAGE->requires->strings_for_js(array('groupsloading', 'emptygroups', 'groupsloaderror', 'groupjoinsuccess', 'groupjoinerror'), BLOCK_SG_LANG_TABLE); } /**
} set_header(); echo $OUTPUT->header(); echo '<div id="fullWindow">'; echo '<div id="leftContent">'; display_left_menu(); echo '</div>'; echo '<div id="rightContent">'; $composedraftid = display_compose_view($courseid); display_inbox_view(); display_sent_view(); $replydraftid = display_view_message($courseid); display_settings(); draw_send_dialog(); draw_alert_dialog(); load_yui_modules($composedraftid, $replydraftid); echo '</div>'; echo '</div>'; echo $OUTPUT->footer(); /** * This function set the page header -> JS/CSS includes. * */ function set_header() { global $PAGE, $COURSE, $USER; // Css. $PAGE->requires->css('/blocks/course_message/css/inbox.css'); $PAGE->requires->css('/local/yuigallerylibs/gallery-multivalue-input/assets/skins/sam/gallery-multivalue-input.css'); // Js files. $PAGE->requires->js_module(get_js_module_info('gallery-multivalue-input'));