diff --git a/controleurs/creerPartie_controleur.php b/controleurs/creerPartie_controleur.php new file mode 100644 index 0000000..0567ccd --- /dev/null +++ b/controleurs/creerPartie_controleur.php @@ -0,0 +1,17 @@ + \ No newline at end of file diff --git a/vues/creerPartie_vue.php b/vues/creerPartie_vue.php new file mode 100644 index 0000000..0a01a91 --- /dev/null +++ b/vues/creerPartie_vue.php @@ -0,0 +1,72 @@ +'; + for ($i = 1; $i <= 5; $i++) { + echo ''; + } + echo ''; + + echo '
'; + + if (isset($_POST[$nom])) { + return (int) $_POST[$nom]; + } + + return (int) 0; +} + +function afficher_formulaire() { + $total = 0; + + echo '
'; + + $total += champs_cartes('nbCartesVertes', 'Nombre de cartes vertes'); + $total += champs_cartes('nbCartesOranges', 'Nombre de cartes oranges'); + $total += champs_cartes('nbCartesNoires', 'Nombre de cartes noires'); + + + if($total > 0) { + echo '
Total : ' . $total . '
'; + if ($total > 10) { + echo '
Trop de cartes !!!!!!
'; + } else { + echo ''; + } + } + + echo ''; + echo '
'; +} + +?> + + +
+ +

Créer une partie

+ + +
\ No newline at end of file