Subversion Repositories wimsdev

Rev

Rev 17423 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !! this script make
  2. !! previous/ next exercise bouton in sheet
  3. !! next exercise in exam (only in course mode)
  4.  
  5.  
  6. !if ($wims_sheet>0 or P isin $wims_sheet) and $cmd=reply and $module_score!=$empty \
  7.   and $wims_listexo!=$empty
  8.   <div id="wims_nextinsheet">
  9.     !if $(wims_listexo[1])!=swork
  10.       !let p=!positionof item $wims_exo in $wims_listexo
  11.       !if $wims_exo!=$(wims_listexo[1])
  12.         !set wims_ref_class=wims_button
  13.         !href module=home&directworksheet=$wims_sheet.$(wims_listexo[$p-1]) $wims_name_previousseries
  14.       !endif
  15.       !if $wims_exo!=$(wims_listexo[-1])
  16.         !set wims_ref_class=wims_button
  17.         !href module=home&directworksheet=$wims_sheet.$($wims_listexo[$p+1]) $wims_name_nextseries
  18.       !endif
  19.     !else
  20.       !let p=!positionof item $wims_sheet.$wims_exo in $wims_listexo
  21.       !if $wims_sheet.$wims_exo!=$(wims_listexo[2])
  22.         !set wims_ref_class=wims_button
  23.         !href module=home&directworksheet=$(wims_listexo[$p-1]) $wims_name_previousseries
  24.       !endif
  25.       !if $wims_sheet.$wims_exo!=$(wims_listexo[-1])
  26.         !set wims_ref_class=wims_button
  27.         !href module=home&directworksheet=$($wims_listexo[$p+1]) $wims_name_nextseries
  28.       !endif
  29.     !endif
  30.   </div>
  31. !endif
  32.  
  33. !if _exam isin $wims_session and $wims_examnextexo!=$empty and $cmd=reply
  34.   <div id="wims_nextinexam">
  35.     !! wims_pses and wims_pser defined in file html/headmenu_user.phtml
  36.     !! wims_examnextexo defined in scripts/examprogressbar.proc
  37.     <a href="#" onclick="window.opener.location='$wims_ref_name?session=$(wims_pses[1])&+cmd=reply&+job=student&+randomizer=$wims_pser&+directexo=$wims_examnextexo';" class="wims_button">$wims_name_nextseries</a>
  38.   </div>
  39. !endif
  40.