Rev 16117 | 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\ |
||
8167 | bpr | 11 | score.\ |
12 | </p> |
||
20 | reyssat | 13 | !set N_=!linecnt $m_context |
14 | |||
15 | !if $wims_read_parm iswordof form check |
||
16117 | bpr | 16 | !goto $wims_read_parm |
20 | reyssat | 17 | !endif |
18 | |||
19 | !if $N_<1 |
||
16117 | bpr | 20 | !set error1=Il n'y a plus d'hypothèse dans l'état actuel ! |
20 | reyssat | 21 | !endif |
22 | |||
23 | !exit |
||
24 | :form |
||
16117 | bpr | 25 | $methhelp |
26 | <p> |
||
27 | Voici les hypothèses actuelles. Marquez celles que vous voulez enlever. |
||
28 | </p><ul> |
||
29 | !for i=1 to $N_ |
||
20 | reyssat | 30 | !set l=!line $i of $m_context |
17187 | bpr | 31 | <li> <input type="checkbox" name="methparm1" value="$i"> \($l) </li> |
16117 | bpr | 32 | !next i |
20 | reyssat | 33 | </ul> |
34 | !exit |
||
35 | :check |
||
16117 | bpr | 36 | !reset newobject,oldobject |
37 | n_=!itemcnt $methparm1 |
||
38 | !if $n_=0 |
||
20 | reyssat | 39 | methexp=Etape vide |
40 | !exit |
||
16117 | bpr | 41 | !endif |
42 | nc= |
||
43 | !for i=1 to $N_ |
||
20 | reyssat | 44 | !if $i notitemof $methparm1 |
16117 | bpr | 45 | l=!line $i of $m_context |
46 | nc=!append line $l to $nc |
||
20 | reyssat | 47 | !endif |
16117 | bpr | 48 | !next i |
49 | m_context=$nc |
||
50 | !read deduc/objects.combine |
||
51 | methexp=Effacer $n_ hypothèses |
||
8167 | bpr | 52 | |
20 | reyssat | 53 | !exit |