Subversion Repositories wimsdev

Rev

Rev 4801 | Rev 6606 | 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. !default wims_homeref_bgcolor=$wims_ref_bgcolor
  7. !read themes/$wims_theme/local.phtml
  8.  
  9. !if exam isin $wims_session
  10.  !set wims_hr_r=$[max(0,$wims_exam_remain)]
  11.  !set wims_hr_rm=$[floor($wims_hr_r/60)]
  12.  !set wims_hr_rs=!char 2,3 of $[$wims_hr_r%60+100]
  13.  !set wims_homeref_special=$wims_name_examremain $wims_hr_rm:$wims_hr_rs ($wims_name_whenloaded)
  14.  !goto rmend
  15. !endif
  16.  
  17. !if $wims_rm_1=no
  18.  !reset wims_rm_1
  19.  !goto local
  20. !endif
  21. !if $wims_rm_1!=$empty
  22.  !goto rm2
  23. !endif
  24. !reset 1_
  25.  
  26. !if _ isin $wims_subsession
  27.  !set 1_=!append line back2,3,window.close() to $1_
  28. !else
  29.  !set 1_=!append line class_home,1,session=$wims_session.1 to $1_
  30. !endif
  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
  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>0 or P isin $wims_sheet
  49.  !if $(wims_exofeedback[$wims_exo;])!=$empty
  50.   !set feedexo=$(wims_exofeedback[$wims_exo;])
  51.   !if $module_score!=$empty and $module_score < $(feedexo[2])
  52.    !set 5_=!append line feedbackexo,7,$(feedexo[1]),mfeed to $5_
  53.   !endif
  54.  !endif
  55. !endif
  56. !if $cmd=help or $cmd=hint
  57.  !set 1_=!append line resume,1,cmd=resume to $1_
  58. !endif
  59.  
  60. !if $module_has_intro=yes and $cmd notwordof intro help and\
  61.         $wims_sheet=$empty and exam notin $wims_session and mfeed notin $wims_session
  62.  !set 1_=!append line intro,1,module=$module&cmd=intro&special_parm=$special_parm&special_parm2=$special_parm2&special_parm3=$special_parm3 to $1_
  63. !endif
  64. !if $module_has_help=yes and $cmd notwordof intro help
  65.  !if $module_help=$empty or $module_help=popup
  66.   !set 1_=!append line help,4,module=$module&cmd=help&special_parm=$wims_help_parm,mhelp to $1_
  67.  !else
  68.   !set 1_=!append line help,1,module=$module&cmd=help&special_parm=$wims_help_parm to $1_
  69.  !endif
  70. !endif
  71. !if $module_has_about=yes and $cmd notwordof help intro and ($wims_user=supervisor or $wims_user=$empty)
  72.  !set 1_=!append line about,4,module=$module&cmd=help&special_parm=about,mhelp to $1_
  73. !endif
  74. !if print isin $job,$job2 or $print!=
  75.   !set 1_=!append line print,3,window.print() to $1_
  76. !endif
  77. !set wims_rm_1=$1_
  78.  
  79. :local
  80. !reset 1_
  81. !set 1_=!append line $wims_menu_items to $1_
  82. !set wims_rm_0=$1_
  83. !set wims_rm_3=!append line $wims_menu_tabs to $wims_rm_3
  84. :rm2
  85. !if $wims_rm_2!=$empty
  86.  !goto rmend
  87. !endif
  88.  
  89. !set 3_=!mailurl $wims_supervisormail $wims_name_wsup\
  90. $module_title
  91. !set 2_=you,0,$wims_name_you\
  92.  class,0,$wims_classname ($wims_institutionname)\
  93.  wsup,0,$3_
  94. !reset 4_
  95. !if $wims_sheet>0
  96.  !set wims_homeref_scorestat=!getscorestatus sheet=$wims_sheet
  97.  !if $wims_homeref_scorestat=yes and $wims_exodep!=pending
  98.   !if $wims_scorereg!=suspend
  99.    !set wims_homeref_req=!getscorerequire sheet=$wims_sheet work=$wims_exo
  100.    !set wims_homeref_got=!getscore sheet=$wims_sheet work=$wims_exo
  101.    !set wims_homeref_mean=!getscoremean sheet=$wims_sheet work=$wims_exo
  102.    !set wims_name_score=!singlespace $wims_name_score
  103.    !set 4_=!append line score,0,$wims_name_score to $4_
  104.    !if $wims_authscoresuspend!=no
  105.     !set wims_rm_0=!append line scoreclose2,1,module=adm/sheet&sh=$wims_sheet&exo=$wims_exo&job=suspend to $wims_rm_0
  106.    !endif
  107.   !else
  108.    !set 4_=!append line score,0,$wims_name_scoresuspend to $4_
  109.    !if $wims_authscoresuspend!=no
  110.     !set wims_rm_0=!append line scorereopen,1,module=adm/sheet&sh=$wims_sheet&exo=$wims_exo&job=reopen to $wims_rm_0
  111.    !endif
  112.   !endif
  113.  !else
  114.   !set 4_=!append line score,0,$wims_name_scoreclose to $4_
  115.  !endif
  116.  !if $module_score!=$empty and $wims_class_exolog>0 and E notin $wims_sheet
  117.   !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
  118.  !endif
  119. !endif
  120.  
  121.  
  122. !set wims_rm_2=$2_
  123. !set wims_rm_4=$4_
  124. !set wims_rm_5=$5_
  125. :rmend
  126. !set wims_homeref_n1=!linecnt $wims_rm_1
  127. !set wims_homeref_n2=!linecnt $wims_rm_2
  128. !set wims_homeref_n0=!linecnt $wims_rm_0
  129. !set wims_homeref_n3=!linecnt $wims_rm_3
  130. !set wims_homeref_n4=!linecnt $wims_rm_4
  131. !set wims_homeref_n5=!linecnt $wims_rm_5
  132. !set wims_homeref_local_n0=!linecnt $wims_local_menu_items
  133. !!</div><!--div dans homeref_user-->
  134. !read themes.phtml tail
  135. !robottrap
  136.