First commit
This commit is contained in:
6
vue/bibliotheque.php
Normal file
6
vue/bibliotheque.php
Normal 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
2
vue/footer.php
Normal file
@@ -0,0 +1,2 @@
|
||||
</body>
|
||||
</html>
|
6
vue/gestion_categories.php
Normal file
6
vue/gestion_categories.php
Normal 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
14
vue/gestion_livres.php
Normal 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
8
vue/header.php
Normal 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
4
vue/navigation.php
Normal 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>
|
Reference in New Issue
Block a user