Subversion Repositories wimsdev

Rev

Rev 17118 | 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.   !read themes/_widgets/examsession.phtml $etest
  62.   !if $shortout!=$empty
  63.     !goto end
  64.   !endif
  65. !endif
  66. $U_greet
  67. <span class="small">
  68. !if $class_type isin 234
  69.  !href module=adm/class/usermanage&job=userprop $wims_name_account
  70.  &nbsp;
  71. !endif
  72. !href target=wims_help module=help/main&chapter=3 $wims_name_whelp
  73. </span>
  74.  
  75. !if & isin $newmsgcnt or $newmsgcnt>0
  76.  <p class="wims_msg info">
  77.  !href module=adm/forum/mboard $U_newmsg
  78.  </p>
  79. !endif
  80.  
  81. !if $wims_supconnectshowed=yes and $wims_supervisorconnected!=$empty
  82.  <p class="wims_connected">$U_supconnected</p>
  83. !endif
  84.  
  85. !read themes/_widgets/motd.phtml
  86.  
  87. !if $class_type>=2
  88.  !read ./subclasses.phtml
  89.  !set is_interclass=yes
  90. !endif
  91.  
  92. !set seq_cnt=!record 0 of wimshome/log/classes/$wims_class/seq/.sequences
  93. !set seq_cnt=!line 1 of $seq_cnt
  94. !set seq_open=!defof sequence_open in wimshome/log/classes/$wims_class/seq/.def
  95.  
  96. !if $seq_open=yes and $seq_cnt>0
  97.  <div class="wims_user_myscore">
  98.  !href module=adm/class/userscore $wims_name_myscore
  99. </div>
  100.  !read themes/_widgets/sequence.phtml
  101.   !goto endbar
  102. !endif
  103. !!define variable $dcnt
  104. !read themes/$wims_theme/_widgets/userdoc.phtml
  105. !!define variable dpcnt
  106. !read themes/$wims_theme/_widgets/userdocp.phtml
  107. !!define variable $n
  108. !read themes/$wims_theme/_widgets/usersheet.phtml
  109. !!define variable $m
  110. !read themes/$wims_theme/_widgets/userexam.phtml
  111. !!define variable $v
  112. !read themes/$wims_theme/_widgets/uservote.phtml
  113. !!define variable $fwcnt
  114. !read themes/_widgets/user_varfreework.phtml
  115. !ifval $dcnt+$dpcnt+$n+$m+$v+$fwcnt=0
  116.  !if $is_interclass!=yes
  117.  $U_nosheet
  118.  !endif
  119. !else
  120.  !if $is_interclass!=yes
  121.  !!$U_assign
  122.  <div class="wims_user_myscore">
  123.  !href module=adm/class/userscore $wims_name_myscore
  124. </div>
  125.  !endif
  126. !endif
  127.  
  128. :endbar
  129. <table class="wims_table" style="width:90%">
  130. <tr>
  131. <td style="text-align:left">
  132. !href module=adm/class/classes&type=participant $wims_name_U_oclass
  133. <br>
  134. !href cmd=close&module=home $wims_name_visitor
  135.  
  136. !read themes/_widgets/extlink.phtml
  137. </td>
  138. <td style="text-align:center">
  139. !if $exist_cdt=yes
  140.   !href module=adm/class/cdt $wims_name_cdt
  141.   &nbsp; / &nbsp;
  142. !endif
  143. !href module=adm/forum/mboard $wims_name_forum
  144. <br>
  145. !mailurl $wims_supervisormail $wims_name_mail
  146. </td>
  147. <td style="text-align:right">
  148. !href module=adm/light&phtml=useropts.phtml.$lang $wims_name_pref
  149. <br>
  150. !href module=adm/class/passwd $wims_name_passwd
  151. </td>
  152. </tr>
  153. </table>
  154. <p style="text-align:center"><small>WIMS-$wims_version@$httpd_HTTP_HOST</small></p>
  155. :end
  156. !if $wims_user=supervisor
  157.  <div class="wimscenter">
  158.  !href $ $SU_Bhome
  159.  </div>
  160. !endif
  161. </div>
  162. </body>
  163. </html>
  164. <!-- end of $wims_theme/user.phtml -->
  165.  
  166.