Amélioration du visuel, Navbar réaliser pour qu il s adapte à l utilisateur et le visiteur, le modele et controleur est maintenant bien structurer, le problème reste l autoload

pull/11/head
Emre KARTAL 3 years ago
parent 5e1bdf09de
commit d672c5132c

@ -5,93 +5,101 @@ class CtrlVisiteur {
function __construct() {
global $rep,$vues;
$dVueEreur = array ();
try{
$action=NULL;
if(isset($_REQUEST['action'])){
$action = $_REQUEST["action"];
}
$action=NULL;
if(isset($_REQUEST['action'])){
$action = $_REQUEST["action"];
}
switch($action) {
switch($action) {
//pas d'action, on réinitialise 1er appel
case NULL:
$this->Reinit();
break;
//pas d'action, on réinitialise 1er appel
case NULL:
$this->Reinit();
break;
case "validationFormulaire":
$this->ValidationFormulaire($dVueEreur);
break;
case "validationFormulaire":
$this->ValidationFormulaire($dVueEreur);
break;
case "redirectionLogin":
$this->redirectionLogin($dVueEreur);
break;
case "seConnecter":
$this->seConnecter($dVueEreur);
break;
case "redirectionInscription":
$this->redirectionInscription($dVueEreur);
break;
case "redirectionListePublic":
$this->ConsulterListePublic($dVueEreur);
break;
case "seConnecter":
$this->seConnecter($dVueEreur);
break;
case "redirectionLogin":
$this->redirectionLogin($dVueEreur);
break;
case "ConsulterListe":
$this->ConsulterListe();
break;
case "redirectionInscription":
$this->redirectionInscription($dVueEreur);
break;
//mauvaise action
default:
$dVueEreur[] = "Erreur d'appel php";
require ($rep.$vues['home']);
break;
}
//mauvaise action
default:
$dVueEreur[] = "Erreur d'appel php";
require ($rep.$vues['home']);
break;
}
} catch (PDOException $e)
{
//si erreur BD, pas le cas ici
$dVueEreur[] = "Erreur inattendue!!! ";
require ($rep.$vues['erreur']);
} catch (PDOException $e)
{
//si erreur BD, pas le cas ici
$dVueEreur[] = "Erreur inattendue!!! ";
require ($rep.$vues['erreur']);
}
catch (Exception $e2)
{
}
catch (Exception $e2)
{
$dVueEreur[] = "Erreur inattendue!!! ";
require ($rep.$vues['erreur']);
}
}
//fin
exit(0);
}//fin constructeur
//fin
exit(0);
}//fin constructeur
function Reinit() {
global $rep,$vues;
require ($rep.$vues['login']);
}
function Reinit() {
global $rep,$vues;
require ($rep.$vues['listPublic']);
}
function ValidationFormulaire(array $dVueEreur) {
require ($rep.$vues['inscription']);
}
function ValidationFormulaire(array $dVueEreur) {
global $rep,$vues;
Modele::CreerUtilisateur();
require ($rep.$vues['login']);
}
function redirectionLogin(array $dVueEreur) {
require ($rep.$vues['login']);
}
function redirectionLogin(array $dVueEreur) {
global $rep,$vues;
require ($rep.$vues['login']);
}
function redirectionInscription(array $dVueEreur) {
require ($rep.$vues['inscription']);
}
function redirectionInscription(array $dVueEreur) {
global $rep,$vues;
require ($rep.$vues['inscription']);
}
function seConnecter(array $dVueEreur) {
require ($rep.$vues['login']);
}
function seConnecter(array $dVueEreur) {
global $rep,$vues;
require ($rep.$vues['login']);
}
function ConsulterListePublic(array $dVueEreur) {
global $rep,$vues;
Modele::RecupererListePublic();
require ($rep.$vues['listPublic']);
}
function ConsulterListe(){
require ($rep.$vues['listeVue']);
}
}//fin class

@ -6,17 +6,18 @@ class Liste
{
private $id;
private $nom;
private $description;
private $dateCreation;
private $estPublic;
private $idUser;
private $idUtilisateur;
public function __construct($id, $nom, $dateCreation, $estPublic, $idUser){
public function __construct($id, $nom, $description, $dateCreation, $estPublic, $idUser){
$this->id = $id;
$this->nom = $nom;
$this->description = $description;
$this->dateCreation = $dateCreation;
$this->estPublic = $estPublic;
$this->idUser = $idUser;
$this->idUtilisateur = $idUtilisateur;
}
//Id
@ -55,13 +56,13 @@ class Liste
$this->estPublic = $estPublic;
}
//IdUser
//idUtilisateur
public function getIdUser(){
return $this->idUser;
return $this->idUtilisateur;
}
public function setIdUser($idUser){
$this->idUser = $idUser;
$this->idUtilisateur = $idUtilisateur;
}
}

