Rev 5194 | 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=gateway |
||
3 | thiscode=$level |
||
4 | !if $cancel!=$empty or $level=$empty |
||
12616 | bpr | 5 | :back |
6 | job=first |
||
7 | !changeto jobs/$job.proc |
||
23 | reyssat | 8 | !endif |
9 | |||
10 | levelhome=$classdir1/$level |
||
11 | !readdef $levelhome/.def |
||
12 | !if $class_defined!=yes |
||
12616 | bpr | 13 | !goto back |
23 | reyssat | 14 | !endif |
15 | |||
16 | !if $confirm=$empty |
||
12616 | bpr | 17 | :normal |
18 | classes=!record 0 of $levelhome/classes |
||
19 | programs=!record 0 of $levelhome/programs |
||
20 | classes=!nonempty lines $classes |
||
21 | programs=!nonempty lines $programs |
||
22 | classcnt=!linecnt $classes |
||
23 | progcnt=!linecnt $programs |
||
24 | pass=$class_password |
||
25 | passs=!defof user_password in $levelhome/supervisor |
||
26 | !read adm/levelname.phtml |
||
27 | !exit |
||
23 | reyssat | 28 | !endif |
29 | |||
30 | title=!trim $title |
||
31 | title=!replace internal , by , in $title |
||
32 | !if $title=$empty |
||
12616 | bpr | 33 | error=empty_data |
34 | !exit |
||
23 | reyssat | 35 | !endif |
36 | |||
4217 | bpr | 37 | modclass_list=description,supervisor,Supervisor,level,secure,email |
23 | reyssat | 38 | cadd_description=$title |
39 | cadd_Supervisor=$sup |
||
40 | cadd_level=$alevel |
||
41 | cadd_secure=$sechost |
||
4217 | bpr | 42 | modclass_slist=password,email |
23 | reyssat | 43 | sadd_password=$passs |
44 | |||
45 | !read adm/gateway/modclass $level |
||
46 | !reset confirm,title,sup,passs,alevel |
||
47 | !readdef $levelhome/.def |
||
48 | !read adm/gateway/mkindex |
||
49 | !goto normal |