Rev 5190 | Rev 12617 | Go to most recent revision | 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 |
||
4 | !reset title,sup,passs,pass |
||
5 | job=prog |
||
6 | !changeto jobs/$job.proc |
||
7 | !endif |
||
8 | |||
9 | !readdef $classdir1/$prog/.def |
||
10 | alevel=$class_level |
||
11 | !if $confirm=$empty |
||
12 | pass=!defof class_password in $classdir1/$level/.def |
||
13 | passs=!defof user_password in $classdir1/$prog/supervisor |
||
5194 | guerimand | 14 | !read adm/levelname.phtml |
23 | reyssat | 15 | !exit |
16 | !endif |
||
17 | |||
18 | title=!trim $title |
||
19 | !if $title=$empty |
||
20 | error=empty_data |
||
21 | !exit |
||
22 | !endif |
||
23 | |||
24 | !read adm/gateway/addicourse $sup,$title |
||
25 | |||
26 | !if $error!=$empty |
||
27 | !exit |
||
28 | !endif |
||
29 | |||
30 | !read adm/gateway/mkindex |
||
31 | !reset title,sup,passs,alevel,confirm |
||
32 | job=prog |
||
33 | !changeto jobs/$job.proc |
||
34 |