Rev 16711 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
16087 | guerimand | 1 | !! manage of navigation message for freework |
16647 | guerimand | 2 | !if $module=home or adm/ isin $module |
3 | !exit |
||
4 | !endif |
||
16087 | guerimand | 5 | !let freework_t=$wims_read_parm |
16647 | guerimand | 6 | !bound freework_t within head,tail default head |
16711 | guerimand | 7 | !set absscore=$[abs($wims_fwminscore)] |
8 | |||
16087 | guerimand | 9 | !goto $freework_t |
10 | |||
11 | :head |
||
16647 | guerimand | 12 | !if $wims_fwnumber>0 |
16444 | guerimand | 13 | <!-- _widgets/freeworkmanage.phtml head--> |
16087 | guerimand | 14 | <div class="wims_msg info"> |
16647 | guerimand | 15 | <h1 class="oeftitle">$wims_name_Freework $(wims_fwnumber) - $wims_name_Exercise $(wims_fwexo)</h1> |
16087 | guerimand | 16 | !if _check notin $wims_session |
16711 | guerimand | 17 | !if $module_score!=$empty |
18 | !if $module_score>=$absscore |
||
19 | !if $wims_fwminscore>0 |
||
20 | !! in case of manuel selection of exercise |
||
21 | !line 3 of $wims_name_freework_intro |
||
22 | <ul> |
||
23 | <li> |
||
24 | !line 4 of $wims_name_freework_intro |
||
25 | </li> |
||
26 | <li> |
||
27 | !line 5 of $wims_name_freework_intro |
||
28 | </li> |
||
29 | </ul> |
||
16744 | guerimand | 30 | <div class="wimscenter"> |
31 | !set wims_ref_class=wims_button |
||
32 | !href module=adm/class/freework&freework=$(wims_fwnumber)&job=exolog&exolog=$(wims_fwexo) $wims_name_freework_selexo |
||
33 | |
||
34 | !set wims_ref_class=wims_button |
||
35 | !href module=adm/class/freework&+job=directexo&+freework=$(wims_fwnumber)&+exonum=$(wims_fwexo) $wims_name_exorenew |
||
36 | </div> |
||
16711 | guerimand | 37 | !else |
38 | !! in case of automatic selection of exercise |
||
39 | !line 1 of $wims_name_freework_intro |
||
40 | !set wims_ref_class=wims_button |
||
41 | !href module=adm/class/freework&+freework=$(wims_fwnumber) $wims_name_bc2fw |
||
42 | !endif |
||
16087 | guerimand | 43 | !else |
16711 | guerimand | 44 | !line 6 of $wims_name_freework_intro |
16087 | guerimand | 45 | !endif |
46 | !else |
||
16711 | guerimand | 47 | !line 2 of $wims_name_freework_intro |
16087 | guerimand | 48 | !endif |
49 | !endif |
||
50 | </div> |
||
16444 | guerimand | 51 | <!-- end _widgets/freeworkmanage.phtml head --> |
16087 | guerimand | 52 | !endif |
53 | !exit |
||
54 | |||
55 | :tail |
||
16711 | guerimand | 56 | !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 |
16087 | guerimand | 57 | <!-- _widgets/freeworkmanage.phtml tail--> |
16647 | guerimand | 58 | !let t=!positionof item $(wims_fwexo) in $wims_fwlistexo |
16087 | guerimand | 59 | !let nb=!itemcnt $wims_fwlistexo |
60 | !if $t>1 |
||
61 | !set wims_ref_class=wims_button |
||
16647 | guerimand | 62 | !href module=adm/class/freework&job=directexo&freework=$(wims_fwnumber)&exonum=$(wims_fwlistexo[$t-1]) $wims_name_previousseries |
16087 | guerimand | 63 | !endif |
64 | !if $t<$nb |
||
65 | !set wims_ref_class=wims_button |
||
16647 | guerimand | 66 | !href module=adm/class/freework&job=directexo&freework=$(wims_fwnumber)&exonum=$(wims_fwlistexo[$t+1]) $wims_name_nextseries |
16087 | guerimand | 67 | !endif |
68 | <!-- end _widgets/freeworkmanage.phtml tail --> |
||
69 | !endif |
||
70 | !exit |