Subversion Repositories wimsdev

Rev

Rev 17814 | 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 $wims_theme/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. !read themes/_widgets/classtitle.phtml
  35.  
  36. !read adm/class/initclass $wims_superclass, auth
  37.  
  38. !!FIXME
  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
  42. !!default wims_user_ext=$wims_user
  43.  
  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
  46. !! in the links below?)
  47. !default wims_user_ext=$ext_login
  48.  
  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-->
  64.  
  65. !if _tool isin $wims_session
  66.   !read ./tools.phtml
  67.   !goto end
  68. !endif
  69.  
  70. !if $n_>=4
  71.   !read themes/_widgets/examsession.phtml $etest
  72.   !if $shortout!=$empty
  73.     !goto end
  74.   !endif
  75. !endif
  76. <p class="wims_greetings">$U_greet</p>
  77.  
  78. !if & isin $newmsgcnt or $newmsgcnt>0
  79.   <p class="wims_msg info">
  80.   !href module=adm/forum/mboard $U_newmsg
  81.   </p>
  82. !endif
  83.  
  84. !if $wims_supconnectshowed=yes and $wims_supervisorconnected!=$empty
  85.   <p class="wims_connected">$U_supconnected</p>
  86. !endif
  87.  
  88. !read themes/_widgets/motd.phtml
  89.  
  90. !if $class_type>=2
  91.   !read ./subclasses.phtml
  92.   !set is_interclass=yes
  93. !endif
  94.  
  95. !set seq_cnt=!record 0 of wimshome/log/classes/$wims_class/seq/.sequences
  96. !set seq_cnt=!line 1 of $seq_cnt
  97. !set seq_open=!defof sequence_open in wimshome/log/classes/$wims_class/seq/.def
  98.  
  99. !if $seq_open=yes
  100.   !if $seq_cnt>0
  101.     !read themes/_widgets/sequence.phtml
  102.   !endif
  103.   !goto endbar
  104. !endif
  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
  111. !read themes/_widgets/user_vartool.phtml
  112. !read themes/_widgets/user_varglossary.phtml
  113. !read themes/_widgets/user_varfreework.phtml
  114.  
  115. <div id="widget_user_list">
  116.  
  117. !ifval $gcnt+$tcnt+$dcnt+$dpcnt+$n+$m+$v+$fwcnt>1
  118.   !if $jquery_defined=yes
  119.     !read adm/tabscript user_list
  120.   !endif
  121.   <ul id="wims_user_summary">
  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
  134.   !if $gcnt+$tcnt>0
  135.     <li><a class="wims_tool_item" href="#wims_user_tool">$wims_name_tools</a></li>
  136.   !endif
  137.   !if $fwcnt>0
  138.     <li><a class="wims_freework_item" href="#wims_user_freework">$wims_name_Freeworks</a></li>
  139.   !endif
  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
  148. !read themes/_widgets/userfreework.phtml
  149.  
  150. </div>
  151.  
  152. !ifval $gcnt+$tcnt+$dcnt+$dpcnt+$n+$m+$v+$fwcnt=0
  153.   !if $is_interclass!=yes
  154.     <div class="wims_msg info">$U_nosheet</div>
  155.   !endif
  156. !endif
  157.  
  158. :endbar
  159. </div><!--wimsbody-->
  160. </div><!--wimspagebox-->
  161.  
  162. !!must have read user*.phtml,  with *=sheet, exam must be read before
  163. !distribute items div,div into div0,div1
  164.  
  165. !read themes/_procs/usermenumodubox.proc
  166.  
  167. !set wims_homeref_n0=!linecnt $wims_rm_0
  168. !!read themes/_widgets/usermenumodubox_accordion.phtml
  169. !read themes/_widgets/menumodubox.phtml
  170.  
  171. !read themes/_widgets/topback.phtml
  172.  <br class="clearall">
  173. </div><!--end of wimsbodybox-->
  174. :end
  175. !read themes/_widgets/session_warn.phtml
  176. !read themes/_widgets/footer_foundation.phtml
  177.  
  178. </body>
  179. </html>
  180. <!-- end of $wims_theme/user.phtml -->
  181.