Rev 2356 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2368 | bpr | 1 | !read adm/class/classlang names.phtml |
1406 | bpr | 2 | |
8255 | bpr | 3 | !if $wims_user=supervisor |
1406 | bpr | 4 | !! !bound job within prop,show default show |
5 | !else |
||
6 | !exit |
||
7 | !endif |
||
8 | |||
9 | title_limit=50 |
||
10 | desc_limit=255 |
||
8255 | bpr | 11 | max_sheets=!defof MAX_SHEETS in wimshome/public_html/bases/sys/define.conf |
1406 | bpr | 12 | doctot=!recordcnt wimshome/log/classes/$wims_class/doc/.docindex |
13 | wims_prefix=none |
||
14 | sup=$wims_user |
||
15 | class=$wims_class |
||
16 | !if $sup!=supervisor |
||
17 | error=not_supervisor |
||
18 | !exit |
||
19 | !endif |
||
20 | !if $job=prop and $cmd iswordof new resume |
||
21 | sh=!record $doc of wimshome/log/classes/$wims_class/doc/.docindex |
||
7270 | bpr | 22 | !distribute lines $sh into dir,t_,title,desc,status,wksheet |
1406 | bpr | 23 | !endif |
24 | !if $cmd=reply and $job=proc |
||
25 | !read prop.proc |
||
26 | !exit |
||
27 | !endif |
||
28 | !if ($cmd=new or $cmd=resume) and $job!=prop |
||
29 | title=!module title $dir |
||
30 | desc=!module description $dir |
||
31 | !exit |
||
32 | !endif |
||
33 | |||
34 | !if $cmd=reply |
||
35 | !if ../adm/ isin ../$dir or $dir=home or \ |
||
36 | (../devel/ isin ../$dir and $wims_devel_modules notwordof open) |
||
37 | error=insert_fail |
||
38 | !exit |
||
39 | !endif |
||
40 | |||
41 | idesc=!singlespace $desc |
||
42 | idesc=!char 1 to $desc_limit of $idesc |
||
43 | ititle=!singlespace $title |
||
44 | ititle=!char 1 to $title_limit of $ititle |
||
45 | !if $cmd=reply and $job!=prop |
||
46 | !for i=1 to $doctot |
||
47 | e=!record $i of wimshome/log/classes/$wims_class/doc/.docindex |
||
48 | !distribute lines $e into wdi,win |
||
49 | !if $dir=$wdi and $iniparm=$win |
||
50 | test=$i |
||
51 | error=already_exist |
||
52 | !exit |
||
53 | !endif |
||
54 | !next i |
||
55 | !endif |
||
56 | |||
57 | !if $cmd=reply and $job=prop |
||
58 | !read prop.proc |
||
59 | !exit |
||
60 | !endif |
||
61 | |||
62 | !appendfile wimshome/log/classes/$wims_class/doc/.docindex :$dir\ |
||
63 | $iniparm\ |
||
64 | $ititle\ |
||
65 | $idesc\ |
||
7270 | bpr | 66 | $status\ |
67 | $wksheet |
||
1406 | bpr | 68 | |
69 | wims_module_log=class $class: add $dir |
||
70 | |||
71 | !restart |
||
72 |