Compare commits
27 Commits
rayhan_aff
...
master
Author | SHA1 | Date |
---|---|---|
|
ef76d0c267 | 2 years ago |
|
643da050ce | 2 years ago |
|
56b2dbc22b | 2 years ago |
|
f721a028c8 | 2 years ago |
|
e2bd0457ab | 2 years ago |
|
09bfc508d4 | 2 years ago |
|
4ddfc272e5 | 2 years ago |
|
b7cf2744b8 | 2 years ago |
|
786b0addfb | 2 years ago |
|
a60f4d6d84 | 2 years ago |
|
da609c6f81 | 2 years ago |
|
82c7a9fc22 | 2 years ago |
|
10af9c567b | 2 years ago |
|
0dbc9d274e | 2 years ago |
|
9419d45429 | 2 years ago |
|
cd5b95f364 | 2 years ago |
|
bef27714ca | 2 years ago |
|
2f4af55635 | 2 years ago |
|
7bc62f2ba7 | 2 years ago |
|
9b611a7cc5 | 2 years ago |
|
78b18d3825 | 2 years ago |
|
89d9495929 | 2 years ago |
|
1bc41c7880 | 2 years ago |
|
6fddf5a462 | 2 years ago |
|
1996c6f195 | 2 years ago |
|
eb24736d32 | 2 years ago |
|
c7ad29522d | 2 years ago |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 118 KiB |
@ -1,65 +0,0 @@
|
||||
<?php
|
||||
|
||||
class Admin
|
||||
{
|
||||
private $id;
|
||||
private $nom;
|
||||
private $prenom;
|
||||
private $pseudo;
|
||||
private $email;
|
||||
|
||||
public function __construct($id, $nom, $prenom, $pseudo, $email, $motDePasse, $isAdmin){
|
||||
$this->id = $id;
|
||||
$this->nom = $nom;
|
||||
$this->prenom = $prenom;
|
||||
$this->pseudo = $pseudo;
|
||||
$this->email = $email;
|
||||
}
|
||||
|
||||
//Nom
|
||||
public function getId(){
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function setId($id){
|
||||
$this->nom = $id;
|
||||
}
|
||||
|
||||
//Nom
|
||||
public function getNom(){
|
||||
return $this->nom;
|
||||
}
|
||||
|
||||
public function setNom($nom){
|
||||
$this->nom = $nom;
|
||||
}
|
||||
|
||||
//Prenom
|
||||
public function getPrenom(){
|
||||
return $this->prenom;
|
||||
}
|
||||
|
||||
public function setPrenom($prenom){
|
||||
$this->prenom = $prenom;
|
||||
}
|
||||
|
||||
//Pseudo
|
||||
public function getPseudo(){
|
||||
return $this->pseudo;
|
||||
}
|
||||
|
||||
public function setPseudo($pseudo){
|
||||
$this->pseudo = $pseudo;
|
||||
}
|
||||
|
||||
//mail
|
||||
public function getMail(){
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
public function setEmail($email){
|
||||
$this->email = $email;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 6.1 KiB |
@ -0,0 +1,3 @@
|
||||
input[type="checkbox"]:checked + label {
|
||||
text-decoration: line-through;
|
||||
}
|
@ -0,0 +1,356 @@
|
||||
<!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">
|
||||
<title>Home Page</title>
|
||||
<!-- CSS only -->
|
||||
<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">
|
||||
<link rel="stylesheet" href="./vue/css/task.css">
|
||||
<!-- JavaScript Bundle with Popper -->
|
||||
<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 style="-webkit-user-select: none; /* Safari */
|
||||
-ms-user-select: none; /* IE 10 and IE 11 */
|
||||
user-select: none;">
|
||||
<?php require($rep.$vues['NavBar']); ?>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<button class="btn btn-default" data-toggle="modal" data-target="#formulaireAjoutListe">
|
||||
Ajouter une liste
|
||||
<img src="./vue/Images/plus.png" width="20" />
|
||||
</button>
|
||||
|
||||
<div class="container">
|
||||
<div class="modal fade" id="formulaireAjoutListe">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">Ajout d'une liste</h4>
|
||||
<button type="button" class="close" data-dismiss="modal">
|
||||
<span>×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body row">
|
||||
<form class="col" method="POST">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
if(isset($dVueErreur['nom'])){?>
|
||||
<center><p class="text-danger"> <?php echo $dVueErreur['nom']?></p></center><?php
|
||||
}
|
||||
?>
|
||||
<label for="nom" class="form-control-label">Nom</label>
|
||||
<input type="text" class="form-control" name ="nom-ajout-liste" id="nom" placeholder="Entrez un nom">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
if(isset($dVueErreur['description'])){?>
|
||||
<center><p class="text-danger"> <?php echo $dVueErreur['description']?></p></center><?php
|
||||
}
|
||||
?>
|
||||
<label for="description" class="form-control-label">Description</label>
|
||||
<input type="text" class="form-control" name="description-ajout-liste" id="description" placeholder="Entrez une description">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary pull-right">Ajouter</button>
|
||||
<input type="hidden" name="action" value="AjouterListePrive">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
foreach($listesPrive as $liste){
|
||||
if($liste->getIdUtilisateur() == $_SESSION['id']){
|
||||
|
||||
$done = 0;
|
||||
$total = 0;
|
||||
?>
|
||||
|
||||
<!-- Modifier couleur -->
|
||||
<script>
|
||||
|
||||
$(document).ready(function(){
|
||||
$("#selector").change(function(){
|
||||
$("body").toggleClass("bg-secondary");
|
||||
$("nav").toggleClass("navbar-dark bg-dark");
|
||||
$(".custom-control-label").toggleClass("text-white");
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Affichage des listesPrive -->
|
||||
|
||||
<div class="container py-2 h-100">
|
||||
<div class="row d-flex justify-content-center align-items-center h-100">
|
||||
<div class="col col-lg-8 col-xl-6">
|
||||
<div class="card rounded-3">
|
||||
<div class="card-body p-4">
|
||||
<div>
|
||||
<p class="mb-2">
|
||||
<span class="h2 me-2 text-info"><?= $liste->getNom()?>
|
||||
<a href="index.php?action=SupprimerListePrive&idListe=<?= $liste->getId() ?>">
|
||||
<button class="btn btn-default">
|
||||
<img src="./vue/Images/trash.png" width="20" />
|
||||
</button>
|
||||
</a>
|
||||
<button data-toggle="modal" data-target="#formulaireModif<?= $liste->getId()?>" class="btn btn-default">
|
||||
<img src="./vue/Images/edit.png" width="20" />
|
||||
</button>
|
||||
|
||||
<button data-toggle="modal" data-target="#formulaireAjout<?= $liste->getId()?>" class="btn btn-default">
|
||||
<img src="./vue/Images/plus.png" width="20" />
|
||||
</button>
|
||||
</span>
|
||||
</p>
|
||||
<p><span class="h5 me-2"><?= $liste->getDescription()?></span>
|
||||
<p class="text-muted pb-2"><?= $liste->getDateCreation()?> by <strong><?= $_SESSION['pseudo'] ?></strong> </p>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Fenetre modal -->
|
||||
|
||||
<div class="container">
|
||||
<div class="modal fade" id="formulaireAjout<?= $liste->getId()?>">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">Ajout d'une tache</h4>
|
||||
<button type="button" class="close" data-dismiss="modal">
|
||||
<span>×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body row">
|
||||
<form class="col" method="POST">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
if(isset($dVueErreur['nom'])){?>
|
||||
<center><p class="text-danger"> <?php echo $dVueErreur['nom']?></p></center><?php
|
||||
}
|
||||
?>
|
||||
<label for="nom" class="form-control-label">Nom</label>
|
||||
<input type="text" class="form-control" name ="nom-ajout" id="nom" placeholder="Entrez un nom">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
if(isset($dVueErreur['description'])){?>
|
||||
<center><p class="text-danger"> <?php echo $dVueErreur['description']?></p></center><?php
|
||||
}
|
||||
?>
|
||||
<label for="description" class="form-control-label">Description</label>
|
||||
<input type="text" class="form-control" name="description-ajout" id="description" placeholder="Entrez une description">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary pull-right">Ajouter</button>
|
||||
<input type="hidden" name="action" value="AjouterTachePrive">
|
||||
<input type="hidden" name="idListe" value="<?= $liste->getId() ?>">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="container">
|
||||
<div class="modal fade" id="formulaireModif<?= $liste->getId()?>">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">Modification</h4>
|
||||
<button type="button" class="close" data-dismiss="modal">
|
||||
<span>×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body row">
|
||||
<form class="col" method="POST">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
if(isset($dVueErreur['nom'])){?>
|
||||
<center><p class="text-danger"> <?php echo $dVueErreur['nom']?></p></center><?php
|
||||
}
|
||||
?>
|
||||
<label for="nom" class="form-control-label">Nouveau nom</label>
|
||||
<input type="text" class="form-control" name ="nom-modif-liste" id="nom" placeholder="<?= $liste->getNom() ?>">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
if(isset($dVueErreur['description'])){?>
|
||||
<center><p class="text-danger"> <?php echo $dVueErreur['description']?></p></center><?php
|
||||
}
|
||||
?>
|
||||
<label for="description" class="form-control-label">Nouvelle description</label>
|
||||
<input type="text" class="form-control" name="description-modif-liste" id="description" placeholder="<?= $liste->getDescription() ?>">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary pull-right">Modifier</button>
|
||||
<input type="hidden" name="action" value="ModifierListePrive">
|
||||
<input type="hidden" name="idListe" value="<?= $liste->getId() ?>">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Tache -->
|
||||
|
||||
<ul class="list-group rounded-0">
|
||||
<?php
|
||||
foreach($taches as $tache){
|
||||
|
||||
if($tache->getIdListe() == $liste->getId()){
|
||||
if($tache->getEstValide() == 1){
|
||||
$done = $done + 1;
|
||||
}
|
||||
$total = $total + 1;
|
||||
?>
|
||||
<li class="list-group-item border-0 d-flex align-items-center ps-0">
|
||||
<form name="action" action="checkPrive" method="POST">
|
||||
<input class="form-check-input me-3" id="task-<?= $tache->getId() ?>" type="checkbox" onChange="submit();"
|
||||
<?php if($tache->getEstValide() == 1) echo "checked" ?>>
|
||||
<label for="task-<?= $tache->getId() ?>"> <?= $tache->getNom() ?> : <?= $tache->getDescription() ?></label>
|
||||
|
||||
<input type="hidden" name="idTache" value="<?= $tache->getId() ?>" >
|
||||
</form>
|
||||
<a href="index.php?action=SupprimerTachePrive&idTache=<?= $tache->getId() ?>">
|
||||
<button class="btn btn-default">
|
||||
<img src="./vue/Images/trash.png" width="20" />
|
||||
</button>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="progress">
|
||||
<?php
|
||||
if($total != 0){
|
||||
$pourcentage = $done * 100 / $total;
|
||||
} else{
|
||||
$pourcentage = 0;
|
||||
}
|
||||
?>
|
||||
<div class="progress-bar progress-bar-striped" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo"$pourcentage" ?>%;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<nav aria-label="Page navigation example">
|
||||
<center>
|
||||
<p>Page n°<?php echo $_SESSION['pageUser'] ?></p>
|
||||
</center>
|
||||
<ul class="pagination justify-content-center">
|
||||
<li class="page-item">
|
||||
<a class="page-link" href="previousPagePrive">Previous</a>
|
||||
</li>
|
||||
<li class="page-item">
|
||||
<a class="page-link" href="nextPagePrive">Next</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</body>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer class="text-center text-lg-start bg-light sticky-bottom">
|
||||
<br>
|
||||
<!-- Section: Links -->
|
||||
<section class="">
|
||||
<div class="container text-center text-md-start mt-5">
|
||||
<!-- Grid row -->
|
||||
<div class="row mt-3">
|
||||
<!-- Grid column -->
|
||||
<div class="col-md-3 col-lg-4 col-xl-3 mx-auto mb-4">
|
||||
<!-- Content -->
|
||||
<h6 class="text-uppercase fw-bold mb-4">
|
||||
<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
|
||||
, which contains visitors or users, who can add,
|
||||
delete, see tasks...
|
||||
</p>
|
||||
</div>
|
||||
<!-- Grid column -->
|
||||
|
||||
<!-- Grid column -->
|
||||
<div class="col-md-2 col-lg-2 col-xl-2 mx-auto mb-4">
|
||||
<!-- Links -->
|
||||
<h6 class="text-uppercase fw-bold mb-4">
|
||||
Products
|
||||
</h6>
|
||||
<p>
|
||||
<img src="https://img.shields.io/badge/HTML-000?style=for-the-badge&logo=html5&logoColor=orange&color=f8f9fa">
|
||||
</img>
|
||||
</p>
|
||||
<p>
|
||||
<img src="https://img.shields.io/badge/CSS-000?style=for-the-badge&logo=Css3&logoColor=blue&color=f8f9fa">
|
||||
</img>
|
||||
</p>
|
||||
<p>
|
||||
<img src="https://img.shields.io/badge/PHP-000?style=for-the-badge&logo=php&logoColor=purple&color=f8f9fa">
|
||||
</img>
|
||||
</p>
|
||||
<p>
|
||||
<img src="https://img.shields.io/badge/JavaScript-000?style=for-the-badge&logo=javascript&logoColor=yellow&color=f8f9fa">
|
||||
</img>
|
||||
</p>
|
||||
</div>
|
||||
<!-- Grid column -->
|
||||
|
||||
<!-- Grid column -->
|
||||
<div class="col-md-4 col-lg-3 col-xl-3 mx-auto mb-md-0 mb-4">
|
||||
<!-- Links -->
|
||||
<h6 class="text-uppercase fw-bold mb-4">Contact</h6>
|
||||
<p>
|
||||
<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>
|
||||
<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><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>
|
||||
<!-- Grid row -->
|
||||
</div>
|
||||
</section>
|
||||
<!-- Section: Links -->
|
||||
|
||||
<!-- Copyright -->
|
||||
<div class="text-center p-4" style="background-color: rgba(0, 0, 0, 0.05);">
|
||||
© 2021 Copyright:
|
||||
<a class="text-reset fw-bold" href="#">ToDoList.com</a>
|
||||
</div>
|
||||
<!-- Copyright -->
|
||||
</footer>
|
||||
|
||||
|
||||
|
||||
</html>
|
@ -1,18 +1,30 @@
|
||||
<html>
|
||||
<head><title>Erreur</title>
|
||||
</head>
|
||||
<!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">
|
||||
<title>Erreur Page</title>
|
||||
<!-- CSS only -->
|
||||
<link rel="stylesheet" href="./vue/css/style.css">
|
||||
<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"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>ERREUR !!!!!</h1>
|
||||
<?php
|
||||
if (isset($dVueEreur)) {
|
||||
foreach ($dVueEreur as $value){
|
||||
echo $value;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</body> </html>
|
||||
<body>
|
||||
<div class="model">
|
||||
<h1>Un problème est survenue !</h1>
|
||||
<?php
|
||||
if (isset($dVueErreur)) {
|
||||
foreach ($dVueErreur as $value){
|
||||
echo $value;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<a href="VueListePublic">Revenir</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,68 +1,87 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Page d'inscription</title>
|
||||
<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/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">
|
||||
<div class="model">
|
||||
<div class="main-logo">
|
||||
<img src="./vue/Images/Logo.png" alt="logo">
|
||||
<head>
|
||||
<title>Page d'inscription</title>
|
||||
<link rel="shortcut icon" href="./vue/Images/gif.gif" type="../Images/gif">
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<!-- CSS only -->
|
||||
<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">
|
||||
<div class="model">
|
||||
<div class="main-logo">
|
||||
<img src="./vue/Images/Logo.png" alt="logo">
|
||||
</div>
|
||||
<div class="login-card-header">
|
||||
<h1>Inscrivez-vous</h1>
|
||||
</div>
|
||||
<?php
|
||||
if(isset($ErreurLog)){?>
|
||||
<center><p class="ErreurText"> <?php echo $ErreurLog?></p></center><?php
|
||||
}
|
||||
?>
|
||||
<form method="POST" class="login-card-form">
|
||||
<div class="row">
|
||||
<div class="col-md-6 mb-4">
|
||||
<?php
|
||||
if(isset($dVueErreur['nom'])){?>
|
||||
<center><p class="ErreurText"> <?php echo $dVueErreur['nom']?></p></center><?php
|
||||
}
|
||||
?>
|
||||
<div>
|
||||
<input type="text" name="nom-Form" placeholder="Nom" required autofocus>
|
||||
</div>
|
||||
<div class="login-card-header">
|
||||
<h1>Inscrivez-vous</h1>
|
||||
</div>
|
||||
<div class="col-md-6 mb-4">
|
||||
<?php
|
||||
if(isset($dVueErreur['prenom'])){?>
|
||||
<center><p class="ErreurText"> <?php echo $dVueErreur['prenom']?></p></center><?php
|
||||
}
|
||||
?>
|
||||
<div>
|
||||
<input type="text" name="prenom-Form" placeholder="Prenom" required autofocus>
|
||||
</div>
|
||||
</div>
|
||||
<form method="POST" 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">
|
||||
<?php
|
||||
if (isset($dVueEreur)) {
|
||||
foreach ($dVueEreur as $value){
|
||||
echo $value;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<p class="text-center text-muted mt-5 mb-0">Déjà un compte?
|
||||
<a href="login" class="fw-bold text-body"><u>Connectez-vous</u></a></p>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<div class="form-item">
|
||||
<?php
|
||||
if(isset($dVueErreur['pseudo'])){?>
|
||||
<center><p class="ErreurText"> <?php echo $dVueErreur['pseudo']?></p></center><?php
|
||||
}
|
||||
?>
|
||||
<input type="text" name="pseudo-Form" placeholder="Pseudo" required autofocus>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-item">
|
||||
<?php
|
||||
if(isset($dVueErreur['mail'])){?>
|
||||
<center><p class="ErreurText"> <?php echo $dVueErreur['mail']?></p></center><?php
|
||||
}
|
||||
?>
|
||||
<input type="text" name="mail" placeholder="Mail" required autofocus>
|
||||
</div>
|
||||
<div class="form-item">
|
||||
<?php
|
||||
if(isset($dVueErreur['password'])){?>
|
||||
<center><p class="ErreurText"> <?php echo $dVueErreur['password']?></p></center><?php
|
||||
}
|
||||
?>
|
||||
<input type="password" name="password" 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="login" class="fw-bold text-body"><u>Connectez-vous</u></a></p>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,144 @@
|
||||
<!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">
|
||||
<title>Home Page</title>
|
||||
<!-- CSS only -->
|
||||
<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">
|
||||
<link rel="stylesheet" href="./vue/css/task.css">
|
||||
<!-- JavaScript Bundle with Popper -->
|
||||
<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 style="-webkit-user-select: none; /* Safari */
|
||||
-ms-user-select: none; /* IE 10 and IE 11 */
|
||||
user-select: none;">
|
||||
<?php require($rep.$vues['NavBar']); ?>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<section class="vh-100" style="background-color: white;">
|
||||
<div class="container py-5 h-100">
|
||||
<div class="row d-flex justify-content-center align-items-center h-100">
|
||||
<div class="col col-xl-10">
|
||||
|
||||
<div class="card" style="border-radius: 15px;">
|
||||
<div class="card-body p-5">
|
||||
|
||||
<ul class="list-group mb-0">
|
||||
<?php
|
||||
foreach($users as $user){
|
||||
?>
|
||||
<li
|
||||
class="list-group-item d-flex justify-content-between align-items-center border-start-0 border-top-0 border-end-0 border-bottom rounded-0 mb-2">
|
||||
<div class="d-flex align-items-center">
|
||||
<?= $user->getNom() ?> : <?= $user->getPrenom() ?>
|
||||
</div>
|
||||
<a href="index.php?action=SupprimerUtilisateur&idUser=<?= $user->getId() ?>">
|
||||
<button class="btn btn-default">
|
||||
<img src="./vue/Images/trash.png" width="20" />
|
||||
</button>
|
||||
</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</body>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer class="text-center text-lg-start bg-light ">
|
||||
<br>
|
||||
<!-- Section: Links -->
|
||||
<section class="">
|
||||
<div class="container text-center text-md-start mt-5">
|
||||
<!-- Grid row -->
|
||||
<div class="row mt-3">
|
||||
<!-- Grid column -->
|
||||
<div class="col-md-3 col-lg-4 col-xl-3 mx-auto mb-4">
|
||||
<!-- Content -->
|
||||
<h6 class="text-uppercase fw-bold mb-4">
|
||||
<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
|
||||
, which contains visitors or users, who can add,
|
||||
delete, see tasks...
|
||||
</p>
|
||||
</div>
|
||||
<!-- Grid column -->
|
||||
|
||||
<!-- Grid column -->
|
||||
<div class="col-md-2 col-lg-2 col-xl-2 mx-auto mb-4">
|
||||
<!-- Links -->
|
||||
<h6 class="text-uppercase fw-bold mb-4">
|
||||
Products
|
||||
</h6>
|
||||
<p>
|
||||
<img src="https://img.shields.io/badge/HTML-000?style=for-the-badge&logo=html5&logoColor=orange&color=f8f9fa">
|
||||
</img>
|
||||
</p>
|
||||
<p>
|
||||
<img src="https://img.shields.io/badge/CSS-000?style=for-the-badge&logo=Css3&logoColor=blue&color=f8f9fa">
|
||||
</img>
|
||||
</p>
|
||||
<p>
|
||||
<img src="https://img.shields.io/badge/PHP-000?style=for-the-badge&logo=php&logoColor=purple&color=f8f9fa">
|
||||
</img>
|
||||
</p>
|
||||
<p>
|
||||
<img src="https://img.shields.io/badge/JavaScript-000?style=for-the-badge&logo=javascript&logoColor=yellow&color=f8f9fa">
|
||||
</img>
|
||||
</p>
|
||||
</div>
|
||||
<!-- Grid column -->
|
||||
|
||||
<!-- Grid column -->
|
||||
<div class="col-md-4 col-lg-3 col-xl-3 mx-auto mb-md-0 mb-4">
|
||||
<!-- Links -->
|
||||
<h6 class="text-uppercase fw-bold mb-4">Contact</h6>
|
||||
<p>
|
||||
<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>
|
||||
<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><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>
|
||||
<!-- Grid row -->
|
||||
</div>
|
||||
</section>
|
||||
<!-- Section: Links -->
|
||||
|
||||
<!-- Copyright -->
|
||||
<div class="text-center p-4" style="background-color: rgba(0, 0, 0, 0.05);">
|
||||
© 2021 Copyright:
|
||||
<a class="text-reset fw-bold" href="#">ToDoList.com</a>
|
||||
</div>
|
||||
<!-- Copyright -->
|
||||
</footer>
|
||||
|
||||
</html>
|
@ -0,0 +1,125 @@
|
||||
<!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">
|
||||
<title>Profil Page</title>
|
||||
<!-- CSS only -->
|
||||
<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"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<section style="background-color: white;">
|
||||
<div class="container py-5">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<nav aria-label="breadcrumb" class="bg-info rounded-3 p-3 mb-4">
|
||||
<ol class="breadcrumb mb-0">
|
||||
<li class="breadcrumb-item"><a href="VueListePublic">Home</a></li>
|
||||
<li class="breadcrumb-item"><a href="#">User</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">User Profile</li>
|
||||
</ol>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-15">
|
||||
<div class="card mb-1">
|
||||
<div class="card-body">
|
||||
<div class="col-sm-15 text-center">
|
||||
<p class="mb-0">Nom Prénom</p>
|
||||
</div>
|
||||
<div class="col-sm-14 text-center">
|
||||
<p class="text-muted mb-0"><?php echo $user->getNom().' '.$user->getPrenom()?></p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="col-sm-15 text-center">
|
||||
<p class="mb-0">Pseudo</p>
|
||||
</div>
|
||||
<div class="col-sm-14 text-center">
|
||||
<p class="text-muted mb-0"><?php echo $user->getPseudo()?></p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="col-sm-15 text-center">
|
||||
<p class="mb-0">Email</p>
|
||||
</div>
|
||||
<div class="col-sm-14 text-center">
|
||||
<p class="text-muted mb-0"><?php echo $user->getMail()?></p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="col-sm-15 text-center">
|
||||
<p class="mb-0">Nombre de liste</p>
|
||||
</div>
|
||||
<div class="col-sm-14 text-center">
|
||||
<p class="text-muted mb-0"><?php echo $nombreListe ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<br>
|
||||
<a type="button" class="btn btn-outline-info waves-effect" href="#" data-toggle="modal" data-target="#modalModifier">
|
||||
Changer mot de passe
|
||||
</a>
|
||||
<a type="button" class="btn btn-outline-danger waves-effect" href="#" data-toggle="modal" data-target="#modalSupp">
|
||||
Supprimer le compte
|
||||
</a>
|
||||
|
||||
<!-- Modal Modifier -->
|
||||
<div class="modal fade" id="modalModifier" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">Modification du mot de passe</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form class="col" method="POST">
|
||||
<div class="form-group">
|
||||
<input type="password" class="form-control" name ="passwordCurrent" placeholder="Mot de passe actuel" required autofocus>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="password" class="form-control" name="newPassword" id="description" placeholder="Nouveau mot de passe" required autofocus>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="password" class="form-control" name="confirmNewPassword" id="description" placeholder="Confirmer le mot de passe" required autofocus>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary pull-right">Terminer</button>
|
||||
<input type="hidden" name="action" value="modifMdp">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Modal Supprimer -->
|
||||
<div class="modal fade" id="modalSupp" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">Suppression du compte</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
Êtes-vous sûr de vouloir supprimer votre compte ?
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a href="supprimerCompte" class="btn btn-danger">Supprimer quand même</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|