First commit

This commit is contained in:
2025-09-11 11:25:49 +02:00
commit 2a1804109b
19 changed files with 256 additions and 0 deletions

6
vue/bibliotheque.php Normal file
View File

@@ -0,0 +1,6 @@
<h2>Liste des livres</h2>
<ul>
<?php foreach ($livres as $livre): ?>
<li>[<?= $livre['nom'] ?>] <?= $livre['titre'] ?> - <?= $livre['auteur'] ?> (<?= $livre['annee'] ?>)</li>
<?php endforeach; ?>
</ul>

2
vue/footer.php Normal file
View File

@@ -0,0 +1,2 @@
</body>
</html>

View File

@@ -0,0 +1,6 @@
<h1>Gestion des catégories</h1>
<form method="POST">
<label>Nom : <input type="text" name="nom"></label><br>
<button type="submit">Ajouter</button>
</form>

14
vue/gestion_livres.php Normal file
View File

@@ -0,0 +1,14 @@
<h1>Gestion de la bibliothèque</h1>
<form method="POST">
<label>Catégorie :</label>
<select name="categorie">
<?php foreach ($categories as $categorie): ?>
<option value="<?= $categorie['id'] ?>"><?= $categorie['nom'] ?></option>
<?php endforeach ?>
</select><br>
<label>Titre : <input type="text" name="titre"></label><br>
<label>Auteur : <input type="text" name="auteur"></label><br>
<label>Année : <input type="number" name="annee"></label><br>
<button type="submit">Ajouter</button>
</form>

8
vue/header.php Normal file
View File

@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Bibliothèque</title>
</head>
<body>
<h4><a href="../index.php">Accueil</a></h4>

4
vue/navigation.php Normal file
View File

@@ -0,0 +1,4 @@
<h1><a href="./controleur/afficherLivres.php">Liste des livres</a></h1>
<h1><a href="./controleur/ajouterLivre.php">Gestion des livres</a></h1>
<h1><a href="./controleur/ajouterCategorie.php">Gestion des catégories</a></h1>