Rev 17420 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 17420 | Rev 17423 | ||
---|---|---|---|
Line 11... | Line 11... | ||
11 | 11 | ||
12 | !! ---- calculate list of score only work for exam in course mode |
12 | !! ---- calculate list of score only work for exam in course mode |
13 | wims_pses=!translate _ to , in $wims_session |
13 | wims_pses=!translate _ to , in $wims_session |
14 | t_=!replace internal exam by $empty in $(wims_pses[2]) |
14 | t_=!replace internal exam by $empty in $(wims_pses[2]) |
15 | t_=!replace internal t by , in $t_ |
15 | t_=!replace internal t by , in $t_ |
16 | !distribute item $t_ into |
16 | !distribute item $t_ into bl,exam_,exo_ |
17 | pos_=!positionof item $exo_ in $(wims_exrandomlist[1;]) |
17 | pos_=!positionof item $exo_ in $(wims_exrandomlist[1;]) |
18 | !if $pos_>1 |
18 | !if $pos_>1 |
19 | progressbar_=!values 10 for v=1 to $[$pos_-1] |
19 | progressbar_=!values 10 for v=1 to $[$pos_-1] |
20 | !else |
20 | !else |
21 | !reset progressbar_ |
21 | !reset progressbar_ |
Line 25... | Line 25... | ||
25 | progressbar_=!append item $sco_ to $progressbar_ |
25 | progressbar_=!append item $sco_ to $progressbar_ |
26 | tmp_=!itemcnt $(wims_exrandomlist[1;]) |
26 | tmp_=!itemcnt $(wims_exrandomlist[1;]) |
27 | !if $pos_<$tmp_ |
27 | !if $pos_<$tmp_ |
28 | tmp_=!values -1 for v=$[$pos_+1] to $tmp_ |
28 | tmp_=!values -1 for v=$[$pos_+1] to $tmp_ |
29 | progressbar_=!append item $tmp_ to $progressbar_ |
29 | progressbar_=!append item $tmp_ to $progressbar_ |
- | 30 | wims_examnextexo=$(wims_exrandomlist[1;$pos_+1]) |
|
- | 31 | !else |
|
- | 32 | !reset wims_examnextexo |
|
30 | !endif |
33 | !endif |
31 | 34 | ||
32 | :html |
35 | :html |
33 | wims_progressbar=<div class="inline wims_score_bar"> |
36 | wims_progressbar=<div class="inline wims_score_bar"> |
34 | !for i_ in $progressbar_ |
37 | !for i_ in $progressbar_ |
Line 41... | Line 44... | ||
41 | wims_progressbar=$wims_progressbar <div class="inline wims_seed_item" style="background-color:red" title="$i_"></div> |
44 | wims_progressbar=$wims_progressbar <div class="inline wims_seed_item" style="background-color:red" title="$i_"></div> |
42 | !endif |
45 | !endif |
43 | !endif |
46 | !endif |
44 | !next i_ |
47 | !next i_ |
45 | wims_progressbar=$wims_progressbar </div> |
48 | wims_progressbar=$wims_progressbar </div> |
46 | !!debug $wims_progressbar |
- |