Ajout des vues

main
machaonix 3 years ago
commit 297046972c

@ -0,0 +1,26 @@
<?php
require("header.php");
?>
<main>
<table>
<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>
<td><?=$todolist->getNom()?></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>

@ -0,0 +1,20 @@
<!DOCTYPE html>
<head>
<meta charset="utf8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title><?=$nomDuSite?> - connexion</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"/>
</form>
</main>
</body>

@ -0,0 +1,47 @@
<html lang="fr">
<head>
<meta charset="utf8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?=$nomDuSite?></title>
</head>
<body>
<header>
<?php require('header.php'); ?>
</header>
<main>
<?php require('menu.php'); ?>
<form method="post">
<table>
<thead>
<tr>
<th>Fait</th>
<th>Tâche</th>
<th>Commentaire</th>
</tr>
</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>
<?php endforeach;?>
</tbody>
</table>
<input name="Sauvegarder l'étât!" type="submit"/>
<input name="Décocher toutes les cases" type="reset"/>
</form>
</main>
</body>
</html>

@ -0,0 +1,42 @@
<html lang="fr">
<head>
<meta charset="utf8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?=$nomDuSite?></title>
</head>
<body>
<header>
<?php require('header.php');?>
</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>
<?php endforeach;?>
</tbody>
</table>
<input name="Sauvegarder l'étât!" type="submit"/>
<input name="Décocher toutes les cases" type="reset"/>
</form>
</main>
</body>
</html>

@ -0,0 +1,22 @@
<head>
<meta charset="utf8"/>
<title>ERREUR :/</title>
</head>
<body>
<table>
<thead>
<tr>
<th>Erreur</th>
<th>Commentaire</th>
</tr>
</thead>
<tbody>
<?php foreach($erreurs as $erreur => $commentaire) :?>
<tr>
<td><?=$erreur?></td>
<td><?=$commentaire?></td>
</tr>
<?php endforeach;?>
</tbody>
</table>
</body>

@ -0,0 +1,3 @@
<header>
<?=$nomDuSite?>
</header>

@ -0,0 +1,5 @@
<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