forked from IUT-Blagnac/sae3-01-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
1,855 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<!DOCTYPE html> | ||
<html lang="fr"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.9.1/font/bootstrap-icons.min.css"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> | ||
<link rel="website icon" type="png" href="./images/logo/logo.png"> | ||
<link rel="stylesheet" href="./includes/style.css"> | ||
<title>Connexion | SweetShops</title> | ||
</head> | ||
|
||
<body style="background-color: #ffe4e1;"> | ||
<?php include './includes/header.php' ?> | ||
|
||
<div class="container-fluid py-5 my-5"> | ||
<div class="row py-5 mx-auto justify-content-evenly"> | ||
<div class="col-md-5 col-sm-12 col-xs-12 my-5"> | ||
<div class="card text-center"> | ||
<div class="card-header fw-bold text-danger"> | ||
CONNEXION | ||
</div> | ||
<div class="card-body"> | ||
<form method="post" action="./includes/TraitConnexion.php"> | ||
<p>* champs obligatoires</p> | ||
|
||
<!-- Affichage des messages d'erreur --> | ||
<?php if (isset($_GET['msgErreur'])): ?> | ||
<div class="alert alert-danger"> | ||
<?php echo htmlspecialchars($_GET['msgErreur']); ?> | ||
</div> | ||
<?php endif; ?> | ||
|
||
<div class="mb-3"> | ||
<label class="sub_title" for="login">E-mail *</label> | ||
<input placeholder="Entrez votre e-mail" name="user_login" id="login" class="form_style" type="email" required> | ||
</div> | ||
<div class="mb-3"> | ||
<label class="sub_title" for="password">Mot de passe *</label> | ||
<input placeholder="Entrez votre mot de passe" name="user_password" id="password" class="form_style" type="password" required> | ||
</div> | ||
<div class="mb-3"> | ||
<label class="sub_title" for="password">Se souvenir de moi</label> | ||
<input type="checkbox" name="seSouvenirMoi" id="rememberMe"> | ||
</div> | ||
<div> | ||
<input type="submit" name="submit" class="btn btn-primary" value="VALIDER"> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="card-footer text-muted"> | ||
Vous souhaitez créer un compte ? <a class="link" href="Inscription.php">Inscrivez-vous ici !</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<?php include './includes/footer.php' ?> | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.9.1/font/bootstrap-icons.min.css"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> | ||
<link rel=" website icon" type="png" href="./images/logo/logo.png"> | ||
<link rel="stylesheet" href="./includes/style.css"> | ||
<title>FAQ | SweetShops</title> | ||
</head> | ||
|
||
<body style="background-color: #ffe4e1;"> | ||
<?php include './includes/header.php' ?> | ||
<div class="question d-flex-fluid my-5"> | ||
<center> | ||
<h2 class="fw-bold text-danger"> | ||
Vous avez des questions ? | ||
</h2> | ||
<h2 class="fw-bold text-danger"> | ||
On a toutes les réponses à vos questions ! | ||
</h2> | ||
</center> | ||
<br> | ||
<center> | ||
<figure> | ||
<blockquote class="blockquote mx-3 my-3 px-3"> | ||
<p> | ||
Vous trouverez dans cette section toutes les questions fréquentes que nous recevons de nos clients. Si cela vous fait plaisir, vous pouvez aussi consulter nos réseaux sociaux.<br>Si même avec tout cela vous n'avez pas eu de réponses à vos questions, vous pouvez nous contacter sur notre page de contact. | ||
</p> | ||
</blockquote> | ||
<figcaption class="blockquote-footer text-danger"> | ||
L'équipe SweetShops | ||
</figcaption> | ||
</figure> | ||
</center> | ||
<center> | ||
<img src="./images/faq_ss.jpg" alt="img-faq" style="width: 20%;"> | ||
</center> | ||
<hr> | ||
|
||
<div class="container-fluid py-5 my-5"> | ||
<div class="row py-5 mx-auto justify-content-evenly"> | ||
<div class="col-md-5 col-sm-12 col-xs-12 my-5"> | ||
<div class="card text-center"> | ||
<div class="card-header"> | ||
Featured | ||
</div> | ||
<div class="card-body"> | ||
<h5 class="card-title">Special title treatment</h5> | ||
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p> | ||
<a href="#" class="btn btn-primary">Go somewhere</a> | ||
</div> | ||
<div class="card-footer text-muted"> | ||
2 days ago | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-5 col-sm-12 col-xs-12 my-5"> | ||
<div class="card text-center"> | ||
<div class="card-header"> | ||
Featured | ||
</div> | ||
<div class="card-body"> | ||
<h5 class="card-title">Special title treatment</h5> | ||
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p> | ||
<a href="#" class="btn btn-primary">Go somewhere</a> | ||
</div> | ||
<div class="card-footer text-muted"> | ||
2 days ago | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-5 col-sm-12 col-xs-12 my-5"> | ||
<div class="card text-center"> | ||
<div class="card-header"> | ||
Featured | ||
</div> | ||
<div class="card-body"> | ||
<h5 class="card-title">Special title treatment</h5> | ||
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p> | ||
<a href="#" class="btn btn-primary">Go somewhere</a> | ||
</div> | ||
<div class="card-footer text-muted"> | ||
2 days ago | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-5 col-sm-12 col-xs-12 my-5"> | ||
<div class="card text-center"> | ||
<div class="card-header"> | ||
Featured | ||
</div> | ||
<div class="card-body"> | ||
<h5 class="card-title">Special title treatment</h5> | ||
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p> | ||
<a href="#" class="btn btn-primary">Go somewhere</a> | ||
</div> | ||
<div class="card-footer text-muted"> | ||
2 days ago | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-5 col-sm-12 col-xs-12 my-5"> | ||
<div class="card text-center"> | ||
<div class="card-header"> | ||
Featured | ||
</div> | ||
<div class="card-body"> | ||
<h5 class="card-title">Special title treatment</h5> | ||
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p> | ||
<a href="#" class="btn btn-primary">Go somewhere</a> | ||
</div> | ||
<div class="card-footer text-muted"> | ||
2 days ago | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-5 col-sm-12 col-xs-12 my-5"> | ||
<div class="card text-center"> | ||
<div class="card-header"> | ||
Featured | ||
</div> | ||
<div class="card-body"> | ||
<h5 class="card-title">Special title treatment</h5> | ||
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p> | ||
<a href="#" class="btn btn-primary">Go somewhere</a> | ||
</div> | ||
<div class="card-footer text-muted"> | ||
2 days ago | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
|
||
<?php include './includes/footer.php' ?> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<!DOCTYPE html> | ||
<html lang="fr"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<!-- Inclure uniquement une version de Bootstrap --> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"> | ||
<link rel=" website icon" type="png" href="./images/logo/logo.png"> | ||
<link rel="stylesheet" href="./includes/style.css"> | ||
<title>Inscription | SweetShops</title> | ||
</head> | ||
|
||
<body style="background-color: #ffe4e1;"> | ||
<?php include './includes/header.php'; ?> | ||
|
||
<div class="container-fluid py-5 my-5"> | ||
<div class="row py-5 mx-auto justify-content-evenly"> | ||
<div class="col-md-6 col-sm-12 col-xs-12 my-5"> | ||
<div class="card text-center"> | ||
<div class="card-header fw-bold text-danger"> | ||
INSCRIPTION | ||
</div> | ||
<div class="card-body"> | ||
<form method="POST" action="./includes/TraitSignIn.php"> | ||
<p>* Champs obligatoires</p> | ||
<div class="mb-3"> | ||
<label for="nom" class="form-label">Nom *</label> | ||
<input placeholder="Entrez votre nom" name="nom" id="nom" class="form-control" type="text" required> | ||
</div> | ||
<div class="mb-3"> | ||
<label for="prenom" class="form-label">Prénom *</label> | ||
<input placeholder="Entrez votre prénom" name="prenom" id="prenom" class="form-control" type="text" required> | ||
</div> | ||
<div class="mb-3"> | ||
<label for="email" class="form-label">E-mail *</label> | ||
<input placeholder="Entrez votre e-mail" name="mail" id="email" class="form-control" type="email" required> | ||
</div> | ||
<div class="mb-3"> | ||
<label for="password" class="form-label">Mot de passe *</label> | ||
<input placeholder="Entrez votre mot de passe" name="password" id="password" class="form-control" type="password" required> | ||
</div> | ||
<hr> | ||
<h5 class="text-danger mb-3">Adresse</h5> | ||
<div class="mb-3"> | ||
<label for="numeroRue" class="form-label">N° de Rue *</label> | ||
<input placeholder="Entrez le numéro de la rue" name="numeroRue" id="numeroRue" class="form-control" type="text" required> | ||
</div> | ||
<div class="mb-3"> | ||
<label for="nomRue" class="form-label">Nom de la Rue *</label> | ||
<input placeholder="Entrez le nom de la rue" name="nomRue" id="nomRue" class="form-control" type="text" required> | ||
</div> | ||
<div class="mb-3"> | ||
<label for="pays" class="form-label">Pays *</label> | ||
<input placeholder="Entrez le pays" name="pays" id="pays" class="form-control" type="text" required> | ||
</div> | ||
<div> | ||
<button type="submit" name="submit" class="btn btn-primary">VALIDER</button> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="card-footer text-muted"> | ||
Vous avez un compte ? <a class="link" href="Connexion.php">Connectez-vous ici !</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<?php include './includes/footer.php'; ?> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
<?php | ||
try{ | ||
$connect = new PDO ('mysql:host=localhost;dbname=R2024PHP3011;charset=UTF8','R2024PHP3011','37ewGVpb89Mv5X'); | ||
} | ||
catch (PDOException $e) { | ||
echo "Erreur : ".$e->getMessage()."<br/>"; | ||
<?php | ||
try { | ||
$user = 'R2024MYSAE3008'; | ||
$pass = '59eZ8gGwb4EgC9'; | ||
$conn = new PDO( | ||
'mysql:host=localhost;dbname=R2024MYSAE3008;charset=UTF8', | ||
$user, | ||
$pass, | ||
array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION) | ||
); | ||
} catch (PDOException $e) { | ||
echo "Erreur: " . $e->getMessage() . "<br>"; | ||
die(); | ||
} | ||
?> |
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.