@ -2,28 +2,27 @@
class ListeGateway{
private $con;
public function __construct(Connection $con){
$this->con=$con;
public function __construct(){
$this->con=new Connection($dsn,$user,$pass);
}
public function Ajouter(string $nom, Date $dateCreation, bool $estValide, int $idCreateur, bool $estPublic){
$query='INSERT INTO ToDoList_Liste(nom, dateCreation,estValide, createur, estPublic) VALUES(:nom, :dateCreation, :estValide, :idCreateur, :estPublic)';
$this->con->executeQuery($query, array('nom' => array($nom, PDO::PARAM_STRING)),
array('dateCreation' => array($dateCreation, PDO::PARAM_STRING)),
array('estValide' => array($estValide, PDO::PARAM_BOOL)),
array('idCreateur' => array($idCreateur, PDO::PARAM_INT)),
array('estPublic' => array($estPublic, PDO::PARAM_INT))
)
array('dateCreation' => array($dateCreation, PDO::PARAM_STRING)),
array('estValide' => array($estValide, PDO::PARAM_BOOL)),
array('idCreateur' => array($idCreateur, PDO::PARAM_INT)),
array('estPublic' => array($estPublic, PDO::PARAM_INT)));
}
public function Editer(Liste $Liste, string $nom,){
public function Editer(Liste $Liste){
$query='UPDATE ToDoListe_Liste SET nom=:nom WHERE id=:id';
$this->con->executeQuery($query, array('nom' => array($Liste->getNom(), PDO::PARAM_STRING)), array('id' => array($Liste->getId()),PDO::PARAM_INT));
}
public function Supprimer(int $id){
$query='DELETE FROM ToDoListe_Liste WHERE id=:id';
$this->con->executeQuery($query,'id' => array($id, PDO::PARAM_STRING)));
$this->con->executeQuery($query,array('id' => array($id, PDO::PARAM_STRING)));
}
public function getListe(int $offset, int $limit){
@ -43,8 +42,11 @@ class ListeGateway{
public function getListePublic($offset,$limit){
$query = "SELECT * FROM ToDoListe_Liste AND estPublic LIMITS $offset,$limit";
$this->con->executeQuery($query);
$results=$this->con->getResults();
return $results;
$tab = [];
foreach ($this->con->getResults() as $liste) {
$tab[] = new Liste($liste["id"],$liste["nom"],$liste["description"],$liste["dateCreation"],$liste["estPublic"],$liste["idUtilisateur"]);
}
return $tab;
}
}
?>

@ -0,0 +1,34 @@
<?php
namespace modeles;
class Modele
{
public function __construct(){
}
public static function CreerUtilisateur(){
global $dVueEreur;
$userGtw = new UtilisateurGateway();
$verif = Validation::val_form_user($_POST["nom-Form"],$_POST["prenom-Form"],$_POST["pseudo-Form"],$_POST["password-Form"],$_POST["mail-Form"],$dVueEreur);
if($verif == false){
throw new Exception();
}
$hash = password_hash($_POST[password-Form], PASSWORD_DEFAULT);
$userGtw->AjouterUtilisateur($_POST["nom-Form"],$_POST["prenom-Form"],$_POST["pseudo-Form"],$_POST["mail-Form"],$_POST["password-Form"]);
}
public static function RecupererListePublic(){
$userGtw = new UtilisateurGateway();
$userGtw->getListePublic();
}
}

@ -1,28 +0,0 @@
<?php
namespace modeles;
class Modele
{
public function __construct(){
}
public static function CreerUtilisateur(){
$userGtw = new UtilisateurGateway();
$verif = Validation::val_form_user();
if($verif == false){
throw new Exception();
}
$userGtw->AjouterUtilisateur();
}
}

@ -1,8 +1,8 @@
<?php
class TacheGateway{
private $con;
public function __construct(Connection $con){
$this->con=$con;
public function __construct(){
$this->con=new Connection($dsn,$user,$pass);
}
public function Ajouter(string $nom, string $description, Date $dateCreation, bool $estValide, int $idCreateur){
@ -11,17 +11,17 @@ class TacheGateway{
array('description' => array($description, PDO::PARAM_STRING)),
array('dateCreation' => array($dateCreation, PDO::PARAM_STRING)),
array('estValide' => array($estValide, PDO::PARAM_BOOL)),
array('idCreateur' => array($idCreateur, PDO::PARAM_INT)))
array('idCreateur' => array($idCreateur, PDO::PARAM_INT)));
}
public function Editer(Tache $tache, string $nom, string $description){
$query='UPDATE ToDoListe_Tache SET nom=:nom, description =:description WHERE id=:id';
$this->con->executeQuery($query, array('nom' => array($tache->getNom(), PDO::PARAM_STRING)), array('description' => array($tache->getdescription(), PDO::PARAM_STRING)), array('id' => array($tache->getId()),PDO::PARAM_INT));
$this->con->executeQuery($query, array('nom' => array($tache->getNom(), PDO::PARAM_STRING)), array('description' => array($tache->getdescription(), PDO::PARAM_STRING)), array('id' => array($tache->getId(),PDO::PARAM_INT)));
}
public function Supprimer(Tache $tache){
$query='DELETE FROM ToDoList_Tache WHERE id=:id';
$this->con->executeQuery($query,'id' => array($tache->getId(), PDO::PARAM_STRING)));
$this->con->executeQuery($query,'id' => array($tache->getId(), PDO::PARAM_STRING));
}
}
?>

@ -1,5 +1,6 @@
<?php
class UtilisateurGateway{
private $con;
public function __construct(){
$this->con=new Connection($dsn,$user,$pass);

@ -1,13 +0,0 @@
body {
background: linear-gradient(to right, #B7FBFB,#38B6FF);
font-family: sans-serif;
}
body::before {
content: '';
position: absolute;
background: rgba(255,255,255, .15);
inset: 0;
transform: rotate(-5deg);
z-index: -1;
}

@ -288,7 +288,7 @@ body::before {
border-color: #38b6ff;
height: 2rem;
width: 5rem;
margin-left: 21rem;
margin-left: 1rem;
margin-bottom: 1rem;
font-size: 90%;
align-items: center;

@ -1,21 +1,40 @@
<header>
<nav class="navbar navbar-expand-lg bg-info">
<div class="header">
<div class="menu-bar">
<nav class="navbar navbar-expand-lg bg-info fixed-top">
<img src="./Vue/Images/LogoForHome.png" width="200">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
<i class="fa fa-bars"></i>
</button>
<div class="collapse navbar-collapse navbar-home" id="navbarNavAltMarkup">
<div class="navbar-nav">
<a class="nav-item nav-link" href="#">Features</a>
<a class="nav-item nav-link" href="#">Pricing</a>
<a class="nav-item nav-link disabled" href="#">Disabled</a>
</div>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<style>
.fa {
color: white;
font-size: 26px;
}
.nav-link:hover {
border-bottom: 1px solid #fff;
}
</style>
<ul class="navbar-nav ml-auto">
<?php
if(isset($_SESSION["idUtilisateur"]) and $_SESSION["idUtilisateur"]){ ?>
<h4><a class="nav-item nav-link text-light" href="index.php?action=showPrivateList&userid=<?= $_SESSION["idUtilisateur"] ?>">Mes listes</a></h4>
<h4><a class="nav-item nav-link text-light" href="index.php?action=logout">Se deconnecter</a></h4>
<?php
} else {
?> <h5><a class="nav-item nav-link text-light" href="index.php?action=redirectionLogin">Se connecter</a></h5>
<h5><a class="nav-item nav-link text-light" href="index.php?action=redirectionInscription">S'inscrire</a></h5>
<?php
}
?>
</ul>
</div>
</nav>
</header>
</div>
</div>

@ -1,38 +1,32 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="shortcut icon" href="./Vue/Images/gif.gif" type="../Images/gif">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Home Page</title>
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https:/stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- JavaScript Bundle with Popper -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>
<body>
<? php require('Vue/html/NavBar.php'); ?>
<?php require($rep.$vues['NavBar']); ?>
<?php
foreach($listes as $liste){
echo "<center>$liste->getNom()</center>";
}
?>
<nav aria-label="Page navigation example">
<ul class="pagination justify-content-center">
<li class="page-item">
<a class="page-link" href="#">Previous</a></li>
<li class="page-item">
<a class="page-link" href="#">1</a>
</li>
<li class="page-item">
<a class="page-link" href="#">2</a
></li>
<li class="page-item">
<a class="page-link" href="#">3</a>
</li>
<a class="page-link" href="#">Previous</a>
</li>
<li class="page-item">
<a class="page-link" href="#">Next</a>
</li>
@ -42,7 +36,39 @@
<!-- Footer -->
<footer class="text-center text-lg-start bg-light ">
<!-- Section: Social media -->
<section class="mb-4">
<!-- Facebook -->
<a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"
><i class="fab fa-facebook-f"></i
></a>
<!-- Twitter -->
<a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"
><i class="fab fa-twitter"></i
></a>
<!-- Google -->
<a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"
><i class="fab fa-google"></i
></a>
<!-- Instagram -->
<a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"
><i class="fab fa-instagram"></i
></a>
<!-- Linkedin -->
<a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"
><i class="fab fa-linkedin-in"></i
></a>
<!-- Github -->
<a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"
><i class="fab fa-github"></i
></a>
</section>
<!-- Section: Social media -->
<!-- Section: Links -->
<section class="">
@ -53,7 +79,9 @@
<div class="col-md-3 col-lg-4 col-xl-3 mx-auto mb-4">
<!-- Content -->
<h6 class="text-uppercase fw-bold mb-4">
<i class="fas fa-gem me-3"></i>Project
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-wallet2" viewBox="0 0 16 16">
<path d="M12.136.326A1.5 1.5 0 0 1 14 1.78V3h.5A1.5 1.5 0 0 1 16 4.5v9a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 13.5v-9a1.5 1.5 0 0 1 1.432-1.499L12.136.326zM5.562 3H13V1.78a.5.5 0 0 0-.621-.484L5.562 3zM1.5 4a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-13z"/>
</svg> Project
</h6>
<p>
2nd year project, consisting of making a To do List in php
@ -70,15 +98,27 @@
Products
</h6>
<p>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-filetype-html" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M14 4.5V11h-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5Zm-9.736 7.35v3.999h-.791v-1.714H1.79v1.714H1V11.85h.791v1.626h1.682V11.85h.79Zm2.251.662v3.337h-.794v-3.337H4.588v-.662h3.064v.662H6.515Zm2.176 3.337v-2.66h.038l.952 2.159h.516l.946-2.16h.038v2.661h.715V11.85h-.8l-1.14 2.596H9.93L8.79 11.85h-.805v3.999h.706Zm4.71-.674h1.696v.674H12.61V11.85h.79v3.325Z"/>
</svg>
<a href="#!" class="text-reset">Html</a>
</p>
<p>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-filetype-css" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5ZM3.397 14.841a1.13 1.13 0 0 0 .401.823c.13.108.289.192.478.252.19.061.411.091.665.091.338 0 .624-.053.859-.158.236-.105.416-.252.539-.44.125-.189.187-.408.187-.656 0-.224-.045-.41-.134-.56a1.001 1.001 0 0 0-.375-.357 2.027 2.027 0 0 0-.566-.21l-.621-.144a.97.97 0 0 1-.404-.176.37.37 0 0 1-.144-.299c0-.156.062-.284.185-.384.125-.101.296-.152.512-.152.143 0 .266.023.37.068a.624.624 0 0 1 .246.181.56.56 0 0 1 .12.258h.75a1.092 1.092 0 0 0-.2-.566 1.21 1.21 0 0 0-.5-.41 1.813 1.813 0 0 0-.78-.152c-.293 0-.551.05-.776.15-.225.099-.4.24-.527.421-.127.182-.19.395-.19.639 0 .201.04.376.122.524.082.149.2.27.352.367.152.095.332.167.539.213l.618.144c.207.049.361.113.463.193a.387.387 0 0 1 .152.326.505.505 0 0 1-.085.29.559.559 0 0 1-.255.193c-.111.047-.249.07-.413.07-.117 0-.223-.013-.32-.04a.838.838 0 0 1-.248-.115.578.578 0 0 1-.255-.384h-.765ZM.806 13.693c0-.248.034-.46.102-.633a.868.868 0 0 1 .302-.399.814.814 0 0 1 .475-.137c.15 0 .283.032.398.097a.7.7 0 0 1 .272.26.85.85 0 0 1 .12.381h.765v-.072a1.33 1.33 0 0 0-.466-.964 1.441 1.441 0 0 0-.489-.272 1.838 1.838 0 0 0-.606-.097c-.356 0-.66.074-.911.223-.25.148-.44.359-.572.632-.13.274-.196.6-.196.979v.498c0 .379.064.704.193.976.131.271.322.48.572.626.25.145.554.217.914.217.293 0 .554-.055.785-.164.23-.11.414-.26.55-.454a1.27 1.27 0 0 0 .226-.674v-.076h-.764a.799.799 0 0 1-.118.363.7.7 0 0 1-.272.25.874.874 0 0 1-.401.087.845.845 0 0 1-.478-.132.833.833 0 0 1-.299-.392 1.699 1.699 0 0 1-.102-.627v-.495ZM6.78 15.29a1.176 1.176 0 0 1-.111-.449h.764a.578.578 0 0 0 .255.384c.07.049.154.087.25.114.095.028.201.041.319.041.164 0 .301-.023.413-.07a.559.559 0 0 0 .255-.193.507.507 0 0 0 .085-.29.387.387 0 0 0-.153-.326c-.101-.08-.256-.144-.463-.193l-.618-.143a1.72 1.72 0 0 1-.539-.214 1 1 0 0 1-.351-.367 1.068 1.068 0 0 1-.123-.524c0-.244.063-.457.19-.639.127-.181.303-.322.527-.422.225-.1.484-.149.777-.149.304 0 .564.05.779.152.217.102.384.239.5.41.12.17.187.359.2.566h-.75a.56.56 0 0 0-.12-.258.624.624 0 0 0-.246-.181.923.923 0 0 0-.37-.068c-.216 0-.387.05-.512.152a.472.472 0 0 0-.184.384c0 .121.047.22.143.3a.97.97 0 0 0 .404.175l.621.143c.217.05.406.12.566.211.16.09.285.21.375.358.09.148.135.335.135.56 0 .247-.063.466-.188.656a1.216 1.216 0 0 1-.539.439c-.234.105-.52.158-.858.158-.254 0-.476-.03-.665-.09a1.404 1.404 0 0 1-.478-.252 1.13 1.13 0 0 1-.29-.375Z"/>
</svg>
<a href="#!" class="text-reset">Css</a>
</p>
<p>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-filetype-php" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5ZM1.6 11.85H0v3.999h.791v-1.342h.803c.287 0 .531-.057.732-.173.203-.117.358-.275.463-.474a1.42 1.42 0 0 0 .161-.677c0-.25-.053-.476-.158-.677a1.176 1.176 0 0 0-.46-.477c-.2-.12-.443-.179-.732-.179Zm.545 1.333a.795.795 0 0 1-.085.38.574.574 0 0 1-.238.241.794.794 0 0 1-.375.082H.788V12.48h.66c.218 0 .389.06.512.181.123.122.185.295.185.522Zm4.48 2.666V11.85h-.79v1.626H4.153V11.85h-.79v3.999h.79v-1.714h1.682v1.714h.79Zm.703-3.999h1.6c.288 0 .533.06.732.179.2.117.354.276.46.477.105.201.158.427.158.677 0 .25-.054.476-.161.677-.106.199-.26.357-.463.474a1.452 1.452 0 0 1-.733.173H8.12v1.342h-.791V11.85Zm2.06 1.714a.795.795 0 0 0 .084-.381c0-.227-.061-.4-.184-.521-.123-.122-.294-.182-.513-.182h-.66v1.406h.66a.794.794 0 0 0 .375-.082.574.574 0 0 0 .237-.24Z"/>
</svg>
<a href="#!" class="text-reset">Php</a>
</p>
<p>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-filetype-js" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2H8v-1h4a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5ZM3.186 15.29a1.176 1.176 0 0 1-.111-.449h.765a.578.578 0 0 0 .255.384c.07.049.153.087.249.114.095.028.202.041.319.041.164 0 .302-.023.413-.07a.559.559 0 0 0 .255-.193.507.507 0 0 0 .085-.29.387.387 0 0 0-.153-.326c-.101-.08-.255-.144-.462-.193l-.619-.143a1.72 1.72 0 0 1-.539-.214 1.001 1.001 0 0 1-.351-.367 1.068 1.068 0 0 1-.123-.524c0-.244.063-.457.19-.639.127-.181.303-.322.528-.422.224-.1.483-.149.776-.149.305 0 .564.05.78.152.216.102.383.239.5.41.12.17.186.359.2.566h-.75a.56.56 0 0 0-.12-.258.624.624 0 0 0-.247-.181.923.923 0 0 0-.369-.068c-.217 0-.388.05-.513.152a.472.472 0 0 0-.184.384c0 .121.048.22.143.3a.97.97 0 0 0 .405.175l.62.143c.218.05.406.12.566.211.16.09.285.21.375.358.09.148.135.335.135.56 0 .247-.063.466-.188.656a1.216 1.216 0 0 1-.539.439c-.234.105-.52.158-.858.158-.254 0-.476-.03-.665-.09a1.404 1.404 0 0 1-.478-.252 1.13 1.13 0 0 1-.29-.375Zm-3.104-.033A1.32 1.32 0 0 1 0 14.791h.765a.576.576 0 0 0 .073.27.499.499 0 0 0 .454.246c.19 0 .33-.055.422-.164.092-.11.138-.265.138-.466v-2.745h.79v2.725c0 .44-.119.774-.357 1.005-.236.23-.564.345-.984.345a1.59 1.59 0 0 1-.569-.094 1.145 1.145 0 0 1-.407-.266 1.14 1.14 0 0 1-.243-.39Z"/>
</svg>
<a href="#!" class="text-reset">JavaScript</a>
</p>
</div>
@ -89,14 +129,21 @@
<!-- Links -->
<h6 class="text-uppercase fw-bold mb-4">Contact</h6>
<p>
<i class="fas fa-envelope me-3"></i>
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" fill="currentColor" class="bi bi-envelope" viewBox="0 0 16 16">
<path d="M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1H2Zm13 2.383-4.708 2.825L15 11.105V5.383Zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741ZM1 11.105l4.708-2.897L1 5.383v5.722Z"/>
</svg>
emre.kartal@etu.uca.fr
</p>
<p>
<i class="fas fa-envelope me-3"></i>
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" fill="currentColor" class="bi bi-envelope" viewBox="0 0 16 16">
<path d="M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1H2Zm13 2.383-4.708 2.825L15 11.105V5.383Zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741ZM1 11.105l4.708-2.897L1 5.383v5.722Z"/>
</svg>
rayhan.hassou@etu.uca.fr
</p>
<p><i class="fas fa-phone me-3"></i> Groupe 4</p>
<p><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pin" viewBox="0 0 16 16">
<path d="M4.146.146A.5.5 0 0 1 4.5 0h7a.5.5 0 0 1 .5.5c0 .68-.342 1.174-.646 1.479-.126.125-.25.224-.354.298v4.431l.078.048c.203.127.476.314.751.555C12.36 7.775 13 8.527 13 9.5a.5.5 0 0 1-.5.5h-4v4.5c0 .276-.224 1.5-.5 1.5s-.5-1.224-.5-1.5V10h-4a.5.5 0 0 1-.5-.5c0-.973.64-1.725 1.17-2.189A5.921 5.921 0 0 1 5 6.708V2.277a2.77 2.77 0 0 1-.354-.298C4.342 1.674 4 1.179 4 .5a.5.5 0 0 1 .146-.354zm1.58 1.408-.002-.001.002.001zm-.002-.001.002.001A.5.5 0 0 1 6 2v5a.5.5 0 0 1-.276.447h-.002l-.012.007-.054.03a4.922 4.922 0 0 0-.827.58c-.318.278-.585.596-.725.936h7.792c-.14-.34-.407-.658-.725-.936a4.915 4.915 0 0 0-.881-.61l-.012-.006h-.002A.5.5 0 0 1 10 7V2a.5.5 0 0 1 .295-.458 1.775 1.775 0 0 0 .351-.271c.08-.08.155-.17.214-.271H5.14c.06.1.133.191.214.271a1.78 1.78 0 0 0 .37.282z"/>
</svg> Groupe 4</p>
</div>
<!-- Grid column -->
</div>
@ -113,4 +160,4 @@
<!-- Copyright -->
</footer>
</html>
</html>

@ -3,56 +3,58 @@
<html>
<head>
<title>Page d'inscription</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="shortcut icon" href="./Vue/Images/gif.gif" type="../Images/gif">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- CSS only -->
<link rel="stylesheet" href="./Vue/css/inscription.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<!-- JavaScript Bundle with Popper -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</head>
<link rel="stylesheet" href="./Vue/css/style.css">
<link rel="stylesheet" href="./Vue/css/reset.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
</head>
<body>
<div class="main-logo">
<img src="./Vue/Images/Logo.png" alt="logo">
<h1>Inscription</h1>
</div>
<form>
<!-- 2 column grid layout with text inputs for the first and last names -->
<div class="row mb-4">
<div class="col">
<div class="form-outline">
<input type="text" id="form3Example1" class="form-control" />
<label class="form-label" for="form3Example1">First name</label>
</div>
<div class="main">
<div class="model">
<div class="main-logo">
<img src="./Vue/Images/Logo.png" alt="logo">
</div>
<div class="col">
<div class="form-outline">
<input type="text" id="form3Example2" class="form-control" />
<label class="form-label" for="form3Example2">Last name</label>
</div>
<div class="login-card-header">
<h1>Inscrivez-vous</h1>
</div>
</div>
<!-- Email input -->
<div class="form-outline mb-4">
<input type="email" id="form3Example3" class="form-control" />
<label class="form-label" for="form3Example3">Email address</label>
</div>
<!-- Password input -->
<div class="form-outline mb-4">
<input type="password" id="form3Example4" class="form-control" />
<label class="form-label" for="form3Example4">Password</label>
</div>
<form class="login-card-form">
<div class="row">
<div class="col-md-6 mb-4">
<div class="form-outline">
<input type="text" name="nom-Form" placeholder="Nom" required autofocus>
</div>
</div>
<div class="col-md-6 mb-4">
<div class="form-outline">
<input type="text" name="prenom-Form" placeholder="Prenom" required autofocus>
</div>
</div>
</div>
<div class="form-item">
<input type="text" name="pseudo-Form" placeholder="Pseudo" required autofocus>
</div>
<div class="form-item">
<input type="text" name="mail-Form" placeholder="Mail" required autofocus>
</div>
<div class="form-item">
<input type="password" name="password-Form" placeholder="Password" required >
</div>
<button type="submit" class="btn btn-primary">S'inscrire</button>
<!-- action !!!!!!!!!! -->
<input type="hidden" name="action" value="validationFormulaire">
<p class="text-center text-muted mt-5 mb-0">Déjà un compte?
<a href="index.php?action=redirectionLogin" class="fw-bold text-body"><u>Connectez-vous</u></a></p>
</form>
</div>
<!-- Submit button -->
<button type="submit" class="btn btn-primary btn-block mb-4">Sign up</button>
</form>
</div>
</body>

@ -1,4 +1,3 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
@ -11,11 +10,10 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@48,300,0,0" />
</head>
<body>
<div class="main">
<form method="post" >
<Button type="submit" class="button">Sortir</Button>
<input type="hidden" name="action" value="redirectionHome">
<input type="hidden" name="action" value="redirectionListePublic">
</form>
<div class="model">
<div class="main-logo">
@ -51,11 +49,8 @@
<input type="hidden" name="action" value="seConnecter">
</form>
<div class="login-card-footer">
Pas de compte ? <!--<a href="../../Controller/Controleur.php?action='redirectionInscription'">Creer un compte</a>-->
<form method="post">
<Button type="submit" class="mon-button">Creer un compte</Button>
<input type="hidden" name="action" value="redirectionInscription">
</form>
Pas de compte ?
<a href="index.php?action=redirectionInscription">Creer un compte</a>
</div>
</div>
<div class="social">

@ -6,7 +6,7 @@ class Validation {
static function val_form_user(string &$nom, string &$prenom, string &$pseudo, string &$mdp, string &$email, &$dVueEreur) {
int $i=0;
$i=0;
//Vérification Nom
if (!isset($nom)||$nom=="") {
$dVueEreur[] = "pas de nom";

@ -5,15 +5,15 @@ $rep=__DIR__.'/../';
//BD
$user= 'rahassou';
$user= 'emkartal1';
$pass='achanger';
$dsn='mysql:host=londres.uca.local;dbname=dbrahassou';
$dsn='mysql:host=londres.uca.local;dbname=dbemkartal1';
//Vues
$vues['erreur']='vues/erreur.php';
$vues['inscription']='Vue/html/inscription.php';
$vues['ListPublic']='Vue/html/PageListePublic.php';
$vues['listPublic']='Vue/html/PageListePublic.php';
$vues['login']='Vue/html/login.php';
$vues['listeVue']='Vue/html/ListeVue.php';
$vues['NavBar']='Vue/html/NavBar.php';
?>

Loading…
Cancel
Save