예제 #1
0
                                array('title' => $langBack,
                                      'url' => $urlServer,
                                      'icon' => 'fa-reply',
                                      'level' => 'primary-label',
                                      'button-class' => 'btn-default')
                            ),false);
if (count($tree->buildRootsArray()) > 1) {
    $tool_content .= $tree->buildRootsSelectForm($fc);
}

$tool_content .= "
    <div class='row'>
        <div class='col-xs-12'>
            <ul class='list-group'>
                <li class='list-group-item list-header'>$langFaculty: <b>" . $tree->getFullPath($fc, false, $_SERVER['SCRIPT_NAME'] . '?fc=') . "</b>";
            $tool_content .= $tree->buildDepartmentChildrenNavigationHtml($fc, 'opencourses', $countCallback, $showEmpty);
       $tool_content .= "</ul>
           </div>
    </div>";



$queryCourseIds = '';
$queryExtraSelect = '';
$queryExtraJoin = '';
$queryExtraJoinWhere = '';
$runQuery = true;

if ($isInOpenCoursesMode) {
    // find subnode's certified opencourses
    $opencourses = array();
예제 #2
0
                $tool_content .= $tree->buildNodesNavigationHtml($tree->buildRootsArray(), 'opencourses');
            }
        }
    } else {
        // department exists
        $numofcourses = getdepnumcourses($fc);
        if (count($tree->buildRootsArray()) > 1) {
            $tool_content .= $tree->buildRootsSelectForm($fc);
        }
        $tool_content .= "<form action='{$_SERVER['SCRIPT_NAME']}' method='post'>";
        $tool_content .= "<table class='table-default'>\n                                  <tr><th><a name='top'></a>{$langFaculty}: " . $tree->getFullPath($fc, false, $_SERVER['SCRIPT_NAME'] . '?fc=') . "\n                                  </th></tr></table><br />";
        if ($numofcourses > 0) {
            $tool_content .= expanded_faculte($fc, $uid);
            $tool_content .= "<br /><div align='right'><input class='btn btn-primary' type='submit' name='submit' value='{$langRegistration}' />&nbsp;&nbsp;</div>";
        } else {
            $tool_content .= $tree->buildDepartmentChildrenNavigationHtml($fc, 'courses');
            $subTrees = $tree->buildSubtrees(array($fc));
            if (count($subTrees) <= 1) {
                // is leaf
                $tool_content .= "<br /><div class=alert1>{$langNoCoursesAvailable}</div>\n";
            }
        }
        $tool_content .= "</form>";
    }
    // end of else (department exists)
}
$tool_content .= "<script type='text/javascript'>\$(course_list_init);\nvar themeimg = '" . js_escape($themeimg) . "';\nvar lang = {\n        unCourse: '" . js_escape($langUnCourse) . "',\n        cancel: '" . js_escape($langCancel) . "',\n        close: '" . js_escape($langClose) . "',\n        unregCourse: '" . js_escape($langUnregCourse) . "',\n        reregisterImpossible: '" . js_escape("{$langConfirmUnregCours} {$m['unsub']}") . "',\n        invalidCode: '" . js_escape($langInvalidCode) . "',\n};</script>";
load_js('tools.js');
draw($tool_content, 1, null, $head_content);
function getfacfromfc($dep_id)
{