Subversion Repositories wimsdev

Rev

Rev 11296 | Rev 12213 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !if _check isin $session
  2.  !exit
  3. !endif
  4.  
  5. !read name.phtml.$module_language
  6. !read themes/_lang/name.phtml.$lang
  7. !read themes/$wims_theme/lang/name.phtml.$lang
  8. !default wims_homeref_bgcolor=$wims_ref_bgcolor
  9. !read themes/$wims_theme/local.phtml
  10.  
  11. !if exam isin $wims_session
  12.   !read examclock.proc
  13.   !goto rmend
  14. !endif
  15.  
  16. !if $wims_rm_1=no
  17.  !reset wims_rm_1
  18.  !goto local
  19. !endif
  20. !if $wims_rm_1!=$empty
  21.  !goto rm2
  22. !endif
  23. !reset 1_
  24.  
  25. !if _ isin $wims_subsession
  26.  !!set 1_=!append line back2,3,window.close() to $1_
  27. !else
  28.  !!set 1_=!append line class_home,1,session=$wims_session.1 to $1_
  29. !endif
  30.  
  31. !!!if $wims_sheet>0 or P isin $wims_sheet or $wims_sequence>0
  32. !! !if $wims_sequence>0 and $wims_sheet=$empty
  33. !!  !set tmp_=sequence,1,module=home&seq=$wims_sequence
  34. !! !else
  35. !!  !!set tmp_=sheet,1,module=adm/sheet&sh=$wims_sheet&
  36. !! !endif
  37. !!   !let wims_menu_items=!append line $tmp_ to $wims_menu_items
  38. !!!endif
  39. !if ($wims_sheet>0 or P isin $wims_sheet) and $cmd=reply and $module_score!=$empty
  40.  !if $wims_exo>1
  41.   !let wims_menu_items=!append line previousseries,1,module=home&directworksheet=$wims_sheet.$[$wims_exo-1] to $wims_menu_items
  42.  !endif
  43.  !if $wims_exo<$wims_sheetmax
  44.   !let wims_menu_items=!append line nextseries,1,module=home&directworksheet=$wims_sheet.$[$wims_exo+1] to $wims_menu_items
  45.  !endif
  46. !endif
  47.  
  48. !if $wims_sheet!=$empty or _exam isin $wims_session
  49.   !set wims_menu_items=!append line tools,4,module=home,tool to $wims_menu_items
  50. !endif
  51.  
  52. !if $wims_sheet>0 or P isin $wims_sheet
  53.  !if $(wims_exofeedback[$wims_exo;])!=$empty
  54.   !set feedexo=$(wims_exofeedback[$wims_exo;])
  55.   !if $module_score!=$empty and $module_score < $(feedexo[2]) and $module_score >= $(feedexo[3])
  56.     !if $(feedexo[3])=0 or $(feedexo[3])=$empty
  57.       !set 5_=!append line feedbackexo,7,$(feedexo[1]),mfeed to $5_
  58.     !else
  59.       !set 5_=!append line feedbackplus,7,$(feedexo[1]),mfeed to $5_
  60.     !endif
  61.   !endif
  62.  !endif
  63. !endif
  64. !if $cmd=help or $cmd=hint
  65.  !!set 1_=!append line resume,1,cmd=resume to $1_
  66. !endif
  67.  
  68. !if $module_has_intro=yes and $cmd notwordof intro help and\
  69.         $wims_sheet=$empty and exam notin $wims_session and mfeed notin $wims_session
  70.  !!set 1_=!append line intro,1,module=$module&cmd=intro&special_parm=$special_parm&special_parm2=$special_parm2&special_parm3=$special_parm3 to $1_
  71. !endif
  72. !if $module_has_help=yes and $cmd notwordof intro help
  73.  !if $module_help=$empty or $module_help=popup
  74.   !!set 1_=!append line help,4,module=$module&cmd=help&special_parm=$wims_help_parm,mhelp to $1_
  75.  !else
  76.   !!set 1_=!append line help,1,module=$module&cmd=help&special_parm=$wims_help_parm to $1_
  77.  !endif
  78. !endif
  79.  
  80. !!********* Link : "About"
  81. !if $module_has_about=yes and $cmd notwordof help intro and ($wims_user=supervisor or $wims_user=$empty)
  82.    !!set 1_=!append line about,4,module=$module&cmd=help&special_parm=about,mhelp to $1_
  83. !endif
  84.  
  85. !if print isin $job,$job2 or $print!=
  86.   !set 1_=!append line print,3,window.print() to $1_
  87. !endif
  88. !set wims_rm_1=$1_
  89.  
  90. :local
  91. !reset 1_
  92. !! add module links to general links with a separation
  93. !if $wims_menu_items!=$empty
  94.   !set 1_=!append line itemsep,0,\
  95. $wims_menu_items to $1_
  96. !endif
  97. !set wims_rm_0=$1_
  98. !set wims_rm_3=!append line $wims_menu_tabs to $wims_rm_3
  99. :rm2
  100. !if $wims_rm_2!=$empty
  101.  !goto rmend
  102. !endif
  103.  
  104. !set 3_=!mailurl $wims_supervisormail $wims_name_wsup\
  105. $module_title
  106. !set 2_=you,0,$wims_name_you\
  107.  class,0,$wims_classname ($wims_institutionname)\
  108.  wsup,0,$3_
  109. !reset 4_
  110. !if $wims_sheet>0
  111.  !set wims_homeref_scorestat=!getscorestatus sheet=$wims_sheet
  112.  !if $wims_homeref_scorestat=yes and $wims_exodep!=pending
  113.   !if $wims_scorereg!=suspend
  114.    !set wims_homeref_req=!getscorerequire sheet=$wims_sheet work=$wims_exo
  115.    !set wims_homeref_mean=!getscoremean sheet=$wims_sheet work=$wims_exo
  116.    !set wims_homeref_last=!getscorelast sheet=$wims_sheet work=$wims_exo
  117.    !reset wims_name_score
  118.    !if $(wims_severity[2])!=1 or $(wims_severity[2])=$empty or $wims_homeref_mean<=2
  119.      !set wims_name_score=$(wims_name_thsheet[7]): $[ceil(100*$[$wims_homeref_mean])/100]/10
  120.    !endif
  121.    !if $(wims_severity[3])=2
  122.      !set wims_homeref_level=!getscorelevel sheet=$wims_sheet work=$wims_exo
  123.      !set wims_name_score=$wims_name_score<br />$(wims_name_thsheet[13]): $wims_homeref_level/10
  124.      !! I1
  125.    !else
  126.      !if $(wims_severity[3])=1
  127.        !set wims_homeref_best=!getscorebest sheet=$wims_sheet work=$wims_exo
  128.        !set wims_name_score=$wims_name_score<br />$(wims_name_thsheet[10]): $[ceil(100*$wims_homeref_best/$wims_homeref_req)] %
  129.        !!I2
  130.      !else
  131.        !set wims_homeref_got=!getscore sheet=$wims_sheet work=$wims_exo
  132.        !set wims_name_score=$wims_name_score<br />$(wims_name_thsheet[5]): $[ceil(100*$wims_homeref_got/$wims_homeref_req)]%
  133.        !!I0
  134.  
  135.      !endif
  136.    !endif
  137.    !set 4_=!append line score,0,$wims_name_score to $4_
  138.    !if $wims_authscoresuspend!=no
  139.     !!set wims_rm_0=!append line scoreclose2,1,module=adm/sheet&sh=$wims_sheet&exo=$wims_exo&job=suspend to $wims_rm_0
  140.    !endif
  141.   !else
  142.    !set 4_=!append line score,0,$wims_name_scoresuspend to $4_
  143.    !if $wims_authscoresuspend!=no
  144.     !!set wims_rm_0=!append line scorereopen,1,module=adm/sheet&sh=$wims_sheet&exo=$wims_exo&job=reopen to $wims_rm_0
  145.    !endif
  146.   !endif
  147.  !else
  148.   !set 4_=!append line score,0,$wims_name_scoreclose to $4_
  149.  !endif
  150.  !if $module_score!=$empty and $wims_class_exolog>0 and E notin $wims_sheet
  151.   !set wims_rm_0=!append line exolog,1,module=adm/class/exolog&cmd=new&job=log&logsheet=$wims_sheet&logexo=$wims_exo to $wims_rm_0
  152.  !endif
  153. !endif
  154.  
  155.  
  156. !set wims_rm_2=$2_
  157. !set wims_rm_4=$4_
  158. !set wims_rm_5=$5_
  159.  
  160. :rmend
  161. !set wims_homeref_n1=!linecnt $wims_rm_1
  162. !set wims_homeref_n2=!linecnt $wims_rm_2
  163. !set wims_homeref_n0=!linecnt $wims_rm_0
  164. !!nothing inside
  165. !set wims_homeref_n3=!linecnt $wims_rm_3
  166. !! about activation and score
  167. !set wims_homeref_n4=!linecnt $wims_rm_4
  168. !! about feedback
  169. !set wims_homeref_n5=!linecnt $wims_rm_5
  170. !set wims_homeref_local_n0=!linecnt $wims_local_menu_items
  171. !!</div><!--div dans homeref_user-->
  172. !read themes.phtml tail
  173. !robottrap
  174.