Rev 9644 | Rev 9672 | Go to most recent revision | Details | Compare with Previous | 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 |
||
9633 | guerimand | 7 | autosheet=!line 7 of $docu |
8 | !if $autosheet!=$empty |
||
9 | !exit |
||
10 | !endif |
||
9629 | guerimand | 11 | dir=!line 1 of $docu |
9644 | guerimand | 12 | donnees=!sh grep -a primitives.phtml $wims_home/public_html/modules/$dir/doc/1/*.def |
9629 | guerimand | 13 | nbexo=!linecnt $donnees |
14 | donsh=$empty |
||
15 | !for k=1 to $nbexo |
||
16 | exodon=!line $k of $donnees |
||
9644 | guerimand | 17 | test=!item 2 of $exodon |
18 | !if exercise iswordof $test |
||
19 | liniparm=!item -2 of $exodon |
||
20 | title=!item -1 of $exodon |
||
21 | !read getparm $liniparm module,worksheet,cmd |
||
22 | test=!getdef category in wimshome/public_html/modules/$get_module/INDEX |
||
23 | !if exercise isin $test or oef isin $test |
||
24 | !for name in cmd,worksheet,module |
||
25 | liniparm=!replace internal $name=$(get_$name) by $empty in $liniparm |
||
26 | !next name |
||
27 | liniparm=!singlespace $liniparm |
||
28 | liniparm=!replace internal & by , in $liniparm |
||
29 | liniparm=!nonempty item $liniparm |
||
30 | liniparm=!replace internal , by & in $liniparm |
||
31 | tmp=:$get_module\ |
||
32 | $liniparm\ |
||
9629 | guerimand | 33 | 10\ |
34 | 1\ |
||
35 | $title\ |
||
36 | \ |
||
37 | |||
9644 | guerimand | 38 | donsh=!append line $tmp to $donsh |
39 | !endif |
||
9629 | guerimand | 40 | !endif |
41 | !next k |
||
42 | |||
9644 | guerimand | 43 | !if $donsh=$empty |
44 | error=noexo |
||
45 | wims_menu_items=!append line back2,1,cmd=reply&job=prop to $wims_menu_items |
||
46 | !exit |
||
47 | !endif |
||
48 | |||
9629 | guerimand | 49 | autosheet=$[$nbsheet+1] |
9644 | guerimand | 50 | |
9629 | guerimand | 51 | !writefile wimshome/log/classes/$wims_class/sheets/.sheet$autosheet $donsh |
52 | title=!line 4 of $docu |
||
53 | date=!defof class_expiration in wimshome/log/classes/$wims_class/.def |
||
9644 | guerimand | 54 | |
9629 | guerimand | 55 | !appendfile wimshome/log/classes/$wims_class/sheets/.sheets :0\ |
56 | $date\ |
||
57 | $title |
||
58 | message=$name_confirmmksheet |
||
9644 | guerimand | 59 | docu=!nonempty line $docu |
9629 | guerimand | 60 | n=!linecnt $docu |
61 | !if $n<=6 |
||
62 | docu=!append line $autosheet to $docu |
||
63 | !else |
||
64 | docu=!replace line number 7 by $autosheet in $docu |
||
65 | !endif |
||
9665 | guerimand | 66 | docu=!replace line number 6 by $autosheet in $docu |
9629 | guerimand | 67 | !read proc/updatefield.proc wimshome/log/classes/$wims_class/doc/.docindex\ |
68 | $sdoc\ |
||
69 | \ |
||
70 | $docu |
||
71 | !distribute lines $docu into dir,param,title,desc,status,wksheet,autosheet |
||
72 | nbsheet=$[$nbsheet+1] |
||
73 | job=prop |