generated from Templates_CodeFirst/templateHtmlCss
parent
1055187d74
commit
4294cab5e6
@ -1,73 +1,72 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Ajouter une Liste</title>
|
||||
<link rel="stylesheet" href="Style/bootstrap.css">
|
||||
<link rel="stylesheet" href="Style/listStyle.css">
|
||||
<title>Acceuil</title>
|
||||
<link rel="stylesheet" href="styles/commonStyles.css"/>
|
||||
<link rel="stylesheet" href="styles/acceuilStyles.css"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<header>
|
||||
<form method="POST" name="goBackHome" id="GoHome">
|
||||
<input type="image" src="assets/logo.png"/>
|
||||
<input type="hidden" name="action" value="goHome"/>
|
||||
</form>
|
||||
</header>
|
||||
|
||||
<div class="sidenav">
|
||||
<a href="#">About</a>
|
||||
<a href="#">Services</a>
|
||||
<a href="#">Clients</a>
|
||||
<a href="#">Contact</a>
|
||||
</div>
|
||||
|
||||
<div class="main">
|
||||
|
||||
<div class="topnav">
|
||||
<a href="#home">Se connecter</a>
|
||||
<h1>To-do</h1>
|
||||
<?php
|
||||
if(!isset($_SESSION['login'])){
|
||||
echo '
|
||||
<form method="post" name="connection" id="connection">
|
||||
<input class="connection" type="submit" value="Connection"/>
|
||||
<input type="hidden" name="action" value="accessConnectionPage"/>
|
||||
</form>';
|
||||
}
|
||||
else{
|
||||
echo'
|
||||
<div>
|
||||
<form method="post" name="deconnection" id="deconnection">
|
||||
<input class="deconnection" type="submit" value="Deconnection"/>
|
||||
<input type="hidden" name="action" value="deconnection"/>
|
||||
</form>
|
||||
</div>';
|
||||
}?>
|
||||
</header>
|
||||
<div class="body">
|
||||
<div class="head-body">
|
||||
<h2>Public Lists</h2>
|
||||
<?php if(isset($_SESSION['login'])){
|
||||
echo '
|
||||
<div>
|
||||
<form method="post" name="listesPv" id="listesPv">
|
||||
<input class="private-lists" type="submit" value="Private Lists"/>
|
||||
<input type="hidden" name="action" value="accessPrivateLists"/>
|
||||
</form>
|
||||
</div>';
|
||||
}?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<h2>Liste Publique</h2>
|
||||
<div class="container">
|
||||
|
||||
<?php
|
||||
|
||||
if (isset($dataView)):
|
||||
?>
|
||||
|
||||
|
||||
<ul>
|
||||
<li class="table-header">
|
||||
<div class="col col-1">List Name</div>
|
||||
<div class="col col-2">See Details</div>
|
||||
</li>
|
||||
|
||||
<?php
|
||||
foreach ($dataView as $list){
|
||||
?>
|
||||
<li class="table-row">
|
||||
<div class="col col-1" data-label="listName"><?php echo $list->getName(); ?></div>
|
||||
<form method="POST" id="modifyList" name="modifyList" class="col col-2">
|
||||
<input value="Modify" type="submit"/>
|
||||
<input type="hidden" name="action" value="modifyList"/>
|
||||
<input type="hidden" name="list" value="<?=$list->getId()?>"/></input>
|
||||
<?php
|
||||
if(isset($dataView)) {
|
||||
foreach ($dataView as $liste){
|
||||
echo '
|
||||
<div>
|
||||
<form method="post" name="accessList" id="accessList">
|
||||
<h4>• '.$liste->get_nom().'</h4>
|
||||
<input class="button" type="submit" value="View List"/>
|
||||
<input type="hidden" name="action" value="accessListInfos"/>
|
||||
<input type="hidden" name="liste" value="'.$liste->get_id().'"/>
|
||||
</form>
|
||||
</li>
|
||||
|
||||
<?php
|
||||
</div>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
<?php
|
||||
endif;
|
||||
|
||||
?>
|
||||
</div>
|
||||
}
|
||||
?>
|
||||
|
||||
<div>
|
||||
<form method="post" name="createList" id="createList">
|
||||
<input class="create-list" type="submit" value="Create List"/>
|
||||
<input type="hidden" name="action" value="accessCreationListePage"/>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in new issue