-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
70 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php include"../php/start.php"; ?> | ||
<div class="flex lg:flex-row flex-col"> | ||
<!-- Sidebar --> | ||
<div class="w-80 bg-gray-200 text-base-content min-h-screen"> | ||
<ul class="p-4"> | ||
<li><a href="main.php?page=add" class="block p-2 hover:bg-base-300 rounded">Ajouter film</a></li> | ||
<li><a href="main.php?page=list" class="block p-2 hover:bg-base-300 rounded">Voir liste</a></li> | ||
<li><a href="#" class="block p-2 hover:bg-base-300 rounded">Modifier films</a></li> | ||
<!-- Ajouter d'autres éléments de la barre latérale ici --> | ||
</ul> | ||
</div> | ||
|
||
<!-- Contenu principal --> | ||
<div class="flex-1 flex items-center justify-center"> | ||
<?php | ||
$page = isset($_GET['page']) ? $_GET['page'] : 'default'; | ||
|
||
switch($page) | ||
{ | ||
case 'add': | ||
include("bo_add_movie.php"); | ||
break; | ||
case 'list': | ||
include("bo_movie_list.php"); | ||
break; | ||
} | ||
?> | ||
<label for="sidebar-toggle" class="btn btn-primary lg:hidden">Open drawer</label> | ||
</div> | ||
</div> | ||
|
||
<!-- Bouton de basculement de la barre latérale pour les petits écrans --> | ||
<input type="checkbox" id="sidebar-toggle" class="hidden"> |