!! manage of navigation message for freework
!let freework_t=$wims_read_parm
!bound freework_t within head,tail,proc default head
!goto $freework_t
:proc
!let t=$
!let tmp=!replace internal & by $t in $module_init_parm
!let wims_freework
=!getopt wims_freework in
$tmp
!! !let wims_freework=!replace internal . by , in $wims_freework
:head
!if $(wims_freework[1])>0
<!-- _widgets/freeworkmanage.phtml tail-->
<div class="wims_msg info">
<h1 class="oeftitle">$wims_name_Freework $(wims_freework[1]) - $wims_name_Exercise $(wims_freework[2])</h1>
!! $wims_name_freework_intro1
!if _check notin $wims_session
!if $module_score!=$empty
!if $module_score=10
$wims_name_freework_intro3:
<ul>
<li>
!set wims_ref_class=wims_button
!href module=adm/class/freework&freework=$(wims_freework[1])&job=exolog&exolog=$(wims_freework[2]) Sélectionner l'exercice
$wims_name_freework_intro4
</li>
<li>
!set wims_ref_class=wims_button
!href $renewlink <span class="oef_serie_renew">$name_exo_renew</span>
$wims_name_freework_intro5
</li>
</ul>
!else
$wims_name_freework_intro6
!endif
!else
$wims_name_freework_intro2
!endif
!endif
</div>
<!-- end _widgets/freeworkmanage.phtml tail -->
!endif
!exit
:tail
!if $wims_class!=$empty and $wims_user!=supervisor and $wims_user!=$empty and $(wims_freework[1])>0 and $module_score!=$empty and _check notin $wims_session
<!-- _widgets/freeworkmanage.phtml tail-->
!let t=!positionof item $(wims_freework[2]) in $wims_fwlistexo
!let nb=!itemcnt $wims_fwlistexo
!if $t>1
!set wims_ref_class=wims_button
!href module=adm/class/freework&job=student&job2=directexo&freework=$(wims_freework[1])&exonum=$(wims_fwlistexo[$t-1]) $wims_name_previousseries
!endif
!if $t<$nb
!set wims_ref_class=wims_button
!href module=adm/class/freework&job=student&job2=directexo&freework=$(wims_freework[1])&exonum=$(wims_fwlistexo[$t+1]) $wims_name_nextseries
!endif
<!-- end _widgets/freeworkmanage.phtml tail -->
!endif
!exit