"exo 1 tp3 ok + format"

This commit is contained in:
JunkJumper 2020-10-05 10:53:05 +02:00
parent 1a50cabfb4
commit 4f71cbdf93
3 changed files with 91 additions and 58 deletions

View File

@ -1,3 +1,12 @@
/**
* @ Author: JunkJumper
* @ Link: https://github.com/JunkJumper
* @ Copyright: Creative Common 4.0 (CC BY 4.0)
* @ Create Time: 05-10-2020 10:29:38
* @ Modified by: JunkJumper
* @ Modified time: 05-10-2020 10:52:29
*/
.radial-timer {
overflow: hidden;
height: 144px;

View File

@ -1,7 +1,15 @@
<!--
@ Author: JunkJumper
@ Link: https://github.com/JunkJumper
@ Copyright: Creative Common 4.0 (CC BY 4.0)
@ Create Time: 05-10-2020 10:29:32
@ Modified by: JunkJumper
@ Modified time: 05-10-2020 10:51:10
-->
<html>
<style>
p {
font-weight: bold;
color: grey;
@ -13,7 +21,6 @@
color: red;
text-align: center;
}
</style>
<link href="./anim.css" rel="stylesheet">
@ -22,14 +29,12 @@
$checkE = false;
$tab = $_REQUEST['formulaire'];
$vins = "";
$denom = "";
$denom = "Damoixe";
if ($tab['genre'] == "Homme") {
$denom = "Monsieur";
} else if ($tab['genre'] == "Femme") {
$denom = "Madamme";
} else {
$denom = "Damoixe";
}
if (preg_match("#[a-zA-Z_]#", $tab['nom']) && preg_match("#[a-zA-Z_]#", $tab['prenom'])) {
@ -47,8 +52,12 @@
echo '<p>Votre nom est : ' . $tab['nom'] . '</p>';
echo '<p>Votre prenom est : ' . $tab['prenom'] . '</p>';
if ($tab['sexe'] != null) {echo '<p>Votre genre est : ' .$tab['genre'] .'</p>';}
if ($vins != null) {echo '<p>Votre sélection de vin(s) est : ' .$vins .'</p>';}
if ($tab['sexe'] != null) {
echo '<p>Votre genre est : ' . $tab['genre'] . '</p>';
}
if ($vins != null) {
echo '<p>Votre sélection de vin(s) est : ' . $vins . '</p>';
}
} else {
echo '<p>Votre nom ou prénom n\'est pas correct.</p>';
}
@ -67,10 +76,16 @@
?>
<br /><br /><br /><br /> <center><div class="radial-timer s-animate"> <div class="radial-timer-half"></div> <div class="radial-timer-half"></div></center>
<br /><br /><br /><br />
<center>
<div class="radial-timer s-animate">
<div class="radial-timer-half"></div>
<div class="radial-timer-half"></div>
</center>
<script>
setTimeout(function() {
window.location.href = "./index.php";
}, 5000);
</script>
</html>

View File

@ -1,3 +1,12 @@
<!--
@ Author: JunkJumper
@ Link: https://github.com/JunkJumper
@ Copyright: Creative Common 4.0 (CC BY 4.0)
@ Create Time: 05-10-2020 10:29:32
@ Modified by: JunkJumper
@ Modified time: 05-10-2020 10:51:10
-->
<html>
<link href="./anim.css" rel="stylesheet">
<?php