Subversion Repositories wimsdev

Rev

Rev 7802 | Rev 11139 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4223 bpr 1
classdir_1=$wims_read_parm
2
teacherlist=!record 0 of $classdir_1/.teacherlist
23 reyssat 3
teachercnt=!linecnt $teacherlist
4
 
5
!if $teachercnt<=0
6
 !exit
7
!endif
8
 
7802 bpr 9
tcsv=login,lastname,firstname,password,email,supervisable,supervise,participate\
23 reyssat 10
 
11
!for i=1 to $teachercnt
12
 l=!line $i of $teacherlist
13
 !distribute items $l into ln,fn,li
4223 bpr 14
 pw=!defof user_password in $classdir_1/.users/$li
23 reyssat 15
 pw=!word 1 of $pw
4223 bpr 16
 em=!defof user_email in $classdir_1/.users/$li
7802 bpr 17
 ep=!defof user_participate in $classdir_1/.users/$li
18
 es=!defof user_supervise in $classdir_1/.users/$lis
19
 
23 reyssat 20
 tcsv=$tcsv\
7802 bpr 21
"$li","$ln","$fn","$pw","$em","yes",$es,$ep
23 reyssat 22
!next i
23
 
24
!writefile getfile/teachers.csv $tcsv
25
ttsv=!translate , to $	$ in $tcsv
26
!writefile getfile/teachers.tsv $ttsv