echo getCourt($_COOKIE["idMatch"]); ?> </p> <p> <label class = 'strong'>Emplacement : </label><?php echo $_COOKIE["place"]; ?> </p> <p> <label class = 'strong'>Nombre de places : </label><?php echo $_COOKIE["nbPlaces"]; ?> </p> <p> <label class = 'strong'>Date : </label><?php echo getJour($_COOKIE["jourMatch"]); ?> </p> <p> <label class = 'strong'>Heure : </label><?php echo getHeure($_COOKIE["heureMatch"]); ?> </p> <form action="promo.php" method="post"> <p> <label class = 'strong'>Code Promo :</label> <input type="number" id="cp" name="cp" min = "0"/> </p> <p> <button type="submit">Valider le code promotionnel</button>
$html = ' <table border="1"> <tr> <td width="200" height="50">Tour</td><td width="400" height="50">' . getTour($_COOKIE["jourMatch"]) . '</td> </tr> <tr> <td width="200" height="50">Match</td><td width="400" height="50">' . getVs($_COOKIE["idMatch"], $_COOKIE["typeMatch"]) . '</td> </tr> <tr> <td width="200" height="50">Court</td><td width="400" height="50">' . getCourt($_COOKIE["idMatch"]) . '</td> </tr> <tr> <td width="200" height="50">Emplacement</td><td width="400" height="50">' . $_COOKIE["place"] . '</td> </tr> <tr> <td width="200" height="50">Date</td><td width="400" height="50">' . getJour($_COOKIE["jourMatch"]) . '</td> </tr> <tr> <td width="200" height="50">Heure</td><td width="400" height="50">' . getHeure($_COOKIE["heureMatch"]) . '</td> </tr> <tr> <td width="200" height="50">Nombre de places</td><td width="400" height="50">' . $_COOKIE["nbPlaces"] . '</td> </tr> <tr> <td width="200" height="50">Prix total</td><td width="400" height="50">' . $_COOKIE["prix"] . ' euros</td> </tr> <tr> <td width="200" height="50">Numeros de place</td><td width="400" height="50">' . $places . '</td> </tr> </table>'; $pdf->WriteHTML($html);