Rev 23 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | |
2 | teacherlist=!record 0 of $classdir1/.teacherlist |
||
3 | teachercnt=!linecnt $teacherlist |
||
4 | |||
5 | !if $teachercnt<=0 |
||
6 | !exit |
||
7 | !endif |
||
8 | |||
9 | tcsv=login,lastname,firstname,password,email,supervisable\ |
||
10 | |||
11 | !for i=1 to $teachercnt |
||
12 | l=!line $i of $teacherlist |
||
13 | !distribute items $l into ln,fn,li |
||
14 | pw=!defof user_password in $classdir1/.users/$li |
||
15 | pw=!word 1 of $pw |
||
16 | em=!defof user_email in $classdir1/.users/$li |
||
17 | tcsv=$tcsv\ |
||
18 | "$li","$ln","$fn","$pw","$em","yes" |
||
19 | !next i |
||
20 | |||
21 | !writefile getfile/teachers.csv $tcsv |
||
22 | ttsv=!translate , to $ $ in $tcsv |
||
23 | !writefile getfile/teachers.tsv $ttsv |