les styles c'est bien, et aussi les formulaires
This commit is contained in:
@@ -102,6 +102,11 @@ footer {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.unecarte {
|
||||
display: inline-block;
|
||||
background-color: tomato;
|
||||
}
|
||||
|
||||
.panneau_details>div {
|
||||
margin-right: 2%;
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ function afficherCartes(int $idpartie): void
|
||||
{
|
||||
$cartes = getCardsName($idpartie);
|
||||
|
||||
echo '<div class="cartejesaispasquoi">';
|
||||
echo '<div>';
|
||||
afficher_depart();
|
||||
for ($i = 0; $i < sizeof($cartes); $i++) {
|
||||
afficherCarte($cartes[$i], $i + 1);
|
||||
@@ -64,6 +64,25 @@ function formulaire_selection_partie()
|
||||
echo '</form>';
|
||||
}
|
||||
|
||||
function formulaire_selection_des_main()
|
||||
{
|
||||
echo '<form action="jouerPartie_controleur.php" method="post">
|
||||
<div class="tab">
|
||||
<label for="desBleus">Nombre de dés bleus :</label>
|
||||
<input type="number" id="desBleus" name="desBleus">
|
||||
</div>
|
||||
<div class="tab">
|
||||
<label for="desJaunes">Nombre de dés jaunes :</label>
|
||||
<input type="number" id="desJaunes" name="desJaunes">
|
||||
</div>
|
||||
<div class="tab">
|
||||
<label for="desRouges">Nombre de dés rouges :</label>
|
||||
<input type="number" id="desRouges" name="desRouges">
|
||||
</div>
|
||||
<input type="submit" value="Enregistrer la main">
|
||||
</form>';
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
@@ -71,7 +90,7 @@ function formulaire_selection_partie()
|
||||
|
||||
<h2>Jouer une partie</h2>
|
||||
|
||||
<div class="tamaman">
|
||||
<div>
|
||||
<?php
|
||||
|
||||
if (isset($_POST['idpartie'])) {
|
||||
@@ -82,6 +101,7 @@ function formulaire_selection_partie()
|
||||
formulaire_selection_partie();
|
||||
}
|
||||
|
||||
formulaire_selection_des_main();
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user