Subversion Repositories wimsdev

Rev

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

Rev 14764 Rev 14778
Line 3... Line 3...
3
!read themes/_lang/name.phtml.$lang
3
!read themes/_lang/name.phtml.$lang
4
!read themes/$wims_theme/lang/name.phtml.$lang
4
!read themes/$wims_theme/lang/name.phtml.$lang
5
!default wims_name_bgcolor=$wims_ref_bgcolor
5
!default wims_name_bgcolor=$wims_ref_bgcolor
6
!if $wims_hm$wims_home_items$wims_link_close!=$empty
6
!if $wims_hm$wims_home_items$wims_link_close!=$empty
7
 !goto defend
7
 !goto defend
-
 
8
!endif
-
 
9
 
-
 
10
!if $module=adm/class/tchat and $job=viewpage
-
 
11
  !reset wims_hm,wims_home_items,wims_link_close
-
 
12
  !let wims_hm=back,3,window.close();$wims_href_opener
-
 
13
  !goto defend
8
!endif
14
!endif
9
 
15
 
10
!reset 1_ home_
16
!reset 1_ home_
11
!if _ isin $wims_session
17
!if _ isin $wims_session
12
  !if _exam isin $wims_session
18
  !if _exam isin $wims_session
13
    !set wims_pses=!translate _ to , in $wims_session
19
    !set wims_pses=!translate _ to , in $wims_session
14
    !set wims_pses=!item 1 of $wims_pses
20
    !set wims_pses=!item 1 of $wims_pses
15
    !set wims_pser=!randint 1,99999
21
    !set wims_pser=!randint 1,99999
16
    !set wims_href_opener=window.opener.location='$wims_ref_name?session=$wims_pses.1&+cmd=reply&+job=student&+randomizer=$wims_pser';
22
    !set wims_href_opener=window.opener.location='$wims_ref_name?session=$wims_pses.1&+cmd=reply&+job=student&+randomizer=$wims_pser';
17
  !endif
23
  !endif
-
 
24
  !if $module=adm/class/tchat
-
 
25
    !if $job!=close
-
 
26
      !set 1_=!append line back,1,cmd=reply&module=adm/class/tchat&job=close to $1_
-
 
27
    !endif
-
 
28
  !else
18
  !set 1_=!append line back,3,window.close();$wims_href_opener to $1_
29
    !set 1_=!append line back,3,window.close();$wims_href_opener to $1_
-
 
30
  !endif
19
!else
31
!else
20
  !if $module!=home or ($module=home and $seq!=$empty)
32
  !if $module!=home or ($module=home and $seq!=$empty)
21
    !set home_=!append line class_home,1,session=$wims_session.1 to $home_
33
    !set home_=!append line class_home,1,session=$wims_session.1 to $home_
22
  !else
34
  !else
23
    !set home_=!append line class_home,8, to $home_
35
    !set home_=!append line class_home,8, to $home_
Line 160... Line 172...
160
!! ------------ had link for sendbug (TEST TO BE IMPROVED ?)
172
!! ------------ had link for sendbug (TEST TO BE IMPROVED ?)
161
!! TODO : change name of the window to open should be deleted when
173
!! TODO : change name of the window to open should be deleted when
162
!if $wims_class!=$empty and $wims_user=supervisor and adm/ notin $module and classes/ notin $module and devel/ notin $module and $module!=home and $cmd!=intro
174
!if $wims_class!=$empty and $wims_user=supervisor and adm/ notin $module and classes/ notin $module and devel/ notin $module and $module!=home and $cmd!=intro
163
  !let number_=!randint 1,1000
175
  !let number_=!randint 1,1000
164
  !set 1_=!append line sendbug,4,module=adm/sendbug&cmd=new,sendbug$(number_) to $1_
176
  !set 1_=!append line sendbug,4,module=adm/sendbug&cmd=new,sendbug$(number_) to $1_
-
 
177
!endif
-
 
178
!! ------------ had link to tchat for user
-
 
179
!if $wims_class!=$empty and $wims_user!=supervisor and tchat notin $wims_session and $class_type<2
-
 
180
  !set 1_=!append line tchat,4,module=adm/class/tchat&cmd=new,tchat to $1_
165
!endif
181
!endif
166
!! ------------
182
!! ------------
167
!if $module_has_help=yes and $cmd notwordof intro help and _exam notin $wims_session
183
!if $module_has_help=yes and $cmd notwordof intro help and _exam notin $wims_session
168
  !if $module_help=$empty or $module_help=popup
184
  !if $module_help=$empty or $module_help=popup
169
    !set 1_=!append line help,4,module=$module&cmd=help&special_parm=$wims_help_parm,mhelp to $1_
185
    !set 1_=!append line help,4,module=$module&cmd=help&special_parm=$wims_help_parm,mhelp to $1_
Line 191... Line 207...
191
!set wims_hm_cnt=!linecnt $wims_hm
207
!set wims_hm_cnt=!linecnt $wims_hm
192
!set wims_home_items_cnt=!linecnt $wims_home_items
208
!set wims_home_items_cnt=!linecnt $wims_home_items
193
!set wims_link_close_cnt=!linecnt $wims_link_close
209
!set wims_link_close_cnt=!linecnt $wims_link_close
194
!set wims_ariane_cnt=!linecnt $wims_ariane
210
!set wims_ariane_cnt=!linecnt $wims_ariane
195
!read themes.phtml header
211
!read themes.phtml header
-
 
212
<!--BEGINSUPVIEW-->
196
<div class="wimsbody">
213
<div class="wimsbody">
197
<!-- END of html/headmenu_user -->
214
<!-- END of html/headmenu_user -->