Subversion Repositories wimsdev

Rev

Rev 11623 | Rev 17115 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. <!-- begin of $wims_theme/user.phtml -->
  2.  
  3. !! Class participant page theme.
  4. !nocache
  5. !if $module!=home
  6.  !exit
  7. !endif
  8. !!initialisation
  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
  27. !if $class_logo!=$empty
  28. <img src="$class_logo" alt="logo" style="border:0px" />.
  29. !endif
  30.  
  31.  
  32. !endif
  33. <div class="wimscenter">
  34. <span style="font-weight:bold;font-size:large;">$wims_classname</span>
  35. <br />
  36. !if $wims_superclass=$empty or $wims_superclass=$wims_class
  37.   $wims_institutionname
  38. !else
  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>
  42.   !if / isin $class_parent and $class_type=1
  43.     !set pname=!defof class_description in wimshome/log/classes/$class_parent/.def
  44.   /
  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>
  48.  !endif
  49. !endif
  50. </div>
  51. <br style="clear:both;" /></div>
  52. <div class="wimsbody">
  53.  
  54. !if _tool isin $wims_session
  55.  !read ./tools.phtml
  56.  !goto end
  57. !endif
  58. !set supmail=!mailurl $wims_supervisormail $wims_name_mail
  59. !set supmail=!replace internal <a by <a class="mail" in $supmail
  60. !if $n_>=4
  61.  !distribute words $etest into h_,s_,t_,n_
  62.  !set r_=!record 0 of wimshome/sessions/$s_/examreg.$n_
  63.  !set now=$wims_nowseconds
  64.  !set ws=!translate _ to $ $ in $wims_session
  65.  !set ws=!word 1 of $ws
  66.  !set sm=!record 0 of wimshome/log/classes/$wims_class/.E$n_
  67.  !if $r_!=$empty and $s_!=$ws and $t_>$now and $sm!=#
  68.  <span class="wims_warning">$wims_name_warning</span>.
  69.   $U_examworking
  70.   !if $h_=$httpd_REMOTE_ADDR
  71.    !href session=$s_&module=adm/class/exam&job=student&exam=$n_ $U_examcont
  72.   !else
  73.    $U_examdouble
  74.    !sh rm -f ../sessions/$ws/var.stat >/dev/null
  75.   !endif
  76.   !goto end
  77.  !endif
  78.  !if $t_<$now or $r_=$empty
  79.   !writefile wimshome/log/classes/$wims_class/.parmreg/$wims_user.exam
  80.  !endif
  81. !endif
  82. $U_greet
  83. <span class="small">
  84. !if $class_type isin 234
  85.  !href module=adm/class/usermanage&job=userprop $wims_name_account
  86.  &nbsp;
  87. !endif
  88. !href target=wims_help module=help/main&chapter=3 $wims_name_whelp
  89. </span>
  90.  
  91. !if & isin $newmsgcnt or $newmsgcnt>0
  92.  <p class="wims_msg info">
  93.  !href module=adm/forum/mboard $U_newmsg
  94.  </p>
  95. !endif
  96.  
  97. !if $wims_supconnectshowed=yes and $wims_supervisorconnected!=$empty
  98.  <p class="wims_connected">$U_supconnected</p>
  99. !endif
  100.  
  101. !read themes/_widgets/motd.phtml
  102.  
  103. !if $class_type>=2
  104.  !read ./subclasses.phtml
  105.  !set is_interclass=yes
  106. !endif
  107.  
  108. !set seq_cnt=!record 0 of wimshome/log/classes/$wims_class/seq/.sequences
  109. !set seq_cnt=!line 1 of $seq_cnt
  110. !set seq_open=!defof sequence_open in wimshome/log/classes/$wims_class/seq/.def
  111.  
  112. !if $seq_open=yes and $seq_cnt>0
  113.  <div class="wims_user_myscore">
  114.  !href module=adm/class/userscore $wims_name_myscore
  115. </div>
  116.  !read themes/_widgets/sequence.phtml
  117.   !goto endbar
  118. !endif
  119. !!define variable $dcnt
  120. !read themes/$wims_theme/_widgets/userdoc.phtml
  121. !!define variable dpcnt
  122. !read themes/$wims_theme/_widgets/userdocp.phtml
  123. !!define variable $n
  124. !read themes/$wims_theme/_widgets/usersheet.phtml
  125. !!define variable $m
  126. !read themes/$wims_theme/_widgets/userexam.phtml
  127. !!define variable $v
  128. !read themes/$wims_theme/_widgets/uservote.phtml
  129. !!define variable $fwcnt
  130. !read themes/_widgets/user_varfreework.phtml
  131. !ifval $dcnt+$dpcnt+$n+$m+$v=0
  132.  !if $is_interclass!=yes
  133.  $U_nosheet
  134.  !endif
  135. !else
  136.  !if $is_interclass!=yes
  137.  !!$U_assign
  138.  <div class="wims_user_myscore">
  139.  !href module=adm/class/userscore $wims_name_myscore
  140. </div>
  141.  !endif
  142. !endif
  143.  
  144. :endbar
  145. <table class="wims_table" style="width:90%">
  146. <tr>
  147. <td style="text-align:left">
  148. !href module=adm/class/classes&type=participant $wims_name_U_oclass
  149. <br />
  150. !href cmd=close&module=home $wims_name_visitor
  151.  
  152. !read themes/_widgets/extlink.phtml
  153. </td>
  154. <td style="text-align:center">
  155. !if $exist_cdt=yes
  156.   !href module=adm/class/cdt $wims_name_cdt
  157.   &nbsp; / &nbsp;
  158. !endif
  159. !href module=adm/forum/mboard $wims_name_forum
  160. <br />
  161. !mailurl $wims_supervisormail $wims_name_mail
  162. </td>
  163. <td style="text-align:right">
  164. !href module=adm/light&phtml=useropts.phtml.$lang $wims_name_pref
  165. <br />
  166. !href module=adm/class/passwd $wims_name_passwd
  167. </td>
  168. </tr>
  169. </table>
  170. <p style="text-align:center"><small>WIMS-$wims_version@$httpd_HTTP_HOST</small></p>
  171. :end
  172. !if $wims_user=supervisor
  173.  <div class="wimscenter">
  174.  !href $ $SU_Bhome
  175.  </div>
  176. !endif
  177. </div>
  178. </body>
  179. </html>
  180. <!-- end of $wims_theme/user.phtml -->
  181.  
  182.