1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <form id='quiz_form' method="post">
<div>
<h2>Thème : <?php echo $init->getThemeOne(); ?></h2>
<h4>Le jeu de question choisis : <?php echo $init->getCacaone(); ?></h4>
<?php $i=1;?>
<div id="question" class='questions'>
<h5>Question : <?php echo $init->getGameOne()[$i]; ?></h5>
<?php
$reponse[$i] = $init->getPdo()->getReponse($init->getGameOne()[$i]);
?>
<br/>
<br/>
<?php
$proposition1 = $init->getPdo()->getProposition1($init->getCacaone());
?>
<input type="button" value="<?php echo $proposition1; ?>" id="butt" name='butt1' onClick="<?php $init->reponse($_POST['name'], $reponse[$i], $init->getGameOne()[$i]); ?>">
<label></label>
<br/>
<?php
$proposition2 = $init->getPdo()->getProposition2($init->getCacaone());
?>
<input type="button" value="<?php echo $proposition2; ?>" id="butt" name='butt2' onClick="<?php $init->reponse($_POST['name'], $reponse[$i], $init->getGameOne()[$i]); ?>">
<label></label>
<br/>
<input type="button" value="Les Deux" id="butt" name='butt3' onClick="<?php $init->reponse($_POST['name'], $reponse[$i], $init->getGameOne()[$i]); ?>">
<label></label>
<br/>
<br/>
</div>
<div id='demo1' class="demo" ></div>
</div>
</form> |
Partager