Rev 5763 | Rev 8167 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | reyssat | 1 | !set methtit=Effacer des hypothèses inutiles |
2 | !set methparmtype=special |
||
3 | !set methparmrelax=1 |
||
4 | !set stepnocount=yes |
||
5 | !set methhelp=Vous pouvez utiliser cette méthode pour enlever les hypothèses\ |
||
6 | inutiles, afin de clarifier la situation. Mais <b>attention</b> ! Si vous\ |
||
7 | enlevez une hypothèse indispensable, vous ne pourrez plus aboutir !\ |
||
8 | <p>\ |
||
9 | Vous pouvez appliquer cette méthode autant de fois que vous voulez sans être\ |
||
10 | pénalisé dans votre score, car elle n'avance pas le compteur d'étape pour le\ |
||
11 | score. |
||
12 | !set N_=!linecnt $m_context |
||
13 | |||
14 | !if $wims_read_parm iswordof form check |
||
15 | !goto $wims_read_parm |
||
16 | !endif |
||
17 | |||
18 | !if $N_<1 |
||
19 | !set error1=Il n'y a plus d'hypothèse dans l'état actuel ! |
||
20 | !endif |
||
21 | |||
22 | !exit |
||
23 | :form |
||
24 | $methhelp |
||
25 | <p> |
||
7210 | bpr | 26 | Voici les hypothèses actuelles. Marquez celles que vous voulez enlever. |
27 | </p><ul> |
||
20 | reyssat | 28 | !for i=1 to $N_ |
29 | !set l=!line $i of $m_context |
||
7210 | bpr | 30 | <li> <input type="checkbox" name="methparm1" value="$i" /> \($l) </li> |
20 | reyssat | 31 | !next i |
32 | </ul> |
||
33 | !exit |
||
34 | :check |
||
35 | !reset newobject,oldobject |
||
36 | n_=!itemcnt $methparm1 |
||
37 | !if $n_=0 |
||
38 | methexp=Etape vide |
||
39 | !exit |
||
40 | !endif |
||
41 | nc= |
||
42 | !for i=1 to $N_ |
||
43 | !if $i notitemof $methparm1 |
||
44 | l=!line $i of $m_context |
||
45 | nc=!append line $l to $nc |
||
46 | !endif |
||
47 | !next i |
||
48 | m_context=$nc |
||
49 | !read deduc/objects.combine |
||
50 | methexp=Effacer $n_ hypothèses |
||
51 | |||
52 | !exit |
||
53 |