Rev 9633 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
9629 | guerimand | 1 | !if $nbsheet>=$max_sheets |
2 | error=toomuchsheet |
||
3 | !exit |
||
4 | !endif |
||
5 | |||
6 | docu=!record $sdoc of wimshome/log/classes/$wims_class/doc/.docindex |
||
7 | dir=!line 1 of $docu |
||
8 | donnees=!sh grep -a primitives.phtml $wims_home/public_html/modules/$dir/doc/1/*.def | grep -a exercise |
||
9 | nbexo=!linecnt $donnees |
||
10 | donsh=$empty |
||
11 | !for k=1 to $nbexo |
||
12 | exodon=!line $k of $donnees |
||
13 | iniparm=!item -2 of $exodon |
||
14 | title=!item -1 of $exodon |
||
15 | !read getparm $iniparm module,worksheet,cmd |
||
16 | !for name in cmd,worksheet,module |
||
17 | iniparm=!replace internal $name=$(get_$name) by $empty in $iniparm |
||
18 | !next name |
||
19 | iniparm=!singlespace $iniparm |
||
20 | iniparm=!replace internal & by , in $iniparm |
||
21 | iniparm=!nonempty item $iniparm |
||
22 | iniparm=!replace internal , by & in $iniparm |
||
23 | !if $iniparm!=$empty |
||
24 | tmp=:$get_module\ |
||
25 | $iniparm\ |
||
26 | 10\ |
||
27 | 1\ |
||
28 | $title\ |
||
29 | \ |
||
30 | |||
31 | donsh=!append line $tmp to $donsh |
||
32 | !endif |
||
33 | !next k |
||
34 | |||
35 | autosheet=$[$nbsheet+1] |
||
36 | !writefile wimshome/log/classes/$wims_class/sheets/.sheet$autosheet $donsh |
||
37 | title=!line 4 of $docu |
||
38 | date=!defof class_expiration in wimshome/log/classes/$wims_class/.def |
||
39 | !appendfile wimshome/log/classes/$wims_class/sheets/.sheets :0\ |
||
40 | $date\ |
||
41 | $title |
||
42 | |||
43 | message=$name_confirmmksheet |
||
44 | n=!linecnt $docu |
||
45 | !if $n<=6 |
||
46 | docu=!append line $autosheet to $docu |
||
47 | !else |
||
48 | docu=!replace line number 7 by $autosheet in $docu |
||
49 | !endif |
||
50 | !read proc/updatefield.proc wimshome/log/classes/$wims_class/doc/.docindex\ |
||
51 | $sdoc\ |
||
52 | \ |
||
53 | $docu |
||
54 | !distribute lines $docu into dir,param,title,desc,status,wksheet,autosheet |
||
55 | nbsheet=$[$nbsheet+1] |
||
56 | job=prop |