You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.9 KiB

<!DOCTYPE html>
<html>
<head>
<title>Acceuil</title>
<link rel="stylesheet" href="../vues/styles/commonStyles.css">
</head>
<body>
<header>
<h1>Welcome to our fantastic to do list app !</h1>
<?php
if(!isset($_SESSION['login'])){
echo '
<div>
<form method="post" name="connection" id="connection">
<input class="button" type="submit" value="Connection"/>
<input type="hidden" name="action" value="accessConnectionPage"/>
</form>
</div>';
}
else{
echo'
<div>
<form method="post" name="profil" id="profil">
<input class="button" type="submit" value="Profile"/>
<input type="hidden" name="action" value="accessProfilePage"/>
</form>
</div>';
}?>
</header>
<?php if(isset($_SESSION['login'])){
echo '
<div>
<form method="post" name="listesPv" id="listesPv">
<input class="button" type="submit" value="Access private lists"/>
<input type="hidden" name="action" value="accessPrivateLists"/>
</form>
</div>';
}?>
<div>
<h2>Public Lists</h2>
<?php
if(isset($dataView)) {
foreach ($dataView as $liste){
echo $liste->nom;
echo '<br/>';
if($liste->taches != null){
foreach($liste->taches as $tache){
echo ' * '.$tache->nom;
echo '<br/>';
}
}
}
}
?>
<div>
<form method="post" name="createList" id="createList">
<input class="button" type="submit" value="Create List"/>
<input type="hidden" name="action" value="accessCreationListePage"/>
</form>
</div>
</div>
</body>
</html>