generated from Templates_CodeFirst/templateHtmlCss
Merge branch 'main' of https://codefirst.iut.uca.fr/git/lilian.breton/PHP_Project
commit
4043dad054
@ -1,72 +1,73 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Acceuil</title>
|
<title>Ajouter une Liste</title>
|
||||||
<link rel="stylesheet" href="styles/commonStyles.css"/>
|
<link rel="stylesheet" href="Style/bootstrap.css">
|
||||||
<link rel="stylesheet" href="styles/acceuilStyles.css"/>
|
<link rel="stylesheet" href="Style/listStyle.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<form method="POST" name="goBackHome" id="GoHome">
|
<form method="POST" name="goBackHome" id="GoHome">
|
||||||
<input type="image" src="assets/logo.png"/>
|
<input type="image" src="assets/logo.png"/>
|
||||||
<input type="hidden" name="action" value="goHome"/>
|
<input type="hidden" name="action" value="goHome"/>
|
||||||
</form>
|
</form>
|
||||||
<h1>To-do</h1>
|
</header>
|
||||||
<?php
|
|
||||||
if(!isset($_SESSION['login'])){
|
<div class="sidenav">
|
||||||
echo '
|
<a href="#">About</a>
|
||||||
<form method="post" name="connection" id="connection">
|
<a href="#">Services</a>
|
||||||
<input class="connection" type="submit" value="Connection"/>
|
<a href="#">Clients</a>
|
||||||
<input type="hidden" name="action" value="accessConnectionPage"/>
|
<a href="#">Contact</a>
|
||||||
</form>';
|
</div>
|
||||||
}
|
|
||||||
else{
|
<div class="main">
|
||||||
echo'
|
|
||||||
<div>
|
<div class="topnav">
|
||||||
<form method="post" name="deconnection" id="deconnection">
|
<a href="#home">Se connecter</a>
|
||||||
<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>
|
</div>
|
||||||
<?php
|
|
||||||
if(isset($dataView)) {
|
|
||||||
foreach ($dataView as $liste){
|
|
||||||
echo '
|
<h2>Liste Publique</h2>
|
||||||
<div>
|
<div class="container">
|
||||||
<form method="post" name="accessList" id="accessList">
|
|
||||||
<h4>• '.$liste->get_nom().'</h4>
|
<?php
|
||||||
<input class="button" type="submit" value="View List"/>
|
|
||||||
<input type="hidden" name="action" value="accessListInfos"/>
|
if (isset($dataView)):
|
||||||
<input type="hidden" name="liste" value="'.$liste->get_id().'"/>
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
<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>
|
||||||
</form>
|
</form>
|
||||||
</div>';
|
</li>
|
||||||
|
|
||||||
|
<?php
|
||||||
}
|
}
|
||||||
}
|
?>
|
||||||
?>
|
|
||||||
|
|
||||||
<div>
|
</ul>
|
||||||
<form method="post" name="createList" id="createList">
|
|
||||||
<input class="create-list" type="submit" value="Create List"/>
|
|
||||||
<input type="hidden" name="action" value="accessCreationListePage"/>
|
<?php
|
||||||
</form>
|
endif;
|
||||||
|
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
|
Loading…
Reference in new issue