Subversion Repositories wimsdev

Rev

Rev 11147 | 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
12555 bpr 12
  l=!line $i of $teacherlist
13
  !distribute items $l into ln,fn,li
14
  pw=!defof user_password in $classdir_1/.users/$li
15
  pw=!word 1 of $pw
16
  em=!defof user_email in $classdir_1/.users/$li
17
  ep=!defof user_participate in $classdir_1/.users/$li
18
  es=!defof user_supervise in $classdir_1/.users/$li
19
  es=!items2words $es
20
  tcsv=$tcsv\
11139 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