"exo 1 tp3 ok + format"
This commit is contained in:
parent
1a50cabfb4
commit
4f71cbdf93
@ -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 {
|
.radial-timer {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 144px;
|
height: 144px;
|
||||||
|
@ -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>
|
<html>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: grey;
|
color: grey;
|
||||||
@ -13,7 +21,6 @@
|
|||||||
color: red;
|
color: red;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<link href="./anim.css" rel="stylesheet">
|
<link href="./anim.css" rel="stylesheet">
|
||||||
@ -22,14 +29,12 @@
|
|||||||
$checkE = false;
|
$checkE = false;
|
||||||
$tab = $_REQUEST['formulaire'];
|
$tab = $_REQUEST['formulaire'];
|
||||||
$vins = "";
|
$vins = "";
|
||||||
$denom = "";
|
$denom = "Damoixe";
|
||||||
|
|
||||||
if ($tab['genre'] == "Homme") {
|
if ($tab['genre'] == "Homme") {
|
||||||
$denom = "Monsieur";
|
$denom = "Monsieur";
|
||||||
} else if ($tab['genre'] == "Femme") {
|
} else if ($tab['genre'] == "Femme") {
|
||||||
$denom = "Madamme";
|
$denom = "Madamme";
|
||||||
} else {
|
|
||||||
$denom = "Damoixe";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (preg_match("#[a-zA-Z_]#", $tab['nom']) && preg_match("#[a-zA-Z_]#", $tab['prenom'])) {
|
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 nom est : ' . $tab['nom'] . '</p>';
|
||||||
echo '<p>Votre prenom est : ' . $tab['prenom'] . '</p>';
|
echo '<p>Votre prenom est : ' . $tab['prenom'] . '</p>';
|
||||||
if ($tab['sexe'] != null) {echo '<p>Votre genre est : ' .$tab['genre'] .'</p>';}
|
if ($tab['sexe'] != null) {
|
||||||
if ($vins != null) {echo '<p>Votre sélection de vin(s) est : ' .$vins .'</p>';}
|
echo '<p>Votre genre est : ' . $tab['genre'] . '</p>';
|
||||||
|
}
|
||||||
|
if ($vins != null) {
|
||||||
|
echo '<p>Votre sélection de vin(s) est : ' . $vins . '</p>';
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
echo '<p>Votre nom ou prénom n\'est pas correct.</p>';
|
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>
|
<script>
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
window.location.href = "./index.php";
|
window.location.href = "./index.php";
|
||||||
}, 5000);
|
}, 5000);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</html>
|
</html>
|
@ -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>
|
<html>
|
||||||
<link href="./anim.css" rel="stylesheet">
|
<link href="./anim.css" rel="stylesheet">
|
||||||
<?php
|
<?php
|
||||||
|
Loading…
x
Reference in New Issue
Block a user