diff options
Diffstat (limited to 'content/index.php')
-rwxr-xr-x | content/index.php | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/content/index.php b/content/index.php index e0c0e8a..fee991a 100755 --- a/content/index.php +++ b/content/index.php @@ -1,6 +1,6 @@ <?php -$title = "Contenu des cours"; +$title = "Cours"; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/header.php"; @@ -12,9 +12,21 @@ $contents = data_contents()["data"]["contents"]; <div class="container"> <br> - <h2><?= $title ?></h2> - - <?php $i = 2; foreach ($contents as $content): ?> + <h2>Cours</h2> + + <div class="dropdown" style="margin-bottom: 10px;"> + <button type="button" class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown"> + Contenus + </button> + <ul class="dropdown-menu"> + <li><a class="dropdown-item" href="/timetable">Emploi du temps</a></li> + <li><a class="dropdown-item disabled" href="#">Contenus</a></li> + <li><a class="dropdown-item" href="/homework">Devoirs</a></li> + <li><a class="dropdown-item" href="/files">Fichiers</a></li> + </ul> + </div> + + <?php $i = 2; foreach (array_reverse($contents) as $content): ?> <details open> <summary> <b><?= getSubject($content["subject"]) ?></b> · <?= implode(", ", $content["teachers"]) ?> · <?php |