Subversion Repositories wimsdev

Rev

Rev 15070 | Rev 15605 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
12848 obado 1
<!-- BEGIN of html/headmenu_user -->
12846 bpr 2
!read name.phtml.$lang
3
!read themes/_lang/name.phtml.$lang
4
!read themes/$wims_theme/lang/name.phtml.$lang
5
!default wims_name_bgcolor=$wims_ref_bgcolor
6
!if $wims_hm$wims_home_items$wims_link_close!=$empty
15069 bpr 7
  !goto defend
12846 bpr 8
!endif
9
 
14778 guerimand 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
14
!endif
15
 
12846 bpr 16
!reset 1_ home_
17
!if _ isin $wims_session
18
  !if _exam isin $wims_session
19
    !set wims_pses=!translate _ to , in $wims_session
20
    !set wims_pses=!item 1 of $wims_pses
21
    !set wims_pser=!randint 1,99999
22
    !set wims_href_opener=window.opener.location='$wims_ref_name?session=$wims_pses.1&+cmd=reply&+job=student&+randomizer=$wims_pser';
23
  !endif
14778 guerimand 24
  !if $module=adm/class/tchat
25
    !if $job!=close
15109 guerimand 26
      !set 1_=!append line tchatclose,1,cmd=reply&module=adm/class/tchat&job=close to $1_
14778 guerimand 27
    !endif
28
  !else
29
    !set 1_=!append line back,3,window.close();$wims_href_opener to $1_
30
  !endif
12846 bpr 31
!else
32
  !if $module!=home or ($module=home and $seq!=$empty)
33
    !set home_=!append line class_home,1,session=$wims_session.1 to $home_
34
  !else
35
    !set home_=!append line class_home,8, to $home_
36
  !endif
37
!endif
38
 
39
!!! deconnexion link
40
 
41
!if _ notin $wims_session
42
  !if $class_cas_auth!=$empty
43
    !if $wims_user=supervisor
44
      !set wims_link_close=!append line visitor,1,cmd=close&module=adm/class/classes&type=supervisor&class_auth=$class_cas_auth to $wims_link_close
45
    !else
46
      !if $wims_class!=$empty
47
        !set wims_link_close=!append line visitor,1,cmd=close&module=adm/class/classes&type=participant&class_auth=$class_cas_auth to $wims_link_close
48
      !else
49
        !set wims_link_close=!append line visitor,1,cmd=close&class_auth=$wims_cas_auth to $wims_link_close
50
      !endif
51
    !endif
52
  !else
53
    !if $wims_user=supervisor
54
      !set wims_link_close=!append line visitor,1,cmd=close&module=adm/class/classes&type=supervisor to $wims_link_close
55
    !else
56
     !!!set registered=!record 0 of wimshome/$wims_sesdir/examreg.1
57
     !if $registered!=$empty
58
!! during an exam.
59
        !set wims_link_close=!append line endexam,1,module=adm/class/exam&cmd=reply&job=scorereg to $wims_link_close
60
      !else
61
        !if $wims_user=anonymous
62
          !set wims_link_close=!append line visitor,1,cmd=close&module=adm/class/classes&type=example to $wims_link_close
63
        !else
64
          !set wims_link_close=!append line visitor,1,cmd=close&module=adm/class/classes&type=participant to $wims_link_close
65
        !endif
66
      !endif
67
    !endif
68
  !endif
69
!endif
70
 
71
!if _check isin $wims_session
72
  !! it is the case for examlog or exolog
73
  !set ckstep=$special_parm
74
  !distribute item $wims_check into ckmodule,ckuser,cksession,ckexo,cksteps,score
75
  !set qstr=module=$ckmodule&+cmd=new&+job=examcheck&+checkuser=$ckuser&+checksession=$cksession&+checkexo=$ckexo
76
  !set 2_=$wims_page_name : &nbsp;
77
  !ifval $ckstep>1
