Mise à jours des vues

main
machaonix 3 years ago
parent c012167a72
commit 4fed04027e

Binary file not shown.

@ -1,8 +1,13 @@
<?php
require("header.php");
?>
<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">
</head>
<body>
<?php require("header.php"); ?>
<main>
<main>
<table>
<thead>
<tr>
@ -15,7 +20,7 @@
<tbody>
<?php foreach($todoLists as $todolist) :?>
<tr>
<td><?=$todolist->getNom()?></td>
<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>
@ -23,4 +28,7 @@
<?php endforeach;?>
</tbody>
<table>
</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>

@ -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>
<meta charset="utf8"/>
<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>
<body>
<main>
<h1>Connexion</h1>
<form method="post" action="">
<label>Pseudonyme: </label>
<input name="username" type="text" placeholder="Pseudonyme"/>
<br>
<label>Mot de passe: </label>
<input name="password" type="password" placeholder="Saisir votre mot de passe">
<br>
<input name="Connexion" type="submit"/>
<div>
<h1>Se Connecter</h1>
<form method="post" action="?connection">
<table>
<tr>
<td><label for="ps">Pseudo</label></td>
<td><input type="text" id="ps" name="pseudonyme"></td>
</tr>
<tr>
<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>
</body>
</html>

@ -1,8 +1,8 @@
<html lang="fr">
<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">
</head>
<body>
@ -12,7 +12,6 @@
</header>
<main>
<?php require('menu.php'); ?>
<form method="post">
<table>
<thead>
@ -24,16 +23,11 @@
</thead>
<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):?>
<tr class="<?=$tache->couleur?>">
<td><input name="estFait" type="checkbox" <?=$tache->estFait ? "" : "checked"?>/></td>
<td><?=$tache->nom?></td>
<td><?=$tache->commentaire?></td>
<tr>
<td><input name="estFait" type="checkbox" <?=$tache->estFait() ? "checked" : ""?>/></td>
<td><?=$tache->getNom()?></td>
<td><?=$tache->getCommentaire()?></td>
</tr>
<?php endforeach;?>
</tbody>
@ -42,6 +36,5 @@
<input name="Décocher toutes les cases" type="reset"/>
</form>
</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>
</html>

@ -1,8 +1,8 @@
<html lang="fr">
<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">
</head>
<body>
@ -12,23 +12,20 @@
</header>
<main>
<?php require('menu.php'); ?>
<form method="post">
<table>
<thead>
<tr>
<th>Tâche</th>
<th>Commentaire</th>
<th>Couleur</th>
</tr>
</thead>
<tbody>
<?php foreach($taches as $tache):?>
<tr class="<?=$tache->couleur?>">
<td><input name="nom" type="text" value="<?=$tache->nom?>"/></td>
<td><input name="commentaire" type="text" value="<?=$tache->commentaire?>"/></td>
<td><input name="couleur" type="color" value="<?=$tache->couleur?>"/></td>
<tr>
<td><input name="nom" type="text" value="<?=$tache->getNom()?>"/></td>
<td><input name="commentaire" type="text" value="<?=$tache->getCommentaire()?>"/></td>
</tr>
<?php endforeach;?>
</tbody>
@ -37,6 +34,5 @@
<input name="Décocher toutes les cases" type="reset"/>
</form>
</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>
</html>

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

@ -1,3 +1,18 @@
<?php $nomDuSite="SUPER MEGA TODO LIST";?>
<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>

@ -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