Subversion Repositories wimsdev

Rev

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