summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-01-25 21:29:28 +0100
committerMinteck <contact@minteck.org>2023-01-25 21:29:28 +0100
commitce1ed675a34f5e3d1d317e6d8a1bd33de55b72d8 (patch)
tree4f8d8aa12fea4fc5d76c0e116a2c4caca02f779e /content
parent0fb31ef23c57749eec78cb3eb38d825e2ca037b5 (diff)
downloadnots-ce1ed675a34f5e3d1d317e6d8a1bd33de55b72d8.tar.gz
nots-ce1ed675a34f5e3d1d317e6d8a1bd33de55b72d8.tar.bz2
nots-ce1ed675a34f5e3d1d317e6d8a1bd33de55b72d8.zip
Updated 9 files and added 2 files (automated)HEADmane
Diffstat (limited to 'content')
-rwxr-xr-xcontent/index.php20
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