78
    !set 2_=$2_<a href="$wims_ref_name?session=$session&+$qstr&+checkstep=1">1</a>&nbsp;
79
    !if $ckstep=2
80
      !set 2_=$(2_)2&nbsp;
81
    !else
82
      !if $ckstep=3
83
        !set 2_=$(2_)<a href="$wims_ref_name?session=$session&+$qstr&+checkstep=2">2</a>&nbsp;3&nbsp;
84
      !else
85
        !set 2_=$(2_)&nbsp;...&nbsp;<a href="$wims_ref_name?session=$session&+$qstr&+checkstep=$[$ckstep-1]">$[$ckstep-1]</a>&nbsp;$ckstep&nbsp;
86
      !endif
87
    !endif
88
  !else
89
    !set 2_=$2_ 1 &nbsp;
90
  !endif
91
  !if $ckstep<$cksteps
92
    !ifval $ckstep<$cksteps-2
93
      !set 2_=$2_<a href="$wims_ref_name?session=$session&+$qstr&+checkstep=$[$ckstep+1]">$[$ckstep+1]</a>&nbsp;...&nbsp;<a href="$wims_ref_name?session=$session&+$qstr&+checkstep=$cksteps">$cksteps</a>
94
    !else
95
      !ifval $ckstep=$cksteps-2
96
        !set 2_=$2_<a href="$wims_ref_name?session=$session&+$qstr&+checkstep=$[$ckstep+1]">$[$ckstep+1]</a>&nbsp;<a href="$wims_ref_name?session=$session&+$qstr&+checkstep=$cksteps">$cksteps</a>
97
      !else
98
        !ifval $ckstep=$cksteps-1
99
          !set 2_=$2_<a href="$wims_ref_name?session=$session&+$qstr&+checkstep=$[$ckstep+1]">$[$ckstep+1]</a>
100
        !endif
101
      !endif
102
    !endif
103
  !endif
104
  !set 1_=!append line nav,0,$2_ to $1_
105
  !set 3_=!translate internal - to , in $ckexo
106
  !set 3_=!item -1 of $3_
107
  !set 2_=<small>$ckuser: $3_=$module. $cksteps steps, $score/10.</small>
108
  !set wims_hm=!append line score,0,$2_ to $1_
109
  !goto defend
110
!endif
111
!!!if adm/forum notin $module and _ notin $wims_session \
14338 bpr 112
!!  and $wims_sheet=$empty
12846 bpr 113
 !!!set 1_=!append line forum,1,module=adm/forum/mboard to $1_
114
!!!endif
115
!!if $cmd=intro
116
!! !set 1_=!append line work,1,module=$module&cmd=new to $1_
117
!!endif
118
!if _exam isin $wims_session
119
  !set 1_=!append line tools,4,module=home,tool to $1_
120
!endif
121
!!!if _ notin $wims_session and adm/ notin $module and $cmd notwordof help ref
122
 !!!set 1_=!append line reference,4,module=$module&cmd=ref&special_parm=$cmd,ref to $1_
123
!!!endif
124
:ariane_sheet
14753 bpr 125
!if ($wims_sequence>0 or $m_wims_sequence>0) \
126
  and (adm/sheet isin $module or $module_category!=adm or $module=adm/doc)
12846 bpr 127
  !set tmp_=$m_wims_sequence
128
  !default tmp_=$wims_sequence
129
  !if $wims_user=supervisor
130
    !set wims_ariane=!append line sequence,1,module=adm/class/sequence&seq=$tmp_\
131
to $wims_ariane
132
  !else
133
    !set wims_ariane=!append line sequence,1,module=home&seq=$tmp_#sh$wims_sheet to $wims_ariane
134
  !endif
135
  !reset tmp_
136
  !set wims_ariane_self=no
137
!else
138
  !if adm/doc isin $module and $wims_user!=supervisor
139
    !set wims_ariane=!append line doc,8 to $wims_ariane
140
    !set wims_ariane_self=no
