Mise à jours des vues

main
machaonix 3 years ago
parent c012167a72
commit 4fed04027e

Binary file not shown.

@ -1,26 +1,34 @@
<?php <head>
require("header.php"); <meta charset="utf8"/>
?> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?=$nomDuSite?></title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
</head>
<body>
<?php require("header.php"); ?>
<main> <main>
<table> <table>
<thead> <thead>
<tr>
<th>todo list</th>
<th>créateur</th>
<th>date de création</th>
<th>supprimer</th>
</tr>
</thead>
<tbody>
<?php foreach($todoLists as $todolist) :?>
<tr> <tr>
<td><?=$todolist->getNom()?></td> <th>todo list</th>
<td><?=$todolist->getCreateur()?></td> <th>créateur</th>
<td><?=$todolist->getDateCreation()?></td> <th>date de création</th>
<td><a href="?supprimerListe=<?=$todolist->getID()?>">A remplacer par un image de poubelle (^u^)'</a></td> <th>supprimer</th>
</tr> </tr>
<?php endforeach;?> </thead>
</tbody> <tbody>
<table> <?php foreach($todoLists as $todolist) :?>
</main> <tr>
<td><a href="?seeList=<?=$todolist->getNom()?>"><?=$todolist->getNom()?></a></td>
<td><?=$todolist->getCreateur()?></td>
<td><?=$todolist->getDateCreation()?></td>
<td><a href="?supprimerListe=<?=$todolist->getID()?>">A remplacer par un image de poubelle (^u^)'</a></td>
</tr>
<?php endforeach;?>
</tbody>
<table>
</main>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
</body>

@ -0,0 +1,28 @@
<head>
<meta charset="utf8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?=$nomDuSite?></title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="styles/ajouterListe.css">
</head>
<body class="container-fluid">
<?php require("header.php"); ?>
<div class=container>
<div class="row">
<div class="col"></div>
<main class="col">
<form method="POST" action="?action=addList">
<label for="nom">Nom </label><input name="nomNouvelleListe" type="input" id="nom"/>
<label for="ok"/>
<input name="valider" type="submit" value="Créer la liste" id="ok"/>
</form>
</main>
<div class="col"></div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
</body>

@ -1,20 +1,30 @@
<!DOCTYPE html>
<head> <head>
<meta charset="utf8"/> <meta charset="utf8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/> <meta name="viewport" content="width=device-width, initial-scale=1"/>
<title><?=$nomDuSite?> - connexion</title> <link rel="stylesheet" href="styles/connection.css">
<title>Se connecter</title>
</head> </head>
<body> <body>
<main> <main>
<h1>Connexion</h1> <div>
<form method="post" action=""> <h1>Se Connecter</h1>
<label>Pseudonyme: </label> <form method="post" action="?connection">
<input name="username" type="text" placeholder="Pseudonyme"/> <table>
<br> <tr>
<label>Mot de passe: </label> <td><label for="ps">Pseudo</label></td>
<input name="password" type="password" placeholder="Saisir votre mot de passe"> <td><input type="text" id="ps" name="pseudonyme"></td>
<br> </tr>
<input name="Connexion" type="submit"/> <tr>
</form> <td><label for="pw">Mot de passe</label></td>
<td><input type="password" id="pw" name="motDePasse"><br></td>
</tr>
<tr>
<td><label for="cls"></label><input type="reset" id="cls" value="Effacer"></td>
<td><label for="submit"></label><input type="submit" id="submit" name="veutSeConnecter" value="Valider"></td>
</tr>
</table>
</form>
</div>
</main> </main>
</body> </body>
</html>

