Rev 16044 | Rev 16518 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
12077 | guerimand | 1 | !let test=!filexists wimshome/sessions/$wims_session/getfile/photoboard/$getuser |
12076 | guerimand | 2 | !if $test=yes |
12466 | bpr | 3 | <div id="userlogo" class="float_right"> |
13220 | bpr | 4 | <img src="$wims_ref_name?session=$wims_session&cmd=getfile&special_parm=photoboard/$getuser" alt="$getuser photo" /> |
12466 | bpr | 5 | </div> |
12002 | guerimand | 6 | !else |
12466 | bpr | 7 | !if $user_photourl!=$empty |
13173 | obado | 8 | <div id="userlogo" class="float_right"> |
9 | <img src="$user_photourl" alt="user photo" /> |
||
10 | </div> |
||
12466 | bpr | 11 | !endif |
11919 | guerimand | 12 | !endif |
9023 | guerimand | 13 | !read adm/title.phtml 1\ |
14 | $classname\ |
||
15 | $wims_name_account_property |
||
23 | reyssat | 16 | |
17 | !if $error!=$empty |
||
12466 | bpr | 18 | <div class="wims_msg alert"> |
13173 | obado | 19 | !read lang/msg.phtml.$moduclass_lang |
12466 | bpr | 20 | </div> |
23 | reyssat | 21 | !endif |
22 | |||
23 | !set inplen=40 |
||
8444 | guerimand | 24 | |
9473 | bpr | 25 | !! ----- permet de transferer les scores d'un user provenant d'une classe en partage dans un groupement ou entre des cours d'un même portail |
10359 | bpr | 26 | !if $wims_user=supervisor and $wims_supertype iswordof 2 4 |
8444 | guerimand | 27 | !readproc adm/gateway/transfer $getuser test |
28 | !if $transfer_test>0 |
||
12466 | bpr | 29 | !href module=adm/class/usermanage&job=transfer&getuser=$getuser $name_transfer |
8444 | guerimand | 30 | !endif |
10359 | bpr | 31 | !endif |
8444 | guerimand | 32 | |
13164 | guerimand | 33 | |
11967 | guerimand | 34 | !set wims_form_method=file |
23 | reyssat | 35 | !form reply |
13173 | obado | 36 | <input type="hidden" name="job" value="userprop" /> |
37 | <input type="hidden" name="getuser" value="$getuser" /> |
||
38 | <fieldset class="property_fields halfwidth blockcenter"> |
||
39 | <legend>$wims_name_properties</legend> |
||
13165 | guerimand | 40 | |
13173 | obado | 41 | !if $allowchange!=yes and $wims_realuser!=$class_Supervisor |
42 | <div class="wimscenter"> |
||
43 | !set wims_ref_class=wims_button |
||
44 | !href cmd=reply&job=getclasspwd $name_change |
||
12466 | bpr | 45 | </div> |
7146 | bpr | 46 | !endif |
12066 | guerimand | 47 | |
12466 | bpr | 48 | <div class="field box"> |
13173 | obado | 49 | <strong>$wims_name_Login</strong> |
50 | !reset css_connected |
||
51 | !if $getuser isitemof $wims_connectedlogin and $wims_user=supervisor |
||
52 | !set css_connected=class="tt wims_connected" |
||
53 | !set wims_ref_title=connected |
||
13164 | guerimand | 54 | !else |
13173 | obado | 55 | !set css_connected=class="tt" |
13164 | guerimand | 56 | !endif |
13173 | obado | 57 | <span $css_connected title="connected">$getuser</span> |
13164 | guerimand | 58 | </div> |
13173 | obado | 59 | !if $wims_supertype iswordof 2 4 or ($class_Supervisor=$wims_realuser and $wims_class!=$wims_superclass and $wims_realuser!=$getuser) |
60 | !! --------------------------------- display user_participate (for participant and teacher account) only at the top of structure |
||
61 | !if $user_participate!=$empty and $type_class iswordof 2 4 |
||
62 | <div class="field box"> |
||
63 | <strong>$name_inscript</strong> |
||
64 | <span class="tt"> |
||
65 | !if $wims_supertype=2 |
||
66 | !let liclass=$empty |
||
67 | !else |
||
68 | !let liclass=!nosubst class="wims_classes_direct_$(ltclassname[$po;3])" |
||
69 | !endif |
||
70 | <ul> |
||
71 | !for k in $user_participate |
||
72 | !let po=!positionof item $k in $(ltclassname[;1]) |
||
73 | <li $liclass>$(ltclassname[$po;2]) </li> |
||
74 | !next k |
||
75 | </ul> |
||
76 | </span> |
||
77 | </div> |
||
12939 | guerimand | 78 | !else |
13173 | obado | 79 | !if $user_supervisable=yes |
80 | !if $wims_user=supervisor and $type_class=1 |
||
81 | <div class="field box"> |
||
82 | !if $wims_class isitemof $user_participate |
||
83 | !set superp=yes |
||
84 | !else |
||
85 | !set superp=no |
||
86 | !endif |
||
87 | !if ($wims_realuser=supervisor or $wims_realuser=$class_Supervisor) |
||
88 | !! only supervisor of groupement and creator of class can modify access |
||
89 | <label for="superv">$name_inscript</label> |
||
90 | !set wims_ref_class=wims_formradio tt |
||
91 | !formradio superp list yes,no prompt $wims_name_yes, $wims_name_no |
||
92 | !else |
||
93 | !! other can see |
||
94 | <strong>$name_gestion</strong> |
||
95 | <span class="tt">$(wims_name_$superp)</span> |
||
96 | !endif |
||
97 | </div> |
||
98 | !endif |
||
99 | !endif |
||
12939 | guerimand | 100 | !endif |
13173 | obado | 101 | |
102 | !! ---------------------------------- display/manage user_supervise (for teacher account only) |
||
103 | !if $user_supervisable=yes |
||
104 | <div class="field box"> |
||
105 | !! ---- only at the top of a structure |
||
106 | !if $type_class iswordof 2 4 |
||
107 | !! ---- can modify only for the real supervisor of structure |
||
108 | !if $wims_realuser=supervisor |
||
109 | <label for="up_supervise">$name_gestion</label> |
||
110 | !if $wims_supertype=2 |
||
111 | !let liclass=$empty |
||
112 | !else |
||
113 | !let liclass=!nosubst class="wims_classes_direct_$(ltclassname[$po;3])" |
||
114 | !endif |
||
115 | <ul> |
||
116 | !let nb=!linecnt $ltclassname |
||
117 | !for k=1 to $nb |
||
118 | <li $liclass> |
||
119 | !if $(ltclassname[$k;1]) isitemof $user_supervise |
||
120 | !let check=checked="checked" |
||
121 | !else |
||
122 | !let check=$empty |
||
123 | !endif |
||
124 | <input type="checkbox" name="up_supervise" id="up_supervise_$k" value="$(ltclassname[$k;1])" $check/> |
||
125 | <label for="up_supervise_$k">$(ltclassname[$k;2])</label> |
||
126 | </li> |
||
127 | !next k |
||
128 | </ul> |
||
129 | !else |
||
130 | !! --- can see for other teacher (and so only own property) |
||
131 | $name_gestion |
||
132 | !if $type_class=2 |
||
133 | !let liclass=$empty |
||
134 | !else |
||
135 | !let liclass=!nosubst class="wims_classes_direct_$(ltclassname[$po;3])" |
||
136 | !endif |
||
137 | <ul> |
||
138 | !for k in $user_supervise |
||
139 | !let po=!positionof item $k in $(ltclassname[;1]) |
||
140 | <li $liclass>$(ltclassname[$po;2]) </li> |
||
141 | !next k |
||
142 | </ul> |
||
143 | !endif |
||
144 | !else |
||
145 | !! ---- in subclasses of structure supervisor can modify manage access only to the subclasses. |
||
146 | !if $wims_class isitemof $user_supervise |
||
147 | !set superv=yes |
||
148 | !else |
||
149 | !set superv=no |
||
150 | !endif |
||
151 | !if ($wims_realuser=supervisor or $class_Supervisor=$wims_realuser) and $class_Supervisor!=$getuser |
||
152 | !! only creator supervisor and structure supervisor can modify user_supervise acces to this subclasses. |
||
153 | <label for="superv">$name_gestion</label> |
||
154 | !set wims_ref_class=wims_formradio |
||
155 | !formradio superv list yes,no prompt $wims_name_yes, $wims_name_no |
||
156 | !set up_firstname=$user_firstname |
||
157 | !set up_lastname=$user_lastname |
||
158 | !else |
||
159 | !! other can see |
||
160 | <strong> $name_gestion </strong> $(wims_name_$superv) |
||
161 | !endif |
||
162 | !endif |
||
163 | </div> |
||
16250 | guerimand | 164 | !if $type_class=2 |
165 | <div class="field box"> |
||
166 | !if $wims_realuser=supervisor |
||
167 | <label for="up_mkclass">$name_mkclass</label> |
||
168 | !set up_mkclass=$user_mkclass |
||
169 | !default up_mkclass=yes |
||
170 | !formselect up_mkclass list yes,no prompt $wims_name_yes,$wims_name_no |
||
171 | !else |
||
172 | $name_mkclass |
||
173 | !if $user_mkclass=no |
||
174 | $wims_name_no |
||
175 | !else |
||
176 | $wims_name_yes |
||
177 | !endif |
||
178 | !endif |
||
179 | </div> |
||
180 | !endif |
||
181 | |||
12939 | guerimand | 182 | !endif |
13173 | obado | 183 | !! --------------------- endif user_supervisable=yes |
12939 | guerimand | 184 | !endif |
185 | |||
13173 | obado | 186 | !if $user_supervisable=yes and $getuser!=$wims_realuser and $type_class notwordof 2 4 |
187 | !goto end |
||
188 | !exit |
||
189 | !endif |
||
190 | |||
191 | !if ($class_auth=$empty or $wims_user=supervisor) and $allowchange=yes |
||
192 | <div class="field box"> |
||
193 | <strong>$wims_name_Password</strong> |
||
194 | !set wims_ref_class=wims_button |
||
195 | !href module=adm/class/passwd&job=part&part=$getuser $name_change |
||
196 | </div> |
||
197 | !endif |
||
198 | |||
16044 | guerimand | 199 | !if $wims_user=supervisor |
200 | <div class="field box"> |
||
201 | <strong>$wims_name_lastconnect</strong> |
||
202 | !set lastconnect=!getdef user_lastconnect in wimshome/log/classes/$wims_class/.users/$getuser |
||
203 | !if $lastconnect!=$empty |
||
204 | !read date.phtml $lastconnect |
||
205 | !endif |
||
206 | </div> |
||
207 | !endif |
||
208 | |||
13173 | obado | 209 | !! maybe regnum should be placed at the same of other ? |
210 | !let wims_name_regnum=$name_regnum |
||
211 | !for lab in lastname,firstname,email,regnum |
||
212 | <div class="field box"> |
||
213 | <label for="up_$lab">$(wims_name_$lab)</label> |
||
214 | !if $allowchange=yes |
||
215 | <input size="$inplen" name="up_$lab" id="up_$lab" value="$(user_$lab)" /> |
||
216 | !else |
||
217 | <span class="user_prop_value">$(user_$lab)</span> |
||
218 | !endif |
||
219 | </div> |
||
220 | !next lab |
||
221 | !if $allowchange=yes |
||
222 | <div class="field box"> |
||
223 | <label for="up_photourl">$name_photourl</label> |
||
224 | <input type="url" size="$inplen" name="up_photourl" id="up_photourl" value="$user_photourl" /> |
||
225 | <br/> |
||
226 | <label for="photofile">$name_photofile</label> |
||
227 | <input type="file" size="35" name="wims_deposit" id="photofile" accept="image/*"> |
||
228 | !set wims_ref_class=wims_button wims_warning |
||
13226 | guerimand | 229 | !href module=adm/class/usermanage&cmd=reply&job=userprop&getuser=$getuser&job2=photoerase $wims_name_delete |
13173 | obado | 230 | </div> |
231 | !endif |
||
12934 | guerimand | 232 | <div class="field box"> |
13173 | obado | 233 | <label for="up_comments">$name_comments</label> |
234 | !readproc adm/class/mkcomment val |
||
235 | !let class_version=!record 0 of wimshome/log/classes/$wims_class/version |
||
12941 | guerimand | 236 | !if $wims_user=supervisor |
13173 | obado | 237 | <input size="$inplen" name="up_comments" id="up_comments" value="$scriptout" /> |
238 | <div class="formHelp"> |
||
239 | !if $class_version<6 |
||
240 | $name_commentmessv5 |
||
241 | !else |
||
242 | $name_commentmess |
||
243 | !endif |
||
244 | </div> |
||
245 | !else |
||
246 | !if $scriptout!=$empty and $class_version>=6 |
||
247 | <label for="up_comments">$name_commentuser</label> |
||
248 | $scriptout |
||
249 | !endif |
||
12941 | guerimand | 250 | !endif |
13173 | obado | 251 | |
12941 | guerimand | 252 | </div> |
13173 | obado | 253 | |
254 | !! ---------- display regvar |
||
255 | !for j=1 to $[min($regvars_cnt,$limit_regvars)] |
||
256 | <div class="field box"> |
||
257 | <label for="regprop$j">$(regvars_class[$j])</label> |
||
258 | <input size="16" name="regprop$j" id="regprop$j" value="$(user_regprop$j)" /> |
||
259 | </div> |
||
260 | !next j |
||
261 | !readproc adm/vfilter/listvarfilter.proc |
||
262 | !readproc adm/vfilter/uservarfilter.proc $userdef |
||
263 | !let nb=!linecnt $user_vars |
||
264 | !if $nb>0 |
||
265 | <div class="field box"> |
||
266 | <strong>$name_vars</strong> |
||
267 | !if $wims_user=supervisor |
||
268 | !set wims_ref_class=wims_button |
||
269 | !href module=adm/class/techvar&+job=userprop&+user=$getuser $wims_name_change |
||
270 | !endif |
||
15994 | bpr | 271 | <div class="formHelp">$name_filterhelp</div> |
13173 | obado | 272 | $table_header |
273 | <thead> |
||
15994 | bpr | 274 | <tr><th>$name_name</th><th>$name_value</th></tr> |
13173 | obado | 275 | </thead> |
276 | <tbody> |
||
277 | !for k=1 to $nb |
||
278 | $table_tr |
||
279 | <td>$(user_vars[$k;1])</td><td>$(user_vars[$k;2])</td> |
||
280 | </tr> |
||
281 | !next k |
||
282 | </tbody> |
||
283 | $table_end |
||
284 | </div> |
||
285 | !endif |
||
286 | !if $wims_user=supervisor |
||
287 | <div class="field box"> |
||
288 | <label for="up_external_auth">$name_external_auth</label> |
||
289 | <input size="$inplen" name="up_external_auth" id="up_external_auth" value="$user_external_auth" /> |
||
290 | !set wims_ref_class=wims_button_help float_right |
||
291 | !href cmd=help&special_parm=authentification $wims_name_help |
||
292 | </div> |
||
293 | !endif |
||
294 | |||
295 | :end |
||
296 | !if $allowchange=yes |
||
297 | <div class="wimscenter wimsform"> |
||
298 | <input type="submit" name="reg" value="$wims_name_tosave" /> |
||
299 | <input type="submit" name="abandon" value="$wims_name_giveup" class="wims_secondary_button" /> |
||
300 | </div> |
||
301 | !endif |
||
302 | </fieldset> |
||
5926 | bpr | 303 | !formend |
11919 | guerimand | 304 | |
2031 | bpr | 305 | !if $wims_user=supervisor |
12466 | bpr | 306 | !if ($wims_supertype=4 and $wims_typename!=course) or ($wims_supertype=2 and $wims_typename=group) |
307 | !! no score |
||
308 | !else |
||
309 | !set wims_menu_items=!append line itemsep,0,$wims_name_Evaluation\ |
||
9351 | bpr | 310 | scores,1,module=adm/class/userscore&job=getuser&getuser=$getuser\ |
311 | livret1,1,module=adm/class/livret&job=user&user=$getuser\ |
||
312 | activity1,1,module=adm/class/activity&job=user&user=$getuser\ |
||
8316 | guerimand | 313 | to $wims_menu_items |
12466 | bpr | 314 | !endif |
315 | !set wims_menu_items=!append line \ |
||
10107 | bpr | 316 | itemsep,0,$wims_name_usermanage\ |
9435 | bpr | 317 | delstudent1,1,cmd=reply&job=delprep&delprep=$getuser\ |
9439 | bpr | 318 | to $wims_menu_items |
12466 | bpr | 319 | !read getparm $module_init_parm job |
320 | !if $get_job!=teacher |
||
9473 | bpr | 321 | !read adm/class/getnextuser $wims_class,$getuser,userprop,getuser |
10652 | bpr | 322 | !set wims_menu_items=!append line addstudent,1,module=adm/class/reguser&step=1\ |
10201 | bpr | 323 | itemsep,0,\ |
10359 | bpr | 324 | to $wims_menu_items |
325 | !if $wims_theme=default |
||
12466 | bpr | 326 | !!ARIANE |
10359 | bpr | 327 | !set wims_menu_items=!append line part_list,1,cmd=resume\ |
328 | to $wims_menu_items |
||
329 | !endif |
||
12466 | bpr | 330 | !else |
331 | !set wims_menu_items=!append line itemsep,0,\ |
||
9473 | bpr | 332 | teacherlist,1,module=adm/class/usermanage&job=teacher\ |
9351 | bpr | 333 | to $wims_menu_items |
12466 | bpr | 334 | !if $type_class=2 and $wims_realuser=supervisor |
335 | !set wims_menu_items=!append line addteacher,1, module=adm/class/reguser&step=1&utype=1\ |
||
10359 | bpr | 336 | to $wims_menu_items |
12466 | bpr | 337 | !endif |
338 | !set wims_menu_items=!append line itemsep,0,$wims_name_Evaluation to $wims_menu_items |
||
339 | !endif |
||
9335 | bpr | 340 | !else |
10752 | bpr | 341 | !if $wims_supertype=4 and $wims_typename=course |
12466 | bpr | 342 | !set wims_menu_items=!append line myscore,1,module=adm/class/userscore&job=getuser&getuser=$getuser\ |
10359 | bpr | 343 | to $wims_menu_items |
344 | !endif |
||
10363 | bpr | 345 | !if $wims_theme=default |
12466 | bpr | 346 | !!ARIANE |
10363 | bpr | 347 | !set wims_menu_items=!append line class_home,1,module=home\ |
348 | to $wims_menu_items |
||
349 | !endif |
||
23 | reyssat | 350 | !endif |
351 | !reset reg,abandon |