Rev 17118 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5964 | bpr | 1 | <!-- begin of $wims_theme/user.phtml --> |
2 | |||
21 | reyssat | 3 | !! Class participant page theme. |
4 | !nocache |
||
5 | !if $module!=home |
||
6 | !exit |
||
7 | !endif |
||
6022 | bpr | 8 | !!initialisation |
21 | reyssat | 9 | !set home_theme=yes |
10 | !set percents=!getscorepercent |
||
11 | !set class_homepage=!getdef class_homepage in wimshome/log/classes/$wims_class/.def |
||
12 | !set etest=!record 0 of wimshome/log/classes/$wims_class/.parmreg/$wims_user.exam |
||
13 | !set n_=!wordcnt $etest |
||
14 | |||
15 | !if / isin $class_homepage and _tool notin $wims_session |
||
16 | !set deffile=wimshome/log/classes/$wims_class/doc/$class_homepage.def |
||
17 | !set t_=!getdef titb in $deffile |
||
18 | !if $t_=$empty or $n_>=4 |
||
19 | !goto normal |
||
20 | !endif |
||
21 | !read ./userhome.phtml |
||
22 | !goto end |
||
23 | !endif |
||
24 | |||
25 | :normal |
||
26 | !read classlogo.phtml |
||
6292 | schaersvoo | 27 | !if $class_logo!=$empty |
17170 | bpr | 28 | <img src="$class_logo" alt="logo" style="border:0px">. |
6292 | schaersvoo | 29 | !endif |
1433 | bpr | 30 | |
6292 | schaersvoo | 31 | |
1433 | bpr | 32 | !endif |
5990 | bpr | 33 | <div class="wimscenter"> |
6240 | bpr | 34 | <span style="font-weight:bold;font-size:large;">$wims_classname</span> |
17170 | bpr | 35 | <br> |
21 | reyssat | 36 | !if $wims_superclass=$empty or $wims_superclass=$wims_class |
5990 | bpr | 37 | $wims_institutionname |
21 | reyssat | 38 | !else |
5990 | bpr | 39 | <span class="wims_classes_direct_portal"> |
40 | !href module=adm/class/classes&type=authparticipant&class=$wims_superclass&auth_user=$wims_user_ext $wims_institutionname |
||
41 | </span> |
||
21 | reyssat | 42 | !if / isin $class_parent and $class_type=1 |
5990 | bpr | 43 | !set pname=!defof class_description in wimshome/log/classes/$class_parent/.def |
7756 | bpr | 44 | / |
5990 | bpr | 45 | <span class="wims_classes_direct_class"> |
46 | !href module=adm/class/classes&type=authparticipant&class=$class_parent&auth_user=$wims_user_ext $pname |
||
47 | </span> |
||
21 | reyssat | 48 | !endif |
49 | !endif |
||
5990 | bpr | 50 | </div> |
17170 | bpr | 51 | <br style="clear:both;"></div> |
6292 | schaersvoo | 52 | <div class="wimsbody"> |
21 | reyssat | 53 | |
54 | !if _tool isin $wims_session |
||
55 | !read ./tools.phtml |
||
56 | !goto end |
||
57 | !endif |
||
6002 | bpr | 58 | !set supmail=!mailurl $wims_supervisormail $wims_name_mail |
59 | !set supmail=!replace internal <a by <a class="mail" in $supmail |
||
21 | reyssat | 60 | !if $n_>=4 |
17115 | guerimand | 61 | !read themes/_widgets/examsession.phtml $etest |
17118 | guerimand | 62 | !if $shortout!=$empty |
17115 | guerimand | 63 | !goto end |
21 | reyssat | 64 | !endif |
65 | !endif |
||
66 | $U_greet |
||
5990 | bpr | 67 | <span class="small"> |
21 | reyssat | 68 | !if $class_type isin 234 |
8994 | guerimand | 69 | !href module=adm/class/usermanage&job=userprop $wims_name_account |
21 | reyssat | 70 | |
71 | !endif |
||
11623 | bpr | 72 | !href target=wims_help module=help/main&chapter=3 $wims_name_whelp |
5990 | bpr | 73 | </span> |
21 | reyssat | 74 | |
75 | !if & isin $newmsgcnt or $newmsgcnt>0 |
||
10969 | bpr | 76 | <p class="wims_msg info"> |
21 | reyssat | 77 | !href module=adm/forum/mboard $U_newmsg |
5990 | bpr | 78 | </p> |
21 | reyssat | 79 | !endif |
80 | |||
5426 | guerimand | 81 | !if $wims_supconnectshowed=yes and $wims_supervisorconnected!=$empty |
10969 | bpr | 82 | <p class="wims_connected">$U_supconnected</p> |
5426 | guerimand | 83 | !endif |
84 | |||
5990 | bpr | 85 | !read themes/_widgets/motd.phtml |
1325 | bpr | 86 | |
21 | reyssat | 87 | !if $class_type>=2 |
88 | !read ./subclasses.phtml |
||
89 | !set is_interclass=yes |
||
90 | !endif |
||
5990 | bpr | 91 | |
1440 | bpr | 92 | !set seq_cnt=!record 0 of wimshome/log/classes/$wims_class/seq/.sequences |
1967 | bpr | 93 | !set seq_cnt=!line 1 of $seq_cnt |
1440 | bpr | 94 | !set seq_open=!defof sequence_open in wimshome/log/classes/$wims_class/seq/.def |
6527 | bpr | 95 | |
1440 | bpr | 96 | !if $seq_open=yes and $seq_cnt>0 |
1520 | bpr | 97 | <div class="wims_user_myscore"> |
8994 | guerimand | 98 | !href module=adm/class/userscore $wims_name_myscore |
1520 | bpr | 99 | </div> |
6002 | bpr | 100 | !read themes/_widgets/sequence.phtml |
1440 | bpr | 101 | !goto endbar |
102 | !endif |
||
5990 | bpr | 103 | !!define variable $dcnt |
7756 | bpr | 104 | !read themes/$wims_theme/_widgets/userdoc.phtml |
5990 | bpr | 105 | !!define variable dpcnt |
7756 | bpr | 106 | !read themes/$wims_theme/_widgets/userdocp.phtml |
5990 | bpr | 107 | !!define variable $n |
7756 | bpr | 108 | !read themes/$wims_theme/_widgets/usersheet.phtml |
5990 | bpr | 109 | !!define variable $m |
7756 | bpr | 110 | !read themes/$wims_theme/_widgets/userexam.phtml |
5990 | bpr | 111 | !!define variable $v |
7756 | bpr | 112 | !read themes/$wims_theme/_widgets/uservote.phtml |
15298 | schaersvoo | 113 | !!define variable $fwcnt |
114 | !read themes/_widgets/user_varfreework.phtml |
||
16288 | guerimand | 115 | !ifval $dcnt+$dpcnt+$n+$m+$v+$fwcnt=0 |
21 | reyssat | 116 | !if $is_interclass!=yes |
117 | $U_nosheet |
||
118 | !endif |
||
119 | !else |
||
120 | !if $is_interclass!=yes |
||
500 | bpr | 121 | !!$U_assign |
122 | <div class="wims_user_myscore"> |
||
8994 | guerimand | 123 | !href module=adm/class/userscore $wims_name_myscore |
5843 | bpr | 124 | </div> |
21 | reyssat | 125 | !endif |
126 | !endif |
||
127 | |||
128 | :endbar |
||
6292 | schaersvoo | 129 | <table class="wims_table" style="width:90%"> |
130 | <tr> |
||
131 | <td style="text-align:left"> |
||
3960 | bpr | 132 | !href module=adm/class/classes&type=participant $wims_name_U_oclass |
17170 | bpr | 133 | <br> |
3960 | bpr | 134 | !href cmd=close&module=home $wims_name_visitor |
5991 | bpr | 135 | |
136 | !read themes/_widgets/extlink.phtml |
||
6292 | schaersvoo | 137 | </td> |
138 | <td style="text-align:center"> |
||
21 | reyssat | 139 | !if $exist_cdt=yes |
3960 | bpr | 140 | !href module=adm/class/cdt $wims_name_cdt |
21 | reyssat | 141 | / |
142 | !endif |
||
3960 | bpr | 143 | !href module=adm/forum/mboard $wims_name_forum |
17170 | bpr | 144 | <br> |
3960 | bpr | 145 | !mailurl $wims_supervisormail $wims_name_mail |
6292 | schaersvoo | 146 | </td> |
147 | <td style="text-align:right"> |
||
3960 | bpr | 148 | !href module=adm/light&phtml=useropts.phtml.$lang $wims_name_pref |
17170 | bpr | 149 | <br> |
3960 | bpr | 150 | !href module=adm/class/passwd $wims_name_passwd |
6292 | schaersvoo | 151 | </td> |
152 | </tr> |
||
153 | </table> |
||
154 | <p style="text-align:center"><small>WIMS-$wims_version@$httpd_HTTP_HOST</small></p> |
||
21 | reyssat | 155 | :end |
156 | !if $wims_user=supervisor |
||
5755 | bpr | 157 | <div class="wimscenter"> |
21 | reyssat | 158 | !href $ $SU_Bhome |
5755 | bpr | 159 | </div> |
21 | reyssat | 160 | !endif |
6527 | bpr | 161 | </div> |
162 | </body> |
||
1136 | bpr | 163 | </html> |
6022 | bpr | 164 | <!-- end of $wims_theme/user.phtml --> |
21 | reyssat | 165 |