28 lines
861 B
PHP
28 lines
861 B
PHP
<?php
|
|
// En tête de page
|
|
?>
|
|
<?php require_once(PATH_VIEWS.'header.php');?>
|
|
|
|
<!-- Zone message d'alerte -->
|
|
<?php require_once(PATH_VIEWS.'alert.php');?>
|
|
|
|
<!-- Début de la page -->
|
|
<?php if (isset($poll) and $poll and isset($answers) and $answers) { ?>
|
|
<h2><?= $poll["question"] ?></h2>
|
|
<?php foreach ($answers as $answer) { ?>
|
|
<p><?= $answer["texte"] ?>: <?= str_repeat("+", $answer["nbChoisi"]) ?></p>
|
|
<?php } ?>
|
|
<form method="POST">
|
|
<?php foreach ($answers as $answer) { ?>
|
|
<label>
|
|
<input type="radio" name="answer" value=<?= $answer["repId"] ?>>
|
|
<?= $answer["texte"] ?>
|
|
</label>
|
|
<?php } ?>
|
|
<input type="submit" value=<?= ANSWER ?>>
|
|
</form>
|
|
<?php } ?>
|
|
<!-- Fin de la page -->
|
|
|
|
<!-- Pied de page -->
|
|
<?php require_once(PATH_VIEWS.'footer.php');
|