Rev 12617 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | |
2 | parent=prog |
||
3 | !if $cancel!=$empty or $prog=$empty |
||
12617 | bpr | 4 | !reset title,sup,passs,pass |
5 | job=prog |
||
6 | !changeto jobs/$job.proc |
||
23 | reyssat | 7 | !endif |
8 | |||
9 | !readdef $classdir1/$prog/.def |
||
10 | alevel=$class_level |
||
11 | !if $confirm=$empty |
||
12617 | bpr | 12 | pass=!defof class_password in $classdir1/$level/.def |
13 | passs=!defof user_password in $classdir1/$prog/supervisor |
||
14 | !read adm/levelname.phtml |
||
15 | !exit |
||
23 | reyssat | 16 | !endif |
17 | |||
18 | title=!trim $title |
||
19 | !if $title=$empty |
||
12617 | bpr | 20 | error=empty_data |
21 | !exit |
||
23 | reyssat | 22 | !endif |
23 | |||
17099 | guerimand | 24 | !read adm/gateway/mkindex |
23 | reyssat | 25 | !read adm/gateway/addicourse $sup,$title |
26 | |||
27 | !if $error!=$empty |
||
12617 | bpr | 28 | !exit |
23 | reyssat | 29 | !endif |
30 | |||
31 | !read adm/gateway/mkindex |
||
32 | !reset title,sup,passs,alevel,confirm |
||
33 | job=prog |
||
34 | !changeto jobs/$job.proc |