Rev 17071 | Rev 17410 | 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 |
||
16257 | guerimand | 72 | !! it is the case for examlog or exolog or freeworklog |
12846 | bpr | 73 | !set ckstep=$special_parm |
74 | !distribute item $wims_check into ckmodule,ckuser,cksession,ckexo,cksteps,score |
||
16257 | guerimand | 75 | !set qstr=module=$ckmodule&+cmd=new&+job=examcheck&+checkuser=$ckuser&+checksession=$cksession&+checkexo=$ckexo |
12846 | bpr | 76 | !set 2_=$wims_page_name : |
77 | !ifval $ckstep>1 |
||
78 | !set 2_=$2_<a href="$wims_ref_name?session=$session&+$qstr&+checkstep=1">1</a> |
||
79 | !if $ckstep=2 |
||
80 | !set 2_=$(2_)2 |
||
81 | !else |
||
82 | !if $ckstep=3 |
||
83 | !set 2_=$(2_)<a href="$wims_ref_name?session=$session&+$qstr&+checkstep=2">2</a> 3 |
||
84 | !else |
||
85 | !set 2_=$(2_) ... <a href="$wims_ref_name?session=$session&+$qstr&+checkstep=$[$ckstep-1]">$[$ckstep-1]</a> $ckstep |
||
86 | !endif |
||
87 | !endif |
||
88 | !else |
||
89 | !set 2_=$2_ 1 |
||
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> ... <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> <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_ |
||
15608 | bpr | 107 | !if $wims_user=supervisor |
16355 | guerimand | 108 | !if $ckexo=file and $wims_checktitle!=$empty |
109 | !set tmp=$wims_checktitle |
||
110 | !else |
||
111 | !set tmp=$ckuser: $3_=$module,$cksteps steps, $score/10 |
||
112 | !endif |
||
15608 | bpr | 113 | !else |
114 | !set tmp= |
||
115 | !endif |
||
16355 | guerimand | 116 | !set 2_=<small>$tmp.</small> |
15608 | bpr | 117 | !reset tmp |
12846 | bpr | 118 | !set wims_hm=!append line score,0,$2_ to $1_ |
119 | !goto defend |
||
120 | !endif |
||
121 | !!!if adm/forum notin $module and _ notin $wims_session \ |
||
14338 | bpr | 122 | !! and $wims_sheet=$empty |
12846 | bpr | 123 | !!!set 1_=!append line forum,1,module=adm/forum/mboard to $1_ |
124 | !!!endif |
||
125 | !!if $cmd=intro |
||
126 | !! !set 1_=!append line work,1,module=$module&cmd=new to $1_ |
||
127 | !!endif |
||
128 | !if _exam isin $wims_session |
||
129 | !set 1_=!append line tools,4,module=home,tool to $1_ |
||
130 | !endif |
||
131 | !!!if _ notin $wims_session and adm/ notin $module and $cmd notwordof help ref |
||
132 | !!!set 1_=!append line reference,4,module=$module&cmd=ref&special_parm=$cmd,ref to $1_ |
||
133 | !!!endif |
||
134 | :ariane_sheet |
||
14753 | bpr | 135 | !if ($wims_sequence>0 or $m_wims_sequence>0) \ |
136 | and (adm/sheet isin $module or $module_category!=adm or $module=adm/doc) |
||
12846 | bpr | 137 | !set tmp_=$m_wims_sequence |
138 | !default tmp_=$wims_sequence |
||
139 | !if $wims_user=supervisor |
||
140 | !set wims_ariane=!append line sequence,1,module=adm/class/sequence&seq=$tmp_\ |
||
141 | to $wims_ariane |
||
142 | !else |
||
143 | !set wims_ariane=!append line sequence,1,module=home&seq=$tmp_#sh$wims_sheet to $wims_ariane |
||
144 | !endif |
||
145 | !reset tmp_ |
||
146 | !set wims_ariane_self=no |
||
147 | !else |
||
148 | !if adm/doc isin $module and $wims_user!=supervisor |
||
149 | !set wims_ariane=!append line doc,8 to $wims_ariane |
||
150 | !set wims_ariane_self=no |
||
151 | !endif |
||
14753 | bpr | 152 | !if adm/class/freework isin $module |
14764 | bpr | 153 | !set wims_ariane=!append line Freework $freework,1,module=adm/class/freework&freework=$freework to $wims_ariane |
14753 | bpr | 154 | !set wims_ariane_self=no |
155 | !endif |
||
12846 | bpr | 156 | !endif |
157 | !if $wims_sheet>0 or P isin $wims_sheet |
||
17071 | guerimand | 158 | !if swork=$(wims_listexo[1]) |
159 | !set wims_ariane=!append line swork,1,module=adm/class/swork& to $wims_ariane |
||
160 | !else |
||
161 | !set wims_ariane=!append line sheet,1,module=adm/sheet&sh=$wims_sheet#ex$wims_exo to $wims_ariane |
||
162 | !endif |
||
12846 | bpr | 163 | !set wims_ariane_self=no |
164 | !else |
||
165 | !if adm/sheet isin $module |
||
166 | !set wims_ariane=!append line sheet,8 to $wims_ariane |
||
167 | !set wims_ariane_self=no |
||
168 | !endif |
||
169 | !endif |
||
170 | |||
171 | !if $job=print or $printing=yes |
||
172 | !!goto defend |
||
173 | !endif |
||
174 | !if $cmd=help or $cmd=hint |
||
175 | !set 1_=!append line resume,1,cmd=resume to $1_ |
||
176 | !endif |
||
177 | !if $module_has_intro=yes and $cmd notwordof intro help and \ |
||
16657 | guerimand | 178 | $wims_sheet=$empty and $wims_fwnumber=$empty and exam notin $wims_session \ |
179 | and mfeed notin $wims_session and $wims_freework=$empty \ |
||
180 | and ($wims_user=$empty or $wims_user=supervisor) |
||
12846 | bpr | 181 | !if $wims_theme!=default |
182 | !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 |
||
183 | !set wims_ariane_self=no |
||
184 | !else |
||
185 | !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_ |
||
186 | !endif |
||
187 | !endif |
||
16656 | guerimand | 188 | !if $wims_fwnumber!=$empty |
189 | !set wims_ariane=!append line freework,1,module=adm/class/freework&cmd=new&freework=$(wims_fwnumber) to $wims_ariane |
||
16087 | guerimand | 190 | !set wims_ariane_self=no |
191 | !endif |
||
15069 | bpr | 192 | !! ------------ add link for sendbug (TEST TO BE IMPROVED ?) |
14753 | bpr | 193 | !! TODO : change name of the window to open should be deleted when |
14513 | guerimand | 194 | !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 | 195 | !let number_=!randint 1,1000 |
196 | !set 1_=!append line sendbug,4,module=adm/sendbug&cmd=new,sendbug$(number_) to $1_ |
||
14500 | guerimand | 197 | !endif |
12846 | bpr | 198 | !if $module_has_help=yes and $cmd notwordof intro help and _exam notin $wims_session |
199 | !if $module_help=$empty or $module_help=popup |
||
200 | !set 1_=!append line help,4,module=$module&cmd=help&special_parm=$wims_help_parm,mhelp to $1_ |
||
201 | !else |
||
202 | !set 1_=!append line help,1,module=$module&cmd=help&special_parm=$wims_help_parm to $1_ |
||
203 | !endif |
||
204 | !endif |
||
205 | |||
206 | !if $wims_theme_version=0 |
||
207 | !if _ notin $wims_session |
||
208 | !set 1_=!append line whelp,4,module=help/main&$wims_helper,help to $1_ |
||
209 | !endif |
||
210 | !endif |
||
211 | |||
212 | !!********* Link: "About" |
||
213 | !if $module_has_about=yes and $cmd notwordof help and $module!=home \ |
||
15605 | bpr | 214 | and _exam notin $wims_session and _mfeed notin $wims_session \ |
215 | and ($wims_user iswordof supervisor developper or $wims_user=$empty) |
||
12846 | bpr | 216 | !set 1_=!append line about,4,module=$module&cmd=help&special_parm=about,mhelp,,$wims_name_module_infos ($module) to $1_ |
217 | !endif |
||
218 | |||
219 | !set wims_hm=$1_ |
||
220 | !set wims_home_items=$home_ |
||
221 | :defend |
||
222 | !set wims_hm_cnt=!linecnt $wims_hm |
||
223 | !set wims_home_items_cnt=!linecnt $wims_home_items |
||
224 | !set wims_link_close_cnt=!linecnt $wims_link_close |
||
225 | !set wims_ariane_cnt=!linecnt $wims_ariane |
||
226 | !read themes.phtml header |
||
14778 | guerimand | 227 | <!--BEGINSUPVIEW--> |
12846 | bpr | 228 | <div class="wimsbody"> |
17285 | guerimand | 229 | !read themes/_widgets/adminalert.phtml |
12848 | obado | 230 | <!-- END of html/headmenu_user --> |
16087 | guerimand | 231 | !read themes/_widgets/freeworkmanage.phtml head |