@ -1,8 +1,8 @@
<html lang="fr">
<head> <head>
<meta charset="utf8"> <meta charset="utf8">
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?=$nomDuSite?></title> <title><?=$nomDuSite?></title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
</head> </head>
<body> <body>
@ -12,7 +12,6 @@
</header> </header>
<main> <main>
<?php require('menu.php'); ?>
<form method="post"> <form method="post">
<table> <table>
<thead> <thead>
@ -24,16 +23,11 @@
</thead> </thead>
<tbody> <tbody>
<tr>
<td><input name="estFait" type="checkbox" value="0"/></td>
<td>TacheEnDur</td>
<td>Cette tâche est à retirer des que possible ^^"</td>
</tr>
<?php foreach($taches as $tache):?> <?php foreach($taches as $tache):?>
<tr class="<?=$tache->couleur?>"> <tr>
<td><input name="estFait" type="checkbox" <?=$tache->estFait ? "" : "checked"?>/></td> <td><input name="estFait" type="checkbox" <?=$tache->estFait() ? "checked" : ""?>/></td>
<td><?=$tache->nom?></td> <td><?=$tache->getNom()?></td>
<td><?=$tache->commentaire?></td> <td><?=$tache->getCommentaire()?></td>
</tr> </tr>
<?php endforeach;?> <?php endforeach;?>
</tbody> </tbody>
@ -42,6 +36,5 @@
<input name="Décocher toutes les cases" type="reset"/> <input name="Décocher toutes les cases" type="reset"/>
</form> </form>
</main> </main>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
</body> </body>
</html>

@ -1,8 +1,8 @@
<html lang="fr">
<head> <head>
<meta charset="utf8"> <meta charset="utf8">
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?=$nomDuSite?></title> <title><?=$nomDuSite?></title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
</head> </head>
<body> <body>
@ -12,23 +12,20 @@
</header> </header>
<main> <main>
<?php require('menu.php'); ?>
<form method="post"> <form method="post">
<table> <table>
<thead> <thead>
<tr> <tr>
<th>Tâche</th> <th>Tâche</th>
<th>Commentaire</th> <th>Commentaire</th>
<th>Couleur</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php foreach($taches as $tache):?> <?php foreach($taches as $tache):?>
<tr class="<?=$tache->couleur?>"> <tr>
<td><input name="nom" type="text" value="<?=$tache->nom?>"/></td> <td><input name="nom" type="text" value="<?=$tache->getNom()?>"/></td>
<td><input name="commentaire" type="text" value="<?=$tache->commentaire?>"/></td> <td><input name="commentaire" type="text" value="<?=$tache->getCommentaire()?>"/></td>
<td><input name="couleur" type="color" value="<?=$tache->couleur?>"/></td>
</tr> </tr>
<?php endforeach;?> <?php endforeach;?>
</tbody> </tbody>
@ -37,6 +34,5 @@
<input name="Décocher toutes les cases" type="reset"/> <input name="Décocher toutes les cases" type="reset"/>
</form> </form>
</main> </main>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
</body> </body>
</html>

@ -11,12 +11,14 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php foreach($erreurs as $erreur => $commentaire) :?> <?php if(isset($erreurs)) : ?>
<tr> <?php foreach($erreurs as $erreur => $commentaire) :?>
<td><?=$erreur?></td> <tr>
<td><?=$commentaire?></td> <td><?=$erreur?></td>
</tr> <td><?=$commentaire?></td>
<?php endforeach;?> </tr>
<?php endforeach;?>
<?php endif;?>
</tbody> </tbody>
</table> </table>
</body> </body>

@ -1,3 +1,18 @@
<?php $nomDuSite="SUPER MEGA TODO LIST";?>
<header> <header>
<?=$nomDuSite?> <nav class="navbar navbar-exand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="?"><?=$nomDuSite?></a>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link dropdown-toggle" href="#" role="button" id="navbarDropdown" data-bs-toggle="dropdown" aria-expanded="false">Liste</a>
<ul class="dropdown-menu" aria-labellledby="navbarDropdown">
<li><a class="dropdown-item" href="?acction=addList">Ajouter une liste</a></li>
<li><a class="dropdown-item" href="?acction=modifyList">Modifier des listes</a></li>
</ul>
</li>
</ul>
</div>
</nav>
</header> </header>

@ -1,5 +0,0 @@
<div>
<a href="?acction=addLine">Ajouter une tâche</a>
<a href="?acction=delLine">Supprimer des tâches</a>
<a href="?acction=modifyLine">Modifier des tâches</a>
</div>
Loading…
Cancel
Save