Subversion Repositories wimsdev

Rev

Rev 1222 | Rev 1407 | 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. !if exam isin $wims_session
  8.  !set wims_hr_r=$[max(0,$wims_exam_remain)]
  9.  !set wims_hr_rm=$[floor($wims_hr_r/60)]
  10.  !set wims_hr_rs=!char 2,3 of $[$wims_hr_r%60+100]
  11.  !set wims_homeref_special=$wims_name_examremain $wims_hr_rm:$wims_hr_rs ($wims_name_whenloaded)
  12.  !goto rmend
  13. !endif
  14.  
  15. !if $wims_rm_1=no
  16.  !reset wims_rm_1
  17.  !goto local
  18. !endif
  19. !if $wims_rm_1!=$empty
  20.  !goto rm2
  21. !endif
  22. !reset 1_
  23. !if _ isin $wims_subsession
  24.  !set 1_=!append line back2,3,window.close() to $1_
  25. !else
  26.  !set 1_=!append line class_home,1,session=$wims_session.1 to $1_
  27. !endif
  28. !if $wims_sheet>0 or P isin $wims_sheet
  29.  !set 1_=!append line sheet,1,module=adm/sheet&sh=$wims_sheet to $1_
  30. !endif
  31. !if $cmd=help or $cmd=hint
  32.  !set 1_=!append line resume,1,cmd=resume to $1_
  33. !endif
  34. !if $module_has_intro=yes and $cmd notwordof intro help and\
  35.         $wims_sheet=$empty and exam notin $wims_session
  36.  !set 1_=!append line intro,1,module=$module&cmd=intro&special_parm=$wims_intro_parm to $1_
  37. !endif
  38. !if $module_has_help=yes and $cmd notwordof intro help
  39.  !if $module_help=$empty or $module_help=popup
  40.   !set 1_=!append line help,4,module=$module&cmd=help&special_parm=$wims_help_parm,mhelp to $1_
  41.  !else
  42.   !set 1_=!append line help,1,module=$module&cmd=help&special_parm=$wims_help_parm to $1_
  43.  !endif
  44. !endif
  45. !if $module_has_about=yes and $cmd notwordof help intro
  46.  !set 1_=!append line about,4,module=$module&cmd=help&special_parm=about,mhelp to $1_
  47. !endif
  48. !if print isin $job,$job2 or $print!=
  49.   !set 1_=!append line print,3,window.print() to $1_
  50. !endif
  51. !set wims_rm_1=$1_
  52. :local
  53. !reset 1_
  54. !set 1_=!append line $wims_menu_tail to $1_
  55. !set wims_rm_0=$1_
  56. :rm2
  57. !if $wims_rm_2!=$empty
  58.  !goto rmend
  59. !endif
  60.  
  61. !set 3_=!mailurl $wims_supervisormail $wims_name_wsup\
  62. $module_title
  63. !set 2_=you,0,$wims_name_you\
  64.  class,0,$wims_classname ($wims_institutionname)\
  65.  wsup,0,$3_
  66. !if $wims_sheet>0
  67.  !set wims_homeref_scorestat=!getscorestatus sheet=$wims_sheet
  68.  !if $wims_homeref_scorestat=yes and $wims_exodep!=pending
  69.   !if $wims_scorereg!=suspend
  70.    !set wims_homeref_req=!getscorerequire sheet=$wims_sheet work=$wims_exo
  71.    !set wims_homeref_got=!getscore sheet=$wims_sheet work=$wims_exo
  72.    !set wims_homeref_mean=!getscoremean sheet=$wims_sheet work=$wims_exo
  73.    !set wims_name_score=!singlespace $wims_name_score
  74.    !set 2_=!append line score,0,$wims_name_score to $2_
  75.   !else
  76.    !set 2_=!append line score,0,$wims_name_scoresuspend to $2_
  77.   !endif
  78.  !else
  79.   !set 2_=!append line score,0,$wims_name_scoreclose to $2_
  80.  !endif
  81.  !if $module_score!=$empty and $wims_class_exolog>0 and E notin $wims_sheet
  82.   !set 2_=!append line exolog,1,module=adm/class/exolog&cmd=new&job=log&logsheet=$wims_sheet&logexo=$wims_exo to $2_
  83.  !endif
  84. !endif
  85. !set wims_rm_2=$2_
  86.  
  87. :rmend
  88. !set wims_homeref_n1=!linecnt $wims_rm_1
  89. !set wims_homeref_n2=!linecnt $wims_rm_2
  90. !set wims_homeref_n0=!linecnt $wims_rm_0
  91. </div>
  92. !read themes.phtml tail
  93. !robottrap
  94.  
  95.