1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
//Charger les questions
$reqListeQuest="SELECT * FROM Question WHERE idIndice =".$idIndice." order by ordreQuestion";
$rspListeQuest=mysql_query ($reqListeQuest);
while ($listeQuest=mysql_fetch_assoc($rspListeQuest)){
print" <tr><td height='35' colspan='4' valign='top'>";
print" <span class='Style5'>".$listeQuest["ordreQuestion"]." <img src='images/puce.gif' width='12' height='13'>";
print"". $listeQuest["libelleQuestion"]." </span></td></tr>";
$idReponse= $listeQuest["idReponse"];
//Associer la bonne réponse
$reqReponse="SELECT * FROM REPONSE WHERE idReponse =".$idReponse;
$rspReponse=mysql_query ($reqReponse);
$reponse=mysql_fetch_assoc($rspReponse);
print "<tr><td height='100' colspan='4' valign='top'><blockquote><blockquote><p class='Style6'>";
print "<input type='radio' name='".$listeQuest["ordreQuestion"]."' value='20'>".$reponse["libelleR1"]."<br>";
print "<input type='radio' name='".$listeQuest["ordreQuestion"]."' value='15'>".$reponse["libelleR2"]."<br>";
print "<input type='radio' name='".$listeQuest["ordreQuestion"]."' value='10'>".$reponse["libelleR3"]."<br>";
print "<input type='radio' name='".$listeQuest["ordreQuestion"]."' value='5'>".$reponse["libelleR4"]."<br>";
print"</blockquote></blockquote></td></tr>";
}?> |