controllers

main
Lilian BRETON 2 years ago
commit 2d12abb85e

@ -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,7 +24,10 @@
<div class="main">
<div class="topnav">
<a href="#home">Se connecter</a>
<form method="post" name="connection" id="connection">
<input class="connection" type="submit" value="Connection"/>
<input type="hidden" name="action" value="accessSignIn"/>
</form>
</div>

@ -13,26 +13,17 @@
<form class="login">
<div class="login__field">
<i class="login__icon fas fa-user"></i>
<input type="text" class="login__input" name="username" placeholder="Username">
<input type="text" class="login__input" name="username" placeholder="Username" required>
</div>
<div class="login__field">
<i class="login__icon fas fa-lock"></i>
<input type="password" class="login__input" name="password" placeholder="Password">
<input type="password" class="login__input" name="password" placeholder="Password" required>
</div>
<button class="button login__submit">
<span class="button__text">Log In Now</span>
<input class="button" type="submit" value="Log In"/>
<input type="hidden" name="action" value="signIn"/>
<i class="button__icon fas fa-chevron-right"></i>
</button>
</form>
<div class="social-login">
<h3>log in via</h3>
<div class="social-icons">
<a href="#" class="social-login__icon fab fa-instagram"></a>
<a href="#" class="social-login__icon fab fa-facebook"></a>
<a href="#" class="social-login__icon fab fa-twitter"></a>
</div>
</div>
</div>
<div class="screen__background">
<span class="screen__background__shape screen__background__shape4"></span>

@ -11,6 +11,7 @@ $vues['erreur'] = 'Vues/erreur.php';
$vues['addList'] = 'Vues/addList.php';
$vues['addTask'] = 'Vues/addTask.php';
$vues['accueil'] = 'Vues/accueil.php';
$vues['signIn'] = 'Vues/signIn.php';
$vues['accueilPrivate'] = 'Vues/accueilPrive.php';
$vues['connexion'] = 'Vues/connexion.php';

@ -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','accessConnectionPage','creerListe','delListe','singIn','singUp','deconnection');
$liste_actions_visiteur = array('goHome','changeCompletedTache','accessCreationTachePage','addTache','delTache','modifyList','accessCreationListePage','accessInscription','accessSignIn','creerListe','delListe','signIn','signUp','deconnection');
global $rep,$vues,$bd,$dataView,$styles,$assets;
session_start();
try{

@ -20,11 +20,13 @@ class VisitorController {
break;
case "signIn":
$this->Connexion($login, $mdp);
$this->Connection($vues_erreur);
break;
case "signUp":
$this->Inscription($login, $mdp);
$this->Inscription($vues_erreur);
break;
case "accessSignIn":
require($rep.$vues['signIn']);
break;
case "supprimerListe":
@ -82,19 +84,19 @@ class VisitorController {
$dVueEreur= array();
}
else{
require($rep.$vues['singUp']);
require($rep.$vues['signUp']);
}
$_REQUEST['action']=null;
$this->reinit();
}
public function Connexion(array $dVueEreur){
global $rep,$vues,$dataView;
$username=$_POST['login'];
$password=$_POST['mdp'];
$dVueEreur=Validation::val_connexion($username,$password,$dVueEreur);
if(!empty($dVueEreur)){
require($rep.$vues['signIn']);
}
$model= new MdlUser();

@ -92,6 +92,7 @@ class ListeGateway
}
$listes[] = new Liste($row['id'], $row['name'],false, null, $taches);
$taches = array();
<<<<<<< HEAD
/*$queryBug = "SELECT count(*) FROM Liste WHERE idCreator IS NULL";
$this->con->executeQuery($queryBug, array(':idListe' => array($idListe, PDO::PARAM_INT)));
@ -101,9 +102,10 @@ class ListeGateway
break;
}
*/
=======
>>>>>>> cd1b36dfd8a0767bdf2fe5ed8a1c4626e0921507
}
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