Rev 14308 | Rev 17115 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
10748 | bpr | 1 | !! called also for a teacher of a portal or classgroup |
2 | |||
4118 | obado | 3 | <!-- begin of $wims_theme/user.phtml --> |
1108 | czzmrn | 4 | !! Class participant page theme. |
5 | !nocache |
||
6 | !if $module!=home |
||
12610 | bpr | 7 | !exit |
1108 | czzmrn | 8 | !endif |
5989 | bpr | 9 | !!initialisation |
1108 | czzmrn | 10 | !set home_theme=yes |
1335 | bpr | 11 | |
1108 | czzmrn | 12 | !set percents=!getscorepercent |
13 | !set class_homepage=!getdef class_homepage in wimshome/log/classes/$wims_class/.def |
||
14 | !set etest=!record 0 of wimshome/log/classes/$wims_class/.parmreg/$wims_user.exam |
||
15 | !set n_=!wordcnt $etest |
||
16 | |||
17 | !if / isin $class_homepage and _tool notin $wims_session |
||
12338 | bpr | 18 | !set deffile=wimshome/log/classes/$wims_class/doc/$class_homepage.def |
19 | !set t_=!getdef titb in $deffile |
||
20 | !if $t_=$empty or $n_>=4 |
||
21 | !goto normal |
||
22 | !endif |
||
23 | !read ./userhome.phtml |
||
24 | !goto end |
||
1108 | czzmrn | 25 | !endif |
26 | |||
27 | :normal |
||
28 | !read classlogo.phtml |
||
10969 | bpr | 29 | !if $class_logo!=$empty |
12338 | bpr | 30 | <div id="classlogo" class="float_$class_logoside"> |
31 | <img src="$class_logo" alt="class logo" /> |
||
32 | </div> |
||
1433 | bpr | 33 | !endif |
10622 | bpr | 34 | !read themes/_widgets/classtitle.phtml |
1335 | bpr | 35 | |
5095 | bpr | 36 | !read adm/class/initclass $wims_superclass, auth |
5989 | bpr | 37 | |
5029 | bpr | 38 | !!FIXME |
10180 | bpr | 39 | !!!if $auth_method isitemof $auth_method_list |
40 | !! !set wims_user_ext=!defof user_external_auth in wimshome/log/classes/$wims_superclass/.users/$wims_user |
||
41 | !!!endif |
||
10579 | czzmrn | 42 | !!default wims_user_ext=$wims_user |
5989 | bpr | 43 | |
10622 | bpr | 44 | !! (MC) the following seems to be needed for groupement to go back to |
45 | !! the superclass (is it sufficient to change the name of the variable |
||
10579 | czzmrn | 46 | !! in the links below?) |
47 | !default wims_user_ext=$ext_login |
||
48 | |||
10622 | bpr | 49 | !!<div class="wims_classes_direct"> |
50 | !!!if $wims_superclass=$empty or $wims_superclass=$wims_class |
||
51 | !!!else |
||
52 | !! <span class="wims_classes_direct_portal"> |
||
53 | !! !href module=adm/class/classes&type=authparticipant&class=$wims_superclass&auth_user=$wims_user_ext $wims_institutionname |
||
54 | !! </span> |
||
55 | !! !if / isin $class_parent and $class_type=1 |
||
56 | !! !set pname=!defof class_description in wimshome/log/classes/$class_parent/.def |
||
57 | !! / $ |
||
58 | !!<span class="wims_classes_direct_class"> |
||
59 | !! !href module=adm/class/classes&type=authparticipant&class=$class_parent&auth_user=$wims_user_ext $pname |
||
60 | !! </span> |
||
61 | !! !endif |
||
62 | !!!endif |
||
63 | !!</div> <!--wims_classes_direct--> |
||
1108 | czzmrn | 64 | |
65 | !if _tool isin $wims_session |
||
12338 | bpr | 66 | !read ./tools.phtml |
67 | !goto end |
||
1108 | czzmrn | 68 | !endif |
10370 | obado | 69 | |
1108 | czzmrn | 70 | !if $n_>=4 |
12338 | bpr | 71 | !distribute words $etest into h_,s_,t_,n_ |
72 | !set r_=!record 0 of wimshome/sessions/$s_/examreg.$n_ |
||
73 | !set now=$wims_nowseconds |
||
74 | !set ws=!translate _ to $ $ in $wims_session |
||
75 | !set ws=!word 1 of $ws |
||
76 | !set sm=!record 0 of wimshome/log/classes/$wims_class/.E$n_ |
||
77 | !if $r_!=$empty and $s_!=$ws and $t_>$now and $sm!=# |
||
78 | <span class="wims_warning">$wims_name_warning</span>. |
||
79 | $U_examworking |
||
80 | !if $h_=$httpd_REMOTE_ADDR |
||
81 | !href session=$s_&module=adm/class/exam&job=student&exam=$n_ $U_examcont |
||
82 | !else |
||
83 | $U_examdouble |
||
84 | !sh rm -f ../sessions/$ws/var.stat >/dev/null |
||
85 | !endif |
||
86 | !goto end |
||
1108 | czzmrn | 87 | !endif |
12338 | bpr | 88 | !if $t_<$now or $r_=$empty |
89 | !writefile wimshome/log/classes/$wims_class/.parmreg/$wims_user.exam |
||
90 | !endif |
||
1108 | czzmrn | 91 | !endif |
9610 | obado | 92 | <p class="wims_greetings">$U_greet</p> |
1108 | czzmrn | 93 | |
94 | !if & isin $newmsgcnt or $newmsgcnt>0 |
||
12338 | bpr | 95 | <p class="wims_msg info"> |
96 | !href module=adm/forum/mboard $U_newmsg |
||
97 | </p> |
||
1108 | czzmrn | 98 | !endif |
99 | |||
5426 | guerimand | 100 | !if $wims_supconnectshowed=yes and $wims_supervisorconnected!=$empty |
12338 | bpr | 101 | <p class="wims_connected">$U_supconnected</p> |
5352 | guerimand | 102 | !endif |
5843 | bpr | 103 | |
5989 | bpr | 104 | !read themes/_widgets/motd.phtml |
1276 | bpr | 105 | |
1108 | czzmrn | 106 | !if $class_type>=2 |
12338 | bpr | 107 | !read ./subclasses.phtml |
108 | !set is_interclass=yes |
||
1108 | czzmrn | 109 | !endif |
5989 | bpr | 110 | |
1407 | bpr | 111 | !set seq_cnt=!record 0 of wimshome/log/classes/$wims_class/seq/.sequences |
1630 | bpr | 112 | !set seq_cnt=!line 1 of $seq_cnt |
1407 | bpr | 113 | !set seq_open=!defof sequence_open in wimshome/log/classes/$wims_class/seq/.def |
5989 | bpr | 114 | |
7036 | bpr | 115 | !if $seq_open=yes |
116 | !if $seq_cnt>0 |
||
117 | !read themes/_widgets/sequence.phtml |
||
118 | !endif |
||
1407 | bpr | 119 | !goto endbar |
120 | !endif |
||
10015 | bpr | 121 | |
122 | !read themes/_widgets/user_vardoc.phtml |
||
123 | !read themes/_widgets/user_vardocp.phtml |
||
124 | !read themes/_widgets/user_varsheet.phtml |
||
125 | !read themes/_widgets/user_varexam.phtml |
||
126 | !read themes/_widgets/user_varvote.phtml |
||
12338 | bpr | 127 | !read themes/_widgets/user_vartool.phtml |
12832 | bpr | 128 | !read themes/_widgets/user_varglossary.phtml |
14297 | guerimand | 129 | !read themes/_widgets/user_varfreework.phtml |
12832 | bpr | 130 | |
10509 | obado | 131 | <div id="widget_user_list"> |
132 | |||
14308 | guerimand | 133 | !ifval $gcnt+$tcnt+$dcnt+$dpcnt+$n+$m+$v+$fwcnt>1 |
12338 | bpr | 134 | !if $jquery_defined=yes |
135 | !read adm/tabscript user_list |
||
136 | !endif |
||
137 | <ul id="wims_user_summary"> |
||
12610 | bpr | 138 | !if $[$dcnt+$dpcnt]>0 |
139 | <li><a class="wims_doc_item" href="#wims_user_doc">$wims_name_Docs</a></li> |
||
140 | !endif |
||
141 | !if $n>0 |
||
142 | <li><a class="wims_sheet_item" href="#wims_user_sheet">$wims_name_Sheets</a></li> |
||
143 | !endif |
||
144 | !if $m>0 |
||
145 | <li><a class="wims_exam_item" href="#wims_user_exam">$wims_name_Examens</a></li> |
||
146 | !endif |
||
147 | !if $v>0 |
||
148 | <li><a class="wims_vote_item" href="#wims_user_vote">$wims_name_Votes</a></li> |
||
149 | !endif |
||
12832 | bpr | 150 | !if $gcnt+$tcnt>0 |
12610 | bpr | 151 | <li><a class="wims_tool_item" href="#wims_user_tool">$wims_name_tools</a></li> |
152 | !endif |
||
14297 | guerimand | 153 | !if $fwcnt>0 |
154 | <li><a class="wims_freework_item" href="#wims_user_freework">$wims_name_Freeworks</a></li> |
||
155 | !endif |
||
12338 | bpr | 156 | </ul> |
157 | !endif |
||
10509 | obado | 158 | |
12338 | bpr | 159 | !read themes/_widgets/userdoc.phtml |
160 | !read themes/_widgets/usersheet.phtml |
||
161 | !read themes/_widgets/userexam.phtml |
||
162 | !read themes/_widgets/uservote.phtml |
||
163 | !read themes/_widgets/user_varmanual.phtml |
||
164 | !read themes/_widgets/usertool.phtml |
||
14297 | guerimand | 165 | !read themes/_widgets/userfreework.phtml |
11542 | bpr | 166 | |
10015 | bpr | 167 | </div> |
10509 | obado | 168 | |
16288 | guerimand | 169 | !ifval $gcnt+$tcnt+$dcnt+$dpcnt+$n+$m+$v+$fwcnt=0 |
12338 | bpr | 170 | !if $is_interclass!=yes |
171 | <div class="wims_msg info">$U_nosheet</div> |
||
172 | !endif |
||
5990 | bpr | 173 | !endif |
1407 | bpr | 174 | |
1108 | czzmrn | 175 | :endbar |
1276 | bpr | 176 | </div><!--wimsbody--> |
1414 | bpr | 177 | </div><!--wimspagebox--> |
6038 | bpr | 178 | |
5989 | bpr | 179 | !!must have read user*.phtml, with *=sheet, exam must be read before |
6038 | bpr | 180 | !distribute items div,div into div0,div1 |
181 | |||
10042 | bpr | 182 | !read themes/_procs/usermenumodubox.proc |
183 | !set wims_homeref_n0=!linecnt $wims_rm_0 |
||
184 | !!read themes/_widgets/usermenumodubox_accordion.phtml |
||
185 | !read themes/_widgets/menumodubox.phtml |
||
186 | |||
9548 | bpr | 187 | !read themes/_widgets/topback.phtml |
6243 | bpr | 188 | <br class="clearall" /> |
4058 | obado | 189 | </div><!--end of wimsbodybox--> |
4080 | bpr | 190 | :end |
13433 | bpr | 191 | !read themes/_widgets/session_warn.phtml |
13840 | obado | 192 | !read themes/_widgets/footer_foundation.phtml |
12004 | obado | 193 | |
1137 | bpr | 194 | </body> |
195 | </html> |
||
4118 | obado | 196 | <!-- end of $wims_theme/user.phtml --> |