Rev 14537 | Rev 14758 | 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 |
||
25 | |||
26 | !set appletnum=0 |
||
27 | |||
28 | !! ------- preparing date format |
||
29 | d1=!text select char 0123456789 in $(deadline)$(timedeadline) |
||
30 | d2=!text select char 0123456789 in $(soldate)$(timesoldate) |
||
31 | now=!text select char 0123456789 in $wims_now |
||
32 | now=!char 1 to 12 of $now |
||
33 | !readproc adm/date.phtml $(deadline) |
||
34 | tmp=!replace internal : by H in $timedeadline |
||
35 | !let date1=$l_date_out $wims_name_at $tmp |
||
36 | !readproc adm/date.phtml $(soldate) |
||
37 | tmp=!replace internal : by H in $timesoldate |
||
38 | !let date2=$l_date_out $wims_name_at $tmp |
||
39 | !readproc adm/class/userdef ,$wims_class,$userv |
||
40 | tmp=!defof user_firstname,user_lastname in $userdef |
||
41 | !distribute item $tmp into lastname,firstname |
||
42 | remark=!record 0 of wimshome/log/classes/$wims_class/freeworksdata/$freework/co/$userv |
||
43 | remark=!replace internal : by : in $remark |
||
44 | !set wims_menu_items=!append line back2,1,module=$module&cmd=new&job=configfw&freework=$freework to $wims_menu_items |