bouton Cours dans la barre d'outils
This commit is contained in:
parent
972c29bf5c
commit
c04cf63b62
@ -893,10 +893,9 @@ class layout extends common
|
|||||||
if ($this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD')) {
|
if ($this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD')) {
|
||||||
// Items de gauche
|
// Items de gauche
|
||||||
$leftItems = '';
|
$leftItems = '';
|
||||||
// Sélecteur de langues
|
// Sélecteur de cours
|
||||||
if ($this->getUser('group') >= self::GROUP_TEACHER) {
|
if ($this->getUser('group') >= self::GROUP_TEACHER) {
|
||||||
$c = 0;
|
$c = 0;
|
||||||
$leftItem = '';
|
|
||||||
foreach (self::$languages as $key => $value) {
|
foreach (self::$languages as $key => $value) {
|
||||||
if (is_dir(self::DATA_DIR . $key)) {
|
if (is_dir(self::DATA_DIR . $key)) {
|
||||||
$c++;
|
$c++;
|
||||||
@ -910,6 +909,11 @@ class layout extends common
|
|||||||
$leftItems .= '</select></li>';
|
$leftItems .= '</select></li>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Bouton Gérer les cours
|
||||||
|
$leftItems .= '<li>' . template::ico('cubes', [
|
||||||
|
'href' => helper::baseUrl() . 'course',
|
||||||
|
'help' => 'Cours'
|
||||||
|
]) . '</li>';
|
||||||
// Liste des pages
|
// Liste des pages
|
||||||
if ($this->getUser('group') >= self::GROUP_TEACHER) {
|
if ($this->getUser('group') >= self::GROUP_TEACHER) {
|
||||||
$leftItems .= '<li><select id="barSelectPage">';
|
$leftItems .= '<li><select id="barSelectPage">';
|
||||||
|
Loading…
Reference in New Issue
Block a user