Subversion Repositories wimsdev

Rev

Rev 1734 | Rev 2761 | 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.  !if $wims_sequence>0
  30.   !set 1_=!append line sheet,1,module=adm/sheet&sh=$wims_sheet&seq=$wims_sequence to $1_
  31.  !else
  32.   !set 1_=!append line sheet,1,module=adm/sheet&sh=$wims_sheet& to $1_
  33.  !endif
  34. !endif
  35. !if $cmd=help or $cmd=hint
  36.  !set 1_=!append line resume,1,cmd=resume to $1_
  37. !endif
  38. !if $module_has_intro=yes and $cmd notwordof intro help and\
  39.         $wims_sheet=$empty and exam notin $wims_session
  40.  !set 1_=!append line intro,1,module=$module&cmd=intro&special_parm=$special_parm&special_parm2=$special_parm2&special_parm3=$special_parm3 to $1_
  41. !endif
  42. !if $module_has_help=yes and $cmd notwordof intro help
  43.  !if $module_help=$empty or $module_help=popup
  44.   !set 1_=!append line help,4,module=$module&cmd=help&special_parm=$wims_help_parm,mhelp to $1_
  45.  !else
  46.   !set 1_=!append line help,1,module=$module&cmd=help&special_parm=$wims_help_parm to $1_
  47.  !endif
  48. !endif
  49. !if $module_has_about=yes and $cmd notwordof help intro
  50.  !set 1_=!append line about,4,module=$module&cmd=help&special_parm=about,mhelp to $1_
  51. !endif
  52. !if print isin $job,$job2 or $print!=
  53.   !set 1_=!append line print,3,window.print() to $1_
  54. !endif
  55. !set wims_rm_1=$1_
  56. :local
  57. !reset 1_
  58. !set 1_=!append line $wims_menu_items to $1_
  59. !set wims_rm_0=$1_
  60. !set wims_rm_3=!append line $wims_menu_tabs to $wims_rm_3
  61. :rm2
  62. !if $wims_rm_2!=$empty
  63.  !goto rmend
  64. !endif
  65.  
  66. !set 3_=!mailurl $wims_supervisormail $wims_name_wsup\
  67. $module_title
  68. !set 2_=you,0,$wims_name_you\
  69.  class,0,$wims_classname ($wims_institutionname)\
  70.  wsup,0,$3_
  71. !if $wims_sheet>0
  72.  !set wims_homeref_scorestat=!getscorestatus sheet=$wims_sheet
  73.  !if $wims_homeref_scorestat=yes and $wims_exodep!=pending
  74.   !if $wims_scorereg!=suspend
  75.    !set wims_homeref_req=!getscorerequire sheet=$wims_sheet work=$wims_exo
  76.    !set wims_homeref_got=!getscore sheet=$wims_sheet work=$wims_exo
  77.    !set wims_homeref_mean=!getscoremean sheet=$wims_sheet work=$wims_exo
  78.    !set wims_name_score=!singlespace $wims_name_score
  79.    !set 2_=!append line score,0,$wims_name_score to $2_
  80.   !else
  81.    !set 2_=!append line score,0,$wims_name_scoresuspend to $2_
  82.   !endif
  83.  !else
  84.   !set 2_=!append line score,0,$wims_name_scoreclose to $2_
  85.  !endif
  86.  !if $module_score!=$empty and $wims_class_exolog>0 and E notin $wims_sheet
  87.   !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
  88.  !endif
  89. !endif
  90. !set wims_rm_2=$2_
  91.  
  92. :rmend
  93. !set wims_homeref_n1=!linecnt $wims_rm_1
  94. !set wims_homeref_n2=!linecnt $wims_rm_2
  95. !set wims_homeref_n0=!linecnt $wims_rm_0
  96. !set wims_homeref_n3=!linecnt $wims_rm_3
  97. </div>
  98. !read themes.phtml tail
  99. !robottrap
  100.  
  101.