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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
| strQuestions = "<form id='sondage' action='SondageTest.aspx.cs' method='post'> ";
//Question sur Windows
for (int i = 0; i < dtsQuestion.Tables[0].Rows.Count; i++)
{
DataRow rowQuestion = dtsQuestion.Tables[0].Rows[i];
if (rowQuestion[Constantes.CHAMP_QUESTION_THEME].ToString().Trim().Equals("Windows"))
{
if (rowQuestion[Constantes.CHAMP_QUESTION_ID].ToString().Trim().Equals("w00"))
{
strQuestions += "<fieldset>";
strQuestions += "<legend>Utilisation de Microsoft Word</legend>";
strQuestions += "<br /> <table class='bordersolidfondgris' style='width: 100%'>";
strQuestions += "<tr>";
strQuestions += "<th style='width: 77%' /><th style='width: 3%'/><th style='width: 10%; text-align:center;'>OUI</th><th style='width: 10%; text-align:center;'>NON</th>";
strQuestions += "</tr>";
strQuestions += "<tr>";
strQuestions += "<td style='width: 77%'>";
strQuestions += rowQuestion[Constantes.CHAMP_QUESTION_LIBELLE].ToString();
strQuestions += "</td>";
strQuestions += "<td><center><input type='radio' id='nr' name='" + rowQuestion[Constantes.CHAMP_QUESTION_ID].ToString() + "' value='-1' checked style='visibility: hidden; display: none' /></center></td>";
strQuestions += "<td><center><input type='radio' id='rb' name='" + rowQuestion[Constantes.CHAMP_QUESTION_ID].ToString() + "' value='0' OnClick='Montre(qWord)' /></center></td>";
strQuestions += "<td><center><input type='radio' id='ra' name='" + rowQuestion[Constantes.CHAMP_QUESTION_ID].ToString() + "' value='1' OnClick='Cache(qWord)' /></center></td>";
strQuestions += "</tr>";
strQuestions += "</table></fieldset> <br />";
strQuestions += "<fieldset id='qWord' style='display: block;'>";
strQuestions += "<legend>Questionnaire relatif l'utilisation de Microsoft Word</legend>";
strQuestions += "<br /> <table class='bordersolidfondgris' style='width: 100%'>";
strQuestions += "<tr>";
strQuestions += "<th style='width: 77%' /><th style='width: 3%'/><th style='width: 10%; text-align:center;'>OUI</th><th style='width: 10%; text-align:center;'>NON</th>";
strQuestions += "</tr>";
}
else
{
strQuestions += "<tr>";
strQuestions += "<td>";
strQuestions += rowQuestion[Constantes.CHAMP_QUESTION_LIBELLE].ToString();
strQuestions += "</td>";
strQuestions += "<td><center><input type='radio' id='nr' name='" + rowQuestion[Constantes.CHAMP_QUESTION_ID].ToString() + "' checked style='visibility: hidden; display: none' value='-1' /></center></td>";
strQuestions += "<td><center><input type='radio' id='rb' name='" + rowQuestion[Constantes.CHAMP_QUESTION_ID].ToString() + "' value='0' /></center></td>";
strQuestions += "<td><center><input type='radio' id='ra' name='" + rowQuestion[Constantes.CHAMP_QUESTION_ID].ToString() + "' value='1' /></center></td>";
strQuestions += "</tr>";
}
}
}
strQuestions += "</table>";
strQuestions += "</fieldset>";
strQuestions += "<br /> <br />";
strQuestions += "</table>";
strQuestions += "</fieldset>";
//Boutons du formulaire
strQuestions += "<input type='button' name='btnValider' value='Participer au sondage'>";
strQuestions += "<input type='reset' value='effacer'>";
strQuestions += "</form>"; |
Partager