Rev 16647 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 16647 | Rev 16711 | ||
|---|---|---|---|
| Line 2... | Line 2... | ||
| 2 | !if $module=home or adm/ isin $module |
2 | !if $module=home or adm/ isin $module |
| 3 | !exit |
3 | !exit |
| 4 | !endif |
4 | !endif |
| 5 | !let freework_t=$wims_read_parm |
5 | !let freework_t=$wims_read_parm |
| 6 | !bound freework_t within head,tail default head |
6 | !bound freework_t within head,tail default head |
| - | 7 | !set absscore=$[abs($wims_fwminscore)] |
|
| - | 8 | ||
| 7 | !goto $freework_t |
9 | !goto $freework_t |
| 8 | 10 | ||
| 9 | :head |
11 | :head |
| 10 | !if $wims_fwnumber>0 |
12 | !if $wims_fwnumber>0 |
| 11 | <!-- _widgets/freeworkmanage.phtml head--> |
13 | <!-- _widgets/freeworkmanage.phtml head--> |
| 12 | <div class="wims_msg info"> |
14 | <div class="wims_msg info"> |
| 13 | <h1 class="oeftitle">$wims_name_Freework $(wims_fwnumber) - $wims_name_Exercise $(wims_fwexo)</h1> |
15 | <h1 class="oeftitle">$wims_name_Freework $(wims_fwnumber) - $wims_name_Exercise $(wims_fwexo)</h1> |
| 14 | !if _check notin $wims_session |
16 | !if _check notin $wims_session |
| 15 | !if $module_score!=$empty |
17 | !if $module_score!=$empty |
| 16 | !if $module_score>= |
18 | !if $module_score>=$absscore |
| - | 19 | !if $wims_fwminscore>0 |
|
| - | 20 | !! in case of manuel selection of exercise |
|
| 17 |
|
21 | !line 3 of $wims_name_freework_intro |
| 18 | <ul> |
22 | <ul> |
| 19 | <li> |
23 | <li> |
| 20 | !set wims_ref_class=wims_button |
24 | !set wims_ref_class=wims_button |
| 21 | !href module=adm/class/freework&freework=$(wims_fwnumber)&job=exolog&exolog=$(wims_fwexo) $wims_name_freework_selexo |
25 | !href module=adm/class/freework&freework=$(wims_fwnumber)&job=exolog&exolog=$(wims_fwexo) $wims_name_freework_selexo |
| 22 | |
26 | !line 4 of $wims_name_freework_intro |
| 23 | </li> |
27 | </li> |
| 24 | <li> |
28 | <li> |
| 25 | !set wims_ref_class=wims_button |
29 | !set wims_ref_class=wims_button |
| 26 | !href module=adm/class/freework&+job=directexo&+freework=$(wims_fwnumber)&+exonum=$(wims_fwexo) $wims_name_renew |
30 | !href module=adm/class/freework&+job=directexo&+freework=$(wims_fwnumber)&+exonum=$(wims_fwexo) $wims_name_renew |
| 27 | |
31 | !line 5 of $wims_name_freework_intro |
| 28 | </li> |
32 | </li> |
| 29 | </ul> |
33 | </ul> |
| - | 34 | !else |
|
| - | 35 | !! in case of automatic selection of exercise |
|
| - | 36 | !line 1 of $wims_name_freework_intro |
|
| - | 37 | !set wims_ref_class=wims_button |
|
| - | 38 | !href module=adm/class/freework&+freework=$(wims_fwnumber) $wims_name_bc2fw |
|
| - | 39 | !endif |
|
| 30 | !else |
40 | !else |
| 31 | |
41 | !line 6 of $wims_name_freework_intro |
| 32 | !endif |
42 | !endif |
| 33 | !else |
43 | !else |
| 34 | |
44 | !line 2 of $wims_name_freework_intro |
| 35 | !endif |
45 | !endif |
| 36 | !endif |
46 | !endif |
| 37 | </div> |
47 | </div> |
| 38 | <!-- end _widgets/freeworkmanage.phtml head --> |
48 | <!-- end _widgets/freeworkmanage.phtml head --> |
| 39 | !endif |
49 | !endif |
| 40 | !exit |
50 | !exit |
| 41 | 51 | ||
| 42 | :tail |
52 | :tail |
| 43 | !if $wims_class!=$empty and $wims_user!=supervisor and $wims_user!=$empty and |
53 | !if $wims_class!=$empty and $wims_user!=supervisor and $wims_user!=$empty and $wims_fwnumber>0 and $module_score!=$empty and _check notin $wims_session |
| 44 | <!-- _widgets/freeworkmanage.phtml tail--> |
54 | <!-- _widgets/freeworkmanage.phtml tail--> |
| 45 | !let t=!positionof item $(wims_fwexo) in $wims_fwlistexo |
55 | !let t=!positionof item $(wims_fwexo) in $wims_fwlistexo |
| 46 | !let nb=!itemcnt $wims_fwlistexo |
56 | !let nb=!itemcnt $wims_fwlistexo |
| 47 | !if $t>1 |
57 | !if $t>1 |
| 48 | !set wims_ref_class=wims_button |
58 | !set wims_ref_class=wims_button |