Rev 17170 | 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"> |
17170 | bpr | 31 | <img src="$class_logo" alt="class logo"> |
12338 | bpr | 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 |
17115 | guerimand | 71 | !read themes/_widgets/examsession.phtml $etest |
17118 | guerimand | 72 | !if $shortout!=$empty |
12338 | bpr | 73 | !goto end |
1108 | czzmrn | 74 | !endif |
75 | !endif |
||
9610 | obado | 76 | <p class="wims_greetings">$U_greet</p> |
1108 | czzmrn | 77 | |
78 | !if & isin $newmsgcnt or $newmsgcnt>0 |
||
12338 | bpr | 79 | <p class="wims_msg info"> |
80 | !href module=adm/forum/mboard $U_newmsg |
||
81 | </p> |
||
1108 | czzmrn | 82 | !endif |
83 | |||
5426 | guerimand | 84 | !if $wims_supconnectshowed=yes and $wims_supervisorconnected!=$empty |
12338 | bpr | 85 | <p class="wims_connected">$U_supconnected</p> |
5352 | guerimand | 86 | !endif |
5843 | bpr | 87 | |
5989 | bpr | 88 | !read themes/_widgets/motd.phtml |
1276 | bpr | 89 | |
1108 | czzmrn | 90 | !if $class_type>=2 |
12338 | bpr | 91 | !read ./subclasses.phtml |
92 | !set is_interclass=yes |
||
1108 | czzmrn | 93 | !endif |
5989 | bpr | 94 | |
1407 | bpr | 95 | !set seq_cnt=!record 0 of wimshome/log/classes/$wims_class/seq/.sequences |
1630 | bpr | 96 | !set seq_cnt=!line 1 of $seq_cnt |
1407 | bpr | 97 | !set seq_open=!defof sequence_open in wimshome/log/classes/$wims_class/seq/.def |
5989 | bpr | 98 | |
7036 | bpr | 99 | !if $seq_open=yes |
100 | !if $seq_cnt>0 |
||
101 | !read themes/_widgets/sequence.phtml |
||
102 | !endif |
||
1407 | bpr | 103 | !goto endbar |
104 | !endif |
||
10015 | bpr | 105 | |
106 | !read themes/_widgets/user_vardoc.phtml |
||
107 | !read themes/_widgets/user_vardocp.phtml |
||
108 | !read themes/_widgets/user_varsheet.phtml |
||
109 | !read themes/_widgets/user_varexam.phtml |
||
110 | !read themes/_widgets/user_varvote.phtml |
||
12338 | bpr | 111 | !read themes/_widgets/user_vartool.phtml |
12832 | bpr | 112 | !read themes/_widgets/user_varglossary.phtml |
14297 | guerimand | 113 | !read themes/_widgets/user_varfreework.phtml |
12832 | bpr | 114 | |
10509 | obado | 115 | <div id="widget_user_list"> |
116 | |||
14308 | guerimand | 117 | !ifval $gcnt+$tcnt+$dcnt+$dpcnt+$n+$m+$v+$fwcnt>1 |
12338 | bpr | 118 | !if $jquery_defined=yes |
119 | !read adm/tabscript user_list |
||
120 | !endif |
||
121 | <ul id="wims_user_summary"> |
||
12610 | bpr | 122 | !if $[$dcnt+$dpcnt]>0 |
123 | <li><a class="wims_doc_item" href="#wims_user_doc">$wims_name_Docs</a></li> |
||
124 | !endif |
||
125 | !if $n>0 |
||
126 | <li><a class="wims_sheet_item" href="#wims_user_sheet">$wims_name_Sheets</a></li> |
||
127 | !endif |
||
128 | !if $m>0 |
||
129 | <li><a class="wims_exam_item" href="#wims_user_exam">$wims_name_Examens</a></li> |
||
130 | !endif |
||
131 | !if $v>0 |
||
132 | <li><a class="wims_vote_item" href="#wims_user_vote">$wims_name_Votes</a></li> |
||
133 | !endif |
||
12832 | bpr | 134 | !if $gcnt+$tcnt>0 |
12610 | bpr | 135 | <li><a class="wims_tool_item" href="#wims_user_tool">$wims_name_tools</a></li> |
136 | !endif |
||
14297 | guerimand | 137 | !if $fwcnt>0 |
138 | <li><a class="wims_freework_item" href="#wims_user_freework">$wims_name_Freeworks</a></li> |
||
139 | !endif |
||
12338 | bpr | 140 | </ul> |
141 | !endif |
||
142 | !read themes/_widgets/userdoc.phtml |
||
143 | !read themes/_widgets/usersheet.phtml |
||
144 | !read themes/_widgets/userexam.phtml |
||
145 | !read themes/_widgets/uservote.phtml |
||
146 | !read themes/_widgets/user_varmanual.phtml |
||
147 | !read themes/_widgets/usertool.phtml |
||
14297 | guerimand | 148 | !read themes/_widgets/userfreework.phtml |
11542 | bpr | 149 | |
10015 | bpr | 150 | </div> |
10509 | obado | 151 | |
16288 | guerimand | 152 | !ifval $gcnt+$tcnt+$dcnt+$dpcnt+$n+$m+$v+$fwcnt=0 |
12338 | bpr | 153 | !if $is_interclass!=yes |
154 | <div class="wims_msg info">$U_nosheet</div> |
||
155 | !endif |
||
5990 | bpr | 156 | !endif |
1407 | bpr | 157 | |
1108 | czzmrn | 158 | :endbar |
1276 | bpr | 159 | </div><!--wimsbody--> |
1414 | bpr | 160 | </div><!--wimspagebox--> |
6038 | bpr | 161 | |
5989 | bpr | 162 | !!must have read user*.phtml, with *=sheet, exam must be read before |
6038 | bpr | 163 | !distribute items div,div into div0,div1 |
164 | |||
10042 | bpr | 165 | !read themes/_procs/usermenumodubox.proc |
17814 | bpr | 166 | !debug $wims_rm_0 |
10042 | bpr | 167 | !set wims_homeref_n0=!linecnt $wims_rm_0 |
168 | !!read themes/_widgets/usermenumodubox_accordion.phtml |
||
169 | !read themes/_widgets/menumodubox.phtml |
||
170 | |||
9548 | bpr | 171 | !read themes/_widgets/topback.phtml |
17170 | bpr | 172 | <br class="clearall"> |
4058 | obado | 173 | </div><!--end of wimsbodybox--> |
4080 | bpr | 174 | :end |
13433 | bpr | 175 | !read themes/_widgets/session_warn.phtml |
13840 | obado | 176 | !read themes/_widgets/footer_foundation.phtml |
12004 | obado | 177 | |
1137 | bpr | 178 | </body> |
179 | </html> |
||
4118 | obado | 180 | <!-- end of $wims_theme/user.phtml --> |