main
Thomas Chazot 2 years ago
parent 8f1c8be55d
commit 331601f318

@ -71,7 +71,7 @@ h2 {
}
/* The navigation menu links */
.sidenav a {
.sidenav input {
padding: 6px 8px 6px 16px;
text-decoration: none;
font-size: 25px;
@ -80,117 +80,7 @@ h2 {
}
/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
color: #f1f1f1;
}
/* Style page content */
.main {
margin-left: 160px; /* Same as the width of the sidebar */
padding: 0px 10px;
}
/* On smaller screens, where height is less than 450px, change the style of the sidebar (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
.sidenav {padding-top: 15px;}
.sidenav a {font-size: 18px;}
}
body {
font-family: 'lato', sans-serif;
}
.container {
max-width: 1000px;
margin-left: auto;
margin-right: auto;
padding-left: 10px;
padding-right: 10px;
}
h2 {
font-size: 26px;
margin: 20px 0;
text-align: center;
}
li {
border-radius: 3px;
padding: 25px 30px;
display: flex;
justify-content: space-between;
margin-bottom: 25px;
}
.table-header {
background-color: #95A5A6;
font-size: 14px;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.table-row {
background-color: #ffffff;
box-shadow: 0px 0px 9px 0px rgba(0,0,0,0.1);
}
.col-1 {
flex-basis: 15%;
}
.col-2 {
flex-basis: 50%;
}
.col-3 {
flex-basis: 15%;
}
.col-4 {
flex-basis: 10%;
}
.col-5 {
flex-basis: 5%;
}
.col-6 {
flex-basis: 100%;
}
@media all and (max-width: 767px) {
.table-header {
display: none;
}
li {
display: block;
}
.col {
flex-basis: 100%;
}
.col {
display: flex;
padding: 10px 0;
}
}
/* The sidebar menu */
.sidenav {
height: 100%; /* Full-height: remove this if you want "auto" height */
width: 160px; /* Set the width of the sidebar */
position: fixed; /* Fixed Sidebar (stay in place on scroll) */
z-index: 1; /* Stay on top */
top: 0; /* Stay at the top */
left: 0;
background-color: #111; /* Black */
overflow-x: hidden; /* Disable horizontal scroll */
padding-top: 20px;
}
/* The navigation menu links */
.sidenav a {
padding: 6px 8px 6px 16px;
text-decoration: none;
font-size: 25px;
color: #818181;
display: block;
}
/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
.sidenav input:hover {
color: #f1f1f1;
}
@ -214,7 +104,7 @@ h2 {
}
/* Style the links inside the navigation bar */
.topnav a {
.topnav input {
float: right;
color: #f2f2f2;
text-align: center;
@ -224,13 +114,13 @@ h2 {
}
/* Change the color of links on hover */
.topnav a:hover {
.topnav input:hover {
background-color: #ddd;
color: black;
}
/* Add a color to the active/current link */
.topnav a.active {
.topnav input.active {
background-color: #04AA6D;
color: white;
}

@ -24,9 +24,9 @@
<div class="main">
<div class="topnav">
<form method="POST" name="connection" id="connection">
<input value="Connection" type="submit"/>
<input type="hidden" name="action" value="goSignIn"/>
<form method="post" name="connection" id="connection">
<input class="connection" type="submit" value="Connection"/>
<input type="hidden" name="action" value="accessSignIn"/>
</form>
</div>

@ -4,7 +4,7 @@ class FrontController {
public function __construct(){
$liste_actions_utilisateur = array('accessPrivateLists','crerListePv');
$liste_actions_visiteur = array('goHome','changeCompletedTache','accessCreationTachePage','addTache','delTache','modifyList','accessCreationListePage','accessInscription','goSignIn','creerListe','delListe','singIn','singUp','deconnection');
$liste_actions_visiteur = array('goHome','changeCompletedTache','accessCreationTachePage','addTache','delTache','modifyList','accessCreationListePage','accessInscription','accessSignIn','creerListe','delListe','singIn','singUp','deconnection');
global $rep,$vues,$bd,$dataView,$styles,$assets;
session_start();
try{

@ -26,8 +26,7 @@ class VisitorController {
case "signUp":
$this->Inscription($login, $mdp);
break;
case "goSignIn":
echo "je passe ici";
case "accessSignIn":
require($rep.$vues['signIn']);
break;
@ -45,7 +44,6 @@ class VisitorController {
global $rep,$vues,$dataView,$styles;
$model = new MdlListe();
$dataView = $model->getPublicList();
echo "wtf";
require($rep.$vues['accueil']);
$vues_erreur= array();
}
@ -67,7 +65,7 @@ class VisitorController {
$vues_erreur= array();
}
else{
require($rep.$vues['singUp']);
require($rep.$vues['signUp']);
}
$_REQUEST['action']=null;
$this->reinit();
@ -84,6 +82,7 @@ class VisitorController {
}
$model= new MdlUser();
if($model->existUser($username)){
echo "aaaaaaaaaaggehdhhdhdhdhdhdhcfhgezshfiueshfiuehiufhsiufheiushfiuhf";
if(password_verify($password,$model->getPasswordHash($username))){
$model->connexion($username);
$_REQUEST['action']=null;

@ -70,7 +70,7 @@ class ListeGateway
public function getPublicLists():array{
$listes = [];
$taches = null;
$taches = array();
try {
$query = "SELECT * FROM Liste WHERE idCreator IS NULL";
@ -91,19 +91,9 @@ class ListeGateway
}
}
$listes[] = new Liste($row['id'], $row['name'],false, null, $taches);
$taches = null;
/*$queryBug = "SELECT count(*) FROM Liste WHERE idCreator IS NULL";
$this->con->executeQuery($queryBug, array(':idListe' => array($idListe, PDO::PARAM_INT)));
$resultsBug = $this->con->getResults();
echo "$resultsBug[0][0]";
if (sizeof($listes)===$resultsBug[0][0]){
break;
}
*/
$taches = array();
}
echo "haaaaaaaaaaaaaaaa <br/>";
}
catch(PDOException $Exception) {
echo 'erreur';

@ -10,6 +10,6 @@ Autoload::charger();
// Construction du controleur
//$cont=new FrontControleur();
$_REQUEST['action']=NULL;
//$_REQUEST['action']=NULL;
$cont= new FrontController();
?>

Loading…
Cancel
Save