Пример #1
0
} else {
    // course data load failed
    claro_die(get_lang('Wrong parameters'));
}
// Command list
$cmdList = array();
$cmdList[] = array('img' => 'edit', 'name' => get_lang('Edit Tool list'), 'url' => claro_htmlspecialchars(Url::Contextualize(get_path('clarolineRepositoryWeb') . 'course/tools.php')));
// Main group settings
$cmdList[] = array('img' => 'settings', 'name' => get_lang('Main Group Settings'), 'url' => claro_htmlspecialchars(Url::Contextualize(get_module_url('CLGRP') . '/group_properties.php')));
// Add tracking link
if (get_conf('is_trackingEnabled')) {
    $cmdList[] = array('img' => 'statistics', 'name' => get_lang('Statistics'), 'url' => claro_htmlspecialchars(Url::Contextualize(get_path('clarolineRepositoryWeb') . 'tracking/courseReport.php')));
}
// Add delete course link
if (get_conf('showLinkToDeleteThisCourse')) {
    $paramString = $course->getHtmlParamList('GET');
    $cmdList[] = array('img' => 'delete', 'name' => get_lang('Delete the whole course website'), 'url' => claro_htmlspecialchars(Url::Contextualize(get_path('clarolineRepositoryWeb') . 'course/settings.php?cmd=rqDelete' . (!empty($paramString) ? '&' . $paramString : ''))));
}
if ($adminContext && claro_is_platform_admin()) {
    // Switch to admin breadcrumb
    ClaroBreadCrumbs::getInstance()->prepend(get_lang('Administration'), get_path('rootAdminWeb'));
    unset($_cid);
    $cmdList[] = array('img' => 'back', 'name' => get_lang('Back to course list'), 'url' => claro_htmlspecialchars(Url::Contextualize($backUrl)));
}
//=================================
// Display section
//=================================
$out = '';
$out .= claro_html_tool_title($nameTools, null, $cmdList);
$out .= $dialogBox->render();
if ($display == DISP_COURSE_EDIT_FORM) {