Subversion Repositories wimsdev

Rev

Rev 17118 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !! called also for a teacher of a portal or classgroup
  2.  
  3. <!-- begin of Nikaia/user.phtml -->
  4. !! Class participant page theme.
  5. !nocache
  6. !if $module!=home
  7.  !exit
  8. !endif
  9. !!initialisation
  10. !set home_theme=yes
  11.  
  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
  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
  25. !endif
  26.  
  27. :normal
  28. !read classlogo.phtml
  29. !if $class_logo!=$empty
  30.   <div id="classlogo" class="float_$class_logoside">
  31.     <img src="$class_logo" alt="class logo">
  32.   </div>
  33. !endif
  34.  
  35. !read ./adm/title.phtml 2\
  36.  <span class="wims_classname">$wims_classname</span> <span class="wims_class_typename">($(wims_name_$class_typename))</span>
  37.  
  38. !read adm/class/initclass $wims_superclass, auth
  39.  
  40. !!FIXME
  41. !!if $auth_method isitemof $auth_method_list
  42.    !!set wims_user_ext=!defof user_external_auth in wimshome/log/classes/$wims_superclass/.users/$wims_user
  43. !!endif
  44. !!default wims_user_ext=$wims_user
  45.  
  46. !! (MC) the following seems to be needed for groupement to go back to
  47. !! the superclass (is it sufficient to change the name of the variable
  48. !! in the links below?)
  49. !default wims_user_ext=$ext_login
  50.  
  51. !!<div class="wims_classes_direct">
  52. !!!if $wims_superclass=$empty or $wims_superclass=$wims_class
  53. !!  $wims_institutionname
  54. !!!else
  55. !!  <span class="wims_classes_direct_portal">
  56. !!   !href module=adm/class/classes&type=authparticipant&class=$wims_superclass&auth_user=$wims_user_ext $wims_institutionname
  57. !!  </span>
  58. !!  !if / isin $class_parent and $class_type=1
  59. !!    !set pname=!defof class_description in wimshome/log/classes/$class_parent/.def
  60. !!  / $
  61. !!   <span class="wims_classes_direct_class">
  62. !!  !href module=adm/class/classes&type=authparticipant&class=$class_parent&auth_user=$wims_user_ext $pname
  63. !! </span>
  64. !! !endif
  65. !!!endif
  66. !!</div> <!--wims_classes_direct-->
  67.  
  68. <div class="wims_content">
  69.  
  70. !if _tool isin $wims_session
  71.   !read ./tools.phtml
  72.   !goto end
  73. !endif
  74.  
  75. !if $n_>=4
  76.   !read themes/_widgets/examsession.phtml $etest
  77.   !if $shortout!=$empty
  78.     !goto end
  79.   !endif
  80. !endif
  81. <p class="wims_greetings">$U_greet</p>
  82.  
  83. !if & isin $newmsgcnt or $newmsgcnt>0
  84.   <p class="wims_msg info">
  85.     !href module=adm/forum/mboard $U_newmsg
  86.   </p>
  87. !endif
  88.  
  89. !if $wims_supconnectshowed=yes and $wims_supervisorconnected!=$empty
  90.   <p class="wims_connected">$U_supconnected</p>
  91. !endif
  92.  
  93. !read themes/_widgets/motd.phtml
  94.  
  95. !if $class_type>=2
  96.   !read ./subclasses.phtml
  97.   !set is_interclass=yes
  98. !endif
  99.  
  100. !set seq_cnt=!record 0 of wimshome/log/classes/$wims_class/seq/.sequences
  101. !set seq_cnt=!line 1 of $seq_cnt
  102. !set seq_open=!defof sequence_open in wimshome/log/classes/$wims_class/seq/.def
  103.  
  104. !if $seq_open=yes
  105.   !if $seq_cnt>0
  106.     !read themes/_widgets/sequence.phtml
  107.   !endif
  108.   !goto endbar
  109. !endif
  110.  
  111. !!define variable $dcnt and dpcnt
  112. !read themes/_widgets/user_vardoc.phtml
  113. !read themes/_widgets/user_vardocp.phtml
  114.  
  115. !!define variable $n
  116. !read themes/_widgets/user_varsheet.phtml
  117.  
  118. !!define variable $m
  119. !read themes/_widgets/user_varexam.phtml
  120.  
  121. !!define variable $v
  122. !read themes/_widgets/user_varvote.phtml
  123.  
  124. !!define variable $gr
  125. !read themes/_widgets/user_varmanual.phtml
  126.  
  127. !!define variable $tcnt
  128. !read themes/_widgets/user_vartool.phtml
  129.  
  130. !!define variable $fwcnt
  131. !read themes/_widgets/user_varfreework.phtml
  132.  
  133. !!define variable $gcnt
  134. !read themes/_widgets/user_varglossary.phtml
  135. <div id="widget_user_list">
  136.   !ifval $dcnt+$dpcnt+$n+$m+$v+$tcnt+$gcnt>1
  137.     !if $jquery_defined=yes
  138.       !read adm/tabscript user_list
  139.     !endif
  140.     <ul id="wims_user_summary">
  141.       !if $[$dcnt+$dpcnt]>0
  142.         <li><a class="wims_doc_item" href="#wims_user_doc">$wims_name_Docs</a></li>
  143.       !endif
  144.       !if $n>0
  145.         <li><a class="wims_sheet_item" href="#wims_user_sheet">$wims_name_Sheets</a></li>
  146.       !endif
  147.       !if $m>0
  148.         <li><a class="wims_exam_item" href="#wims_user_exam">$wims_name_Examens</a></li>
  149.       !endif
  150.       !if $v>0
  151.         <li><a class="wims_vote_item" href="#wims_user_vote">$wims_name_Votes</a></li>
  152.       !endif
  153.       !if $tcnt+$gcnt>0
  154.         <li><a class="wims_tool_item" href="#wims_user_tool">$wims_name_tools</a></li>
  155.       !endif
  156.       !if $fwcnt>0
  157.         <li><a class="wims_freework_item" href="#wims_user_freework">$wims_name_Freeworks</a></li>
  158.       !endif
  159.     </ul>
  160.   !endif
  161.  
  162.   !read themes/_widgets/userdoc.phtml
  163.   !read themes/_widgets/usersheet.phtml
  164.   !read themes/_widgets/userexam.phtml
  165.   !read themes/_widgets/uservote.phtml
  166.   !read themes/_widgets/usertool.phtml
  167.   !read themes/_widgets/userfreework.phtml
  168. </div>
  169.  
  170. !read adm/class/seq_legend.phtml
  171. <br class="clearall">
  172.  
  173. !ifval $dcnt+$dpcnt+$n+$m+$v+$tcnt+$fwcnt=0
  174.   !if $is_interclass!=yes
  175.     <div class="wims_msg info">$U_nosheet</div>
  176.   !endif
  177. !endif
  178.  
  179. :endbar
  180. </div><!--wims_content-->
  181. </div><!--wimsbody-->
  182. </div><!--wimspagebox-->
  183.  
  184.  
  185. !read themes/_procs/usermenumodubox.proc
  186. !set wims_homeref_n0=!linecnt $wims_rm_0
  187.  
  188. !!must have read user*.phtml,  with *=sheet, exam must be read before
  189. !distribute items ul,li into div0,div1
  190. !read themes/_widgets/menumodubox.phtml
  191. !read themes/_widgets/usermenubox.phtml
  192. !reset div0 div1
  193.  
  194. !read themes/_widgets/topback.phtml
  195. </div><!--end of wimsbodybox-->
  196.  
  197. :end
  198. !read themes/_widgets/session_warn.phtml
  199. !read themes/_widgets/footer_foundation.phtml
  200. </body>
  201. </html>
  202. <!-- end of Nikaia/user.phtml -->
  203.