Rev 17412 | 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'; |
||
17410 | guerimand | 23 | !! ---------- progressbar in case of course mode |
24 | !if $(wims_exrandomlist[3;])=1 |
||
25 | !readproc examprogressbar.proc |
||
26 | !set 1_=!append line progress,0, $wims_progressbar to $1_ |
||
27 | !endif |
||
17412 | guerimand | 28 | !! ---------- add timer on page |
29 | <script> |
||
30 | !read js/chronoid.js |
||
31 | </script> |
||
17432 | guerimand | 32 | !set rd=!randint 111111,999999 |
33 | !set 1_=!append line chrono,0, <span id="chrono_exam"></span> <script>clockid($wims_exam_remain,"chrono_exam");window.opener.location='$wims_ref_name?session=$wims_pses.1&+cmd=reply&+job=student&+randomizer=$rd';</script> to $1_ |
||
12846 | bpr | 34 | !endif |
14778 | guerimand | 35 | !if $module=adm/class/tchat |
36 | !if $job!=close |
||
15109 | guerimand | 37 | !set 1_=!append line tchatclose,1,cmd=reply&module=adm/class/tchat&job=close to $1_ |
14778 | guerimand | 38 | !endif |
39 | !else |
||
40 | !set 1_=!append line back,3,window.close();$wims_href_opener to $1_ |
||
41 | !endif |
||
12846 | bpr | 42 | !else |
43 | !if $module!=home or ($module=home and $seq!=$empty) |
||
44 | !set home_=!append line class_home,1,session=$wims_session.1 to $home_ |
||
45 | !else |
||
46 | !set home_=!append line class_home,8, to $home_ |
||
47 | !endif |
||
48 | !endif |
||
49 | |||
50 | !!! deconnexion link |
||
51 | |||
52 | !if _ notin $wims_session |
||
53 | !if $class_cas_auth!=$empty |
||
54 | !if $wims_user=supervisor |
||
55 | !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 |
||
56 | !else |
||
57 | !if $wims_class!=$empty |
||
58 | !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 |
||
59 | !else |
||
60 | !set wims_link_close=!append line visitor,1,cmd=close&class_auth=$wims_cas_auth to $wims_link_close |
||
61 | !endif |
||
62 | !endif |
||
63 | !else |
||
64 | !if $wims_user=supervisor |
||
65 | !set wims_link_close=!append line visitor,1,cmd=close&module=adm/class/classes&type=supervisor to $wims_link_close |
||
66 | !else |
||
67 | !!!set registered=!record 0 of wimshome/$wims_sesdir/examreg.1 |
||
68 | !if $registered!=$empty |
||
69 | !! during an exam. |
||
70 | !set wims_link_close=!append line endexam,1,module=adm/class/exam&cmd=reply&job=scorereg to $wims_link_close |
||
71 | !else |
||
72 | !if $wims_user=anonymous |
||
73 | !set wims_link_close=!append line visitor,1,cmd=close&module=adm/class/classes&type=example to $wims_link_close |
||
74 | !else |
||
75 | !set wims_link_close=!append line visitor,1,cmd=close&module=adm/class/classes&type=participant to $wims_link_close |
||
76 | !endif |
||
77 | !endif |
||
78 | !endif |
||
79 | !endif |
||
80 | !endif |
||
81 | |||
82 | !if _check isin $wims_session |
||
16257 | guerimand | 83 | !! it is the case for examlog or exolog or freeworklog |
12846 | bpr | 84 | !set ckstep=$special_parm |
85 | !distribute item $wims_check into ckmodule,ckuser,cksession,ckexo,cksteps,score |
||
16257 | guerimand | 86 | !set qstr=module=$ckmodule&+cmd=new&+job=examcheck&+checkuser=$ckuser&+checksession=$cksession&+checkexo=$ckexo |
12846 | bpr | 87 | !set 2_=$wims_page_name : |
88 | !ifval $ckstep>1 |
||
89 | !set 2_=$2_<a href="$wims_ref_name?session=$session&+$qstr&+checkstep=1">1</a> |
||
90 | !if $ckstep=2 |
||
91 | !set 2_=$(2_)2 |
||
92 | !else |
||
93 | !if $ckstep=3 |
||
94 | !set 2_=$(2_)<a href="$wims_ref_name?session=$session&+$qstr&+checkstep=2">2</a> 3 |
||
95 | !else |
||
96 | !set 2_=$(2_) ... <a href="$wims_ref_name?session=$session&+$qstr&+checkstep=$[$ckstep-1]">$[$ckstep-1]</a> $ckstep |
||
97 | !endif |
||
98 | !endif |
||
99 | !else |
||
100 | !set 2_=$2_ 1 |
||
101 | !endif |
||
102 | !if $ckstep<$cksteps |
||
103 | !ifval $ckstep<$cksteps-2 |
||
104 | !set 2_=$2_<a href="$wims_ref_name?session=$session&+$qstr&+checkstep=$[$ckstep+1]">$[$ckstep+1]</a> ... <a href="$wims_ref_name?session=$session&+$qstr&+checkstep=$cksteps">$cksteps</a> |
||
105 | !else |
||
106 | !ifval $ckstep=$cksteps-2 |
||
107 | !set 2_=$2_<a href="$wims_ref_name?session=$session&+$qstr&+checkstep=$[$ckstep+1]">$[$ckstep+1]</a> <a href="$wims_ref_name?session=$session&+$qstr&+checkstep=$cksteps">$cksteps</a> |
||
108 | !else |
||
109 | !ifval $ckstep=$cksteps-1 |
||
110 | !set 2_=$2_<a href="$wims_ref_name?session=$session&+$qstr&+checkstep=$[$ckstep+1]">$[$ckstep+1]</a> |
||
111 | !endif |
||
112 | !endif |
||
113 | !endif |
||
114 | !endif |
||
115 | !set 1_=!append line nav,0,$2_ to $1_ |
||
116 | !set 3_=!translate internal - to , in $ckexo |
||
117 | !set 3_=!item -1 of $3_ |
||
15608 | bpr | 118 | !if $wims_user=supervisor |
16355 | guerimand | 119 | !if $ckexo=file and $wims_checktitle!=$empty |
120 | !set tmp=$wims_checktitle |
||
121 | !else |
||
122 | !set tmp=$ckuser: $3_=$module,$cksteps steps, $score/10 |
||
123 | !endif |
||
15608 | bpr | 124 | !else |
125 | !set tmp= |
||
126 | !endif |
||
16355 | guerimand | 127 | !set 2_=<small>$tmp.</small> |
15608 | bpr | 128 | !reset tmp |
12846 | bpr | 129 | !set wims_hm=!append line score,0,$2_ to $1_ |
130 | !goto defend |
||
131 | !endif |
||
132 | !!!if adm/forum notin $module and _ notin $wims_session \ |
||
14338 | bpr | 133 | !! and $wims_sheet=$empty |
12846 | bpr | 134 | !!!set 1_=!append line forum,1,module=adm/forum/mboard to $1_ |
135 | !!!endif |
||
136 | !!if $cmd=intro |
||
137 | !! !set 1_=!append line work,1,module=$module&cmd=new to $1_ |
||
138 | !!endif |
||
139 | !if _exam isin $wims_session |
||
140 | !set 1_=!append line tools,4,module=home,tool to $1_ |
||
141 | !endif |
||
142 | !!!if _ notin $wims_session and adm/ notin $module and $cmd notwordof help ref |
||
143 | !!!set 1_=!append line reference,4,module=$module&cmd=ref&special_parm=$cmd,ref to $1_ |
||
144 | !!!endif |
||
145 | :ariane_sheet |
||
14753 | bpr | 146 | !if ($wims_sequence>0 or $m_wims_sequence>0) \ |
147 | and (adm/sheet isin $module or $module_category!=adm or $module=adm/doc) |
||
12846 | bpr | 148 | !set tmp_=$m_wims_sequence |
149 | !default tmp_=$wims_sequence |
||
150 | !if $wims_user=supervisor |
||
151 | !set wims_ariane=!append line sequence,1,module=adm/class/sequence&seq=$tmp_\ |
||
152 | to $wims_ariane |
||
153 | !else |
||
154 | !set wims_ariane=!append line sequence,1,module=home&seq=$tmp_#sh$wims_sheet to $wims_ariane |
||
155 | !endif |
||
156 | !reset tmp_ |
||
157 | !set wims_ariane_self=no |
||
158 | !else |
||
159 | !if adm/doc isin $module and $wims_user!=supervisor |
||
160 | !set wims_ariane=!append line doc,8 to $wims_ariane |
||
161 | !set wims_ariane_self=no |
||
162 | !endif |
||
14753 | bpr | 163 | !if adm/class/freework isin $module |
14764 | bpr | 164 | !set wims_ariane=!append line Freework $freework,1,module=adm/class/freework&freework=$freework to $wims_ariane |
14753 | bpr | 165 | !set wims_ariane_self=no |
166 | !endif |
||
12846 | bpr | 167 | !endif |
168 | !if $wims_sheet>0 or P isin $wims_sheet |
||
17071 | guerimand | 169 | !if swork=$(wims_listexo[1]) |
170 | !set wims_ariane=!append line swork,1,module=adm/class/swork& to $wims_ariane |
||
171 | !else |
||
172 | !set wims_ariane=!append line sheet,1,module=adm/sheet&sh=$wims_sheet#ex$wims_exo to $wims_ariane |
||
173 | !endif |
||
12846 | bpr | 174 | !set wims_ariane_self=no |
175 | !else |
||
176 | !if adm/sheet isin $module |
||
177 | !set wims_ariane=!append line sheet,8 to $wims_ariane |
||
178 | !set wims_ariane_self=no |
||
179 | !endif |
||
180 | !endif |
||
181 | |||
182 | !if $job=print or $printing=yes |
||
183 | !!goto defend |
||
184 | !endif |
||
185 | !if $cmd=help or $cmd=hint |
||
186 | !set 1_=!append line resume,1,cmd=resume to $1_ |
||
187 | !endif |
||
188 | !if $module_has_intro=yes and $cmd notwordof intro help and \ |
||
16657 | guerimand | 189 | $wims_sheet=$empty and $wims_fwnumber=$empty and exam notin $wims_session \ |
190 | and mfeed notin $wims_session and $wims_freework=$empty \ |
||
191 | and ($wims_user=$empty or $wims_user=supervisor) |
||
12846 | bpr | 192 | !if $wims_theme!=default |
193 | !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 |
||
194 | !set wims_ariane_self=no |
||
195 | !else |
||
196 | !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_ |
||
197 | !endif |
||
198 | !endif |
||
16656 | guerimand | 199 | !if $wims_fwnumber!=$empty |
200 | !set wims_ariane=!append line freework,1,module=adm/class/freework&cmd=new&freework=$(wims_fwnumber) to $wims_ariane |
||
16087 | guerimand | 201 | !set wims_ariane_self=no |
202 | !endif |
||
15069 | bpr | 203 | !! ------------ add link for sendbug (TEST TO BE IMPROVED ?) |
14753 | bpr | 204 | !! TODO : change name of the window to open should be deleted when |
14513 | guerimand | 205 | !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 | 206 | !let number_=!randint 1,1000 |
207 | !set 1_=!append line sendbug,4,module=adm/sendbug&cmd=new,sendbug$(number_) to $1_ |
||
14500 | guerimand | 208 | !endif |
12846 | bpr | 209 | !if $module_has_help=yes and $cmd notwordof intro help and _exam notin $wims_session |
210 | !if $module_help=$empty or $module_help=popup |
||
211 | !set 1_=!append line help,4,module=$module&cmd=help&special_parm=$wims_help_parm,mhelp to $1_ |
||
212 | !else |
||
213 | !set 1_=!append line help,1,module=$module&cmd=help&special_parm=$wims_help_parm to $1_ |
||
214 | !endif |
||
215 | !endif |
||
216 | |||
217 | !if $wims_theme_version=0 |
||
218 | !if _ notin $wims_session |
||
219 | !set 1_=!append line whelp,4,module=help/main&$wims_helper,help to $1_ |
||
220 | !endif |
||
221 | !endif |
||
222 | |||
223 | !!********* Link: "About" |
||
224 | !if $module_has_about=yes and $cmd notwordof help and $module!=home \ |
||
15605 | bpr | 225 | and _exam notin $wims_session and _mfeed notin $wims_session \ |
226 | and ($wims_user iswordof supervisor developper or $wims_user=$empty) |
||
12846 | bpr | 227 | !set 1_=!append line about,4,module=$module&cmd=help&special_parm=about,mhelp,,$wims_name_module_infos ($module) to $1_ |
228 | !endif |
||
229 | |||
230 | !set wims_hm=$1_ |
||
231 | !set wims_home_items=$home_ |
||
232 | :defend |
||
233 | !set wims_hm_cnt=!linecnt $wims_hm |
||
234 | !set wims_home_items_cnt=!linecnt $wims_home_items |
||
235 | !set wims_link_close_cnt=!linecnt $wims_link_close |
||
236 | !set wims_ariane_cnt=!linecnt $wims_ariane |
||
237 | !read themes.phtml header |
||
14778 | guerimand | 238 | <!--BEGINSUPVIEW--> |
12846 | bpr | 239 | <div class="wimsbody"> |
17285 | guerimand | 240 | !read themes/_widgets/adminalert.phtml |
12848 | obado | 241 | <!-- END of html/headmenu_user --> |
16087 | guerimand | 242 | !read themes/_widgets/freeworkmanage.phtml head |