Rev 12617 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | |
2 | parent=level |
||
3 | !if $cancel!=$empty or $level=$empty |
||
12617 | bpr | 4 | !reset title,sup,passs,pass |
5 | job=level |
||
6 | !changeto jobs/$job.proc |
||
23 | reyssat | 7 | !endif |
8 | |||
9 | !readdef $classdir1/$level/.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/$level/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 | |||
24 | !bound progstyle1 within mandatory,optional default mandatory |
||
6702 | bpr | 25 | !bound progstyle2 within all,select default select |
23 | reyssat | 26 | |
17099 | guerimand | 27 | !read adm/gateway/mkindex |
23 | reyssat | 28 | !read adm/gateway/addprog $sup,$title |
29 | |||
30 | !if $error!=$empty |
||
12617 | bpr | 31 | !exit |
23 | reyssat | 32 | !endif |
33 | |||
34 | !read adm/gateway/mkindex |
||
35 | !reset title,sup,passs,alevel,confirm |
||
36 | job=level |
||
37 | !changeto jobs/$job.proc |