Rev 11160 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11157 | bpr | 1 | !!! fichier de présentation de l'étape 4 !!! |
11160 | bpr | 2 | <h3 class="wimscenter"> Etape $etape: rédaction de l'énoncé</h3> |
3 | <p> |
||
11157 | bpr | 4 | Modifiez l'énoncé type suivant pour l'adapter à votre exercice. |
23 | reyssat | 5 | </p> |
6 | !if ($propsnb>2 and $ckchnb=0) |
||
7 | !set ckchnb=2 |
||
8 | !set par_defaut=<code>Par défaut: un nombre aléatoire compris entre 2 et $propsnb</code>. |
||
11160 | bpr | 9 | <div style="background-color:darkseagreen"> |
10 | N'oubliez pas de préciser au passage le nombre de possibilités de choix à |
||
11 | afficher avec l'énoncé. |
||
11157 | bpr | 12 | <span style="background-color:white">$par_defaut </span> |
23 | reyssat | 13 | </div> |
14 | !endif |
||
11160 | bpr | 15 | <h4>Enoncé type</h4> |
16 | <div> |
||
23 | reyssat | 17 | $enonceR |
11160 | bpr | 18 | </div><div> |
11157 | bpr | 19 | Modifiez le code source ci-dessous pour l'adapter à votre exercice. |
11160 | bpr | 20 | </div> |
21 | <div class="wims_remark"><b>Note</b>: dans le fichier source, la question est stockée dans |
||
22 | la variable <em><span class="color:red">obj</span></em> et est invoquée en entrant |
||
11157 | bpr | 23 | la <b>commande</b> <code><span class="color:red">\obj</span></code>. |
23 | reyssat | 24 | </div> |
25 | |||
26 | !set wims_backslash_insmath=no |
||
27 | !set enonceR=!reinput $enonceR |
||
28 | |||
11160 | bpr | 29 | <h4>Texte à modifier</h4> |
5882 | bpr | 30 | <textarea name="enonceR" rows="20" cols="70"> |
23 | reyssat | 31 | $enonceR |
32 | </textarea> |
||
33 | |||
34 | !if $propsnb>2 |
||
11160 | bpr | 35 | <h4>Nombre de possibilités de choix</h4> |
36 | <ul><li> |
||
5882 | bpr | 37 | <input type="radio" name="ckchnb" value="0" |
11157 | bpr | 38 | !if $ckchnb=0 |
11160 | bpr | 39 | checked="checked" |
23 | reyssat | 40 | !endif |
17230 | bpr | 41 | > Toutes |
11160 | bpr | 42 | </li><li> |
5882 | bpr | 43 | <input type="radio" name="ckchnb" value="1" |
23 | reyssat | 44 | !if $ckchnb=1 |
11160 | bpr | 45 | checked="checked" |
23 | reyssat | 46 | !endif |
17230 | bpr | 47 | > |
48 | Afficher <input size="5" name="fixchnb" value="$fixchnb"> possibilités (au moins 2). |
||
11160 | bpr | 49 | </li><li> |
5882 | bpr | 50 | <input type="radio" name="ckchnb" value="2" |
23 | reyssat | 51 | !if $ckchnb=2 |
11160 | bpr | 52 | checked="checked" |
23 | reyssat | 53 | !endif |
17230 | bpr | 54 | > |
23 | reyssat | 55 | Nombre aléatoire compris entre 2 et $propsnb |
11160 | bpr | 56 | </li><li> |
5882 | bpr | 57 | <input type="radio" name="ckchnb" value="3" |
23 | reyssat | 58 | !if $ckchnb=3 |
11160 | bpr | 59 | checked="checked" |
23 | reyssat | 60 | !endif |
17230 | bpr | 61 | > |
62 | Nombre aléatoire compris entre <input size="5" name="borng" value="$borng"> et |
||
63 | <input size="5" name="bornd" value="$bornd"> |
||
11160 | bpr | 64 | </li></ul> |
23 | reyssat | 65 | !endif |
66 | |||
67 | !if $multirep=1 |
||
11157 | bpr | 68 | <div style="text-align:justify;background-color:lightblue;width:65%"> |
69 | Certaines de vos questions comportent plusieurs réponses. |
||
17230 | bpr | 70 | <br> |
23 | reyssat | 71 | Veuillez donc préciser: |
72 | <ul> |
||
73 | <li> |
||
11157 | bpr | 74 | <b>Option 1</b>: <span class="tt">on ne peut cocher qu'une réponse</span> |
75 | <input type="radio" name="chbox_u_radio" value="radio" |
||
76 | !if $chbox_u_radio!=checkbox |
||
23 | reyssat | 77 | checked |
78 | !endif |
||
17230 | bpr | 79 | > |
23 | reyssat | 80 | </li> |
81 | <li> |
||
11157 | bpr | 82 | <b>Option 2</b>: <span class="tt">on doit cocher toutes les bonnes réponses</span> |
83 | <input type="radio" name="chbox_u_radio" value="checkbox" |
||
84 | !if $chbox_u_radio=checkbox |
||
23 | reyssat | 85 | checked |
86 | !endif |
||
17230 | bpr | 87 | > |
23 | reyssat | 88 | </li> |
89 | </ul> |
||
90 | </div> |
||
91 | !else |
||
92 | !set chbox_u_radio=radio |
||
93 | !endif |
||
94 | |||
95 | |||
96 | !read comsDir/valideb |