141
  !endif
14753 bpr 142
  !if adm/class/freework isin $module
14764 bpr 143
    !set wims_ariane=!append line Freework $freework,1,module=adm/class/freework&freework=$freework to $wims_ariane
14753 bpr 144
    !set wims_ariane_self=no
145
  !endif
12846 bpr 146
!endif
147
!if $wims_sheet>0 or P isin $wims_sheet
148
   !set wims_ariane=!append line sheet,1,module=adm/sheet&sh=$wims_sheet#ex$wims_exo to $wims_ariane
149
   !set wims_ariane_self=no
150
!else
151
   !if adm/sheet isin $module
152
     !set wims_ariane=!append line sheet,8 to $wims_ariane
153
     !set wims_ariane_self=no
154
   !endif
155
!endif
156
 
157
!if $job=print or $printing=yes
158
  !!goto defend
159
!endif
160
!if $cmd=help or $cmd=hint
161
  !set 1_=!append line resume,1,cmd=resume to $1_
162
!endif
163
!if $module_has_intro=yes and $cmd notwordof intro help and \
14338 bpr 164
    $wims_sheet=$empty and exam notin $wims_session and mfeed notin $wims_session
12846 bpr 165
  !if $wims_theme!=default
166
    !set wims_ariane=!append line intro,1,module=$module&cmd=intro&special_parm=$special_parm&special_parm2=$special_parm2&special_parm3=$special_parm3&special_parm4=$special_parm4 to $wims_ariane
167
    !set wims_ariane_self=no
168
  !else
169
    !set 1_=!append line intro,1,module=$module&cmd=intro&special_parm=$special_parm&special_parm2=$special_parm2&special_parm3=$special_parm3&special_parm4=$special_parm4 to $1_
170
  !endif
171
!endif
15069 bpr 172
!! ------------ add link for sendbug (TEST TO BE IMPROVED ?)
14753 bpr 173
!! TODO : change name of the window to open should be deleted when
14513 guerimand 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
14502 guerimand 175
  !let number_=!randint 1,1000
176
  !set 1_=!append line sendbug,4,module=adm/sendbug&cmd=new,sendbug$(number_) to $1_
14500 guerimand 177
!endif
12846 bpr 178
!if $module_has_help=yes and $cmd notwordof intro help and _exam notin $wims_session
179
  !if $module_help=$empty or $module_help=popup
180
    !set 1_=!append line help,4,module=$module&cmd=help&special_parm=$wims_help_parm,mhelp to $1_
181
  !else
182
    !set 1_=!append line help,1,module=$module&cmd=help&special_parm=$wims_help_parm to $1_
183
  !endif
184
!endif
185
 
186
!if $wims_theme_version=0
187
  !if _ notin $wims_session
188
    !set 1_=!append line whelp,4,module=help/main&$wims_helper,help to $1_
189
  !endif
190
!endif
191
 
192
!!********* Link: "About"
193
!if $module_has_about=yes and $cmd notwordof help and $module!=home \
194
  and _exam notin $wims_session and _mfeed notin $wims_session \
195
  and (adm notin $module or $wims_user iswordof supervisor developper or $wims_user=$empty)
196
  !set 1_=!append line about,4,module=$module&cmd=help&special_parm=about,mhelp,,$wims_name_module_infos ($module) to $1_
197
!endif
198
 
199
!set wims_hm=$1_
200
!set wims_home_items=$home_
201
:defend
202
!set wims_hm_cnt=!linecnt $wims_hm
203
!set wims_home_items_cnt=!linecnt $wims_home_items
204
!set wims_link_close_cnt=!linecnt $wims_link_close
205
!set wims_ariane_cnt=!linecnt $wims_ariane
206
!read themes.phtml header
14778 guerimand 207
<!--BEGINSUPVIEW-->
12846 bpr 208
<div class="wimsbody">
12848 obado 209
<!-- END of html/headmenu_user -->