Subversion Repositories wimsdev

Rev

Rev 10285 | Rev 11469 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10285 Rev 10792
Line 1... Line 1...
1
!!************** homeref.phtml  ****************
1
!!************** homeref.phtml  ****************
2
!! This File creates 2 sets of links, to put in the tail menu of Wims.
2
!! This File creates 2 sets of links, to put in the left menu or tail menu of Wims.
3
!! 1st set contains up to 6 links
3
!! 1st set contains up to 6 links
4
!! 2nd set contains informations about author(s), and mail links to them.
4
!! 2nd set contains informations about author(s), and mail links to them.
5
!! **********************************************
5
!! **********************************************
6
<!-- begin of html/homeref.phtml -->
6
<!-- begin of html/homeref.phtml -->
7
 
7
 
Line 55... Line 55...
55
 <p><span class="wims_warning">WIMS WARNING</span>. The following variables of your module could be hacked
55
 <p><span class="wims_warning">WIMS WARNING</span>. The following variables of your module could be hacked
56
 by students using manually modified http addresses! You might want to put more
56
 by students using manually modified http addresses! You might want to put more
57
 strict permissions to them in var.def, in order to build a secure exercise module.
57
 strict permissions to them in var.def, in order to build a secure exercise module.
58
 </p>
58
 </p>
59
 <pre>$wims_hacked_variables</pre>
59
 <pre>$wims_hacked_variables</pre>
60
 
-
 
61
!endif
60
!endif
62
 
61
 
63
!read name.phtml.$module_language
62
!read name.phtml.$module_language
64
!read themes/$wims_theme/lang/name.phtml.$lang
63
!read themes/$wims_theme/lang/name.phtml.$lang
65
!default wims_homeref_bgcolor=$wims_ref_bgcolor
64
!default wims_homeref_bgcolor=$wims_ref_bgcolor
Line 77... Line 76...
77
!if _ isin $wims_subsession
76
!if _ isin $wims_subsession
78
 !set 1_=!append line back,3,window.close() to $1_
77
 !set 1_=!append line back,3,window.close() to $1_
79
!else
78
!else
80
 !if $window != embeded
79
 !if $window != embeded
81
  !!set 1_=!append line home,1,session=$wims_session.1 to $1_
80
  !!set 1_=!append line home,1,session=$wims_session.1 to $1_
82
 !endif
81
 !endif
83
!endif
82
!endif
84
 
83
 
85
!!********* Link #2 : "Sheet"
84
!!********* Link #2 : "Sheet"
86
!if $wims_sheet>0 or P isin $wims_sheet
85
!if $wims_sheet>0 or P isin $wims_sheet
87
 !if $wims_sequence>0
86
 !if $wims_sequence>0
88
  !set tmp_=sheet,1,module=adm/sheet&sh=$wims_sheet&seq=$wims_sequence
87
  !set tmp_=sheet,1,module=adm/sheet&sh=$wims_sheet&seq=$wims_sequence
89
 !else
88
 !else
Line 95... Line 94...
95
  !let wims_menu_items=!append line previousseries,1,module=home&directworksheet=$wims_sheet.$[$wims_exo-1] to $wims_menu_items
94
  !let wims_menu_items=!append line previousseries,1,module=home&directworksheet=$wims_sheet.$[$wims_exo-1] to $wims_menu_items
96
 !endif
95
 !endif
97
 !if $wims_exo<$wims_sheetmax
96
 !if $wims_exo<$wims_sheetmax
98
  !let wims_menu_items=!append line nextseries,1,module=home&directworksheet=$wims_sheet.$[$wims_exo+1] to $wims_menu_items
97
  !let wims_menu_items=!append line nextseries,1,module=home&directworksheet=$wims_sheet.$[$wims_exo+1] to $wims_menu_items
99
 !endif
98
 !endif
-
 
99
!endif
-
 
100
 
-
 
101
!if ($wims_user=$empty or $wims_developer!=$empty or $wims_user=supervisor)\
-
 
102
  and $exoprev$exonext != $empty and $wims_sheet=$empty
-
 
103
   !set wims_menu_items=!append line itemsep,0\
-
 
104
prev,1,cmd=new&module=$module&exo=$exoprev&special_parm=$special_parm&special_parm2=$special_parm2&special_parm3=$special_parm3&special_parm4=$special_parm4 \
-
 
105
     to $wims_menu_items
-
 
106
   !set wims_menu_items=!append line next,1,cmd=new&module=$module&exo=$exonext&special_parm=$special_parm&special_parm2=$special_parm2&special_parm3=$special_parm3&special_parm4=$special_parm4 \
-
 
107
to $wims_menu_items
-
 
108
  !reset exoprev exonext
100
!endif
109
!endif
101
 
110
 
102
!!********* Link #3 : "Resume"
111
!!********* Link #3 : "Resume"
103
!if $cmd=help or $cmd=hint
112
!if $cmd=help or $cmd=hint
104
 !set 1_=!append line resume,1,cmd=resume to $1_
113
 !set 1_=!append line resume,1,cmd=resume to $1_