Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
14537 guerimand 1
!! process control page for view student work and type=3
2
 
3
!if $loadwork!=1 or $userv notitemof $ulist
4
  error=badallows
5
  emptypage=yes
6
  !exit
7
!endif
8
 
9
!! ---- read structure of the freework
10
!distribute item 0,0 into nbrezoneteacher,nbrezonestudent
11
nb=!recordcnt wimshome/log/classes/$wims_class/freeworks/.freework$freework
12
!for k=1 to $nb
13
  dt=!record $k of wimshome/log/classes/$wims_class/freeworks/.freework$freework
14
  l=!line 1 of $dt
15
  !distribute word $l into t,u
16
  !bound u within teacher,student default teacher
17
  !bound t within correction,$listfilename_ztype default $(listfilename_ztype[1])
18
  !if $t!=correction
19
    !increase nbrezone$u
20
    ztype$(u)$(nbrezone$u)=$t
21
    script_data=!line 2 to -1 of $dt
22
    !readproc applet/$t pararead $u $(nbrezone$u)
23
  !endif
24
!next k
14758 guerimand 25
!if $putiworkco=1
26
  iedit_activated=1
27
!endif
14537 guerimand 28
 
14758 guerimand 29
 
14537 guerimand 30
!set appletnum=0
31
 
32
!! ------- preparing date format
33
d1=!text select char 0123456789 in $(deadline)$(timedeadline)
34
d2=!text select char 0123456789 in $(soldate)$(timesoldate)
35
now=!text select char 0123456789 in $wims_now
36
now=!char 1 to 12 of $now
37
!readproc adm/date.phtml $(deadline)
38
tmp=!replace internal : by H in $timedeadline
39
!let date1=$l_date_out $wims_name_at $tmp
40
!readproc adm/date.phtml $(soldate)
41
tmp=!replace internal : by H in $timesoldate
42
!let date2=$l_date_out $wims_name_at $tmp
43
!readproc adm/class/userdef ,$wims_class,$userv
44
tmp=!defof user_firstname,user_lastname in $userdef
45
!distribute item $tmp into lastname,firstname
46
remark=!record 0 of wimshome/log/classes/$wims_class/freeworksdata/$freework/co/$userv
47
remark=!replace internal : by : in $remark
48
!set wims_menu_items=!append line back2,1,module=$module&cmd=new&job=configfw&freework=$freework to $wims_menu_items