Subversion Repositories wimsdev

Rev

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

  1. <!-- begin of $wims_theme/supervisor.phtml -->
  2. !! supervisor page definition.
  3. !nocache
  4. !if $module!=home
  5.  !exit
  6. !endif
  7. !set home_theme=yes
  8.  
  9. !set class_authidp=!defof class_authidp in wimshome/log/classes/$wims_superclass/.def
  10. !set auth_method_list=cas,ldap,php
  11. !set auth_method=$(class_authidp[1;])
  12. !if $auth_method isitemof $auth_method_list
  13.   !set ext_login=$wims_external_auth
  14. !endif
  15.  
  16. !default ext_login=$wims_realuser
  17. !default ext_login=$wims_user
  18. !default ext_login=supervisor
  19. !readproc tabletheme
  20.  
  21. !read classlogo.phtml
  22. !if $class_logo!=
  23.  <div id="wimslogo$class_logoside">
  24.   <img src="$class_logo" alt="class logo" class="float_right"/>
  25.  </div><!--classlogo-->
  26. !endif
  27.  
  28. !read ./adm/title.phtml 2\
  29. $wims_classname, $wims_institutionname\
  30. ($SU_log - $(wims_name_$class_typename))
  31.  
  32.  
  33.  
  34. <br class="clearall" />
  35. <div class="wims_content">
  36.  
  37. !if _tool isin $wims_session
  38.  !read ./tools.phtml
  39.  </div><!--wimsbody-->
  40. </div><!--wimspagebox-->
  41.  !goto end
  42. !endif
  43. !!definition for menumodubox
  44. !distribute items div,div into div0,div1
  45.  
  46. !if $class_type isin 3
  47.  $SU_greet.
  48.  !read Subclasses1.phtml
  49.  !if $class_typename=level
  50.     </div><!--wimsbody-->
  51.    </div><!--wimspagebox-->
  52.   !read themes/_widgets/menumodubox3.phtml
  53.   !goto end
  54.  !else
  55.   !goto nocheck
  56.  !endif
  57. !endif class_type = 3
  58.  
  59. !if $class_type notin 13
  60.  $SU_greet
  61.  $SU_exp1
  62.  !set d_=!char 7,8 of $class_expiration
  63.  !set m_=!char 5,6 of $class_expiration
  64.  !set y_=!char 1 to 4 of $class_expiration
  65.  !read adm/date.phtml date,$y_,$m_,$d_
  66.  !href module=adm/class/config $c_date_out
  67.  $SU_exp2.
  68. !else
  69.  $SU_greet.
  70. !endif
  71. !set wims_ref_class=wims_button_help
  72. !href target=wims_help module=help/main&chapter=3&open=3_sheet#sheet $wims_name_help
  73. <br />
  74. !if $wims_numpartconnected>0
  75.  $SU_numpartconnected.
  76. !else
  77.  $SU_nopartconnected.
  78. !endif
  79.  
  80. !if $quota_free<2
  81.  !if $quota_free<0
  82.   <p>$wims_name_exceeded</p>
  83.   <p>
  84.   !href cmd=close&module=home&lang=$lang $wims_name_visitor
  85.   </p>
  86.  </div><!--wimsbody-->
  87. </div><!--wimspagebox-->
  88.   !goto end
  89.  !else
  90.    <br /><span class="wims_warning">$wims_name_warning</span>! $wims_name_reaching_limit
  91.  !endif
  92. !endif
  93. :nocheck
  94.  
  95. !if & isin $newmsgcnt or $newmsgcnt>0
  96.  <br />
  97.  !href module=adm/forum/mboard $U_newmsg
  98. !endif
  99.  
  100. !if $class_type=4
  101.   <div class="wimscenter">
  102.    !href module=adm/class/gateway $wims_name_SU_Gateway
  103.   </div>
  104.  </div><!--wimsbody-->
  105. </div><!--wimspagebox-->
  106.  
  107.  !read themes/_widgets/menumodubox4.phtml
  108.  !goto end
  109. !endif class_type=4
  110.  
  111. !if $class_type=2
  112.  !if $subclasscnt>0
  113.   $table_header
  114.   $table_hdtr<th>$wims_name_number</th><th>$wims_name_title</th><th>$wims_name_nameteacher</th></tr>
  115.   !for i=1 to $subclasscnt
  116.    !let f_class=!record $i of wimshome/log/classes/$wims_class/.subclasses
  117.    !let f_aff=!item 4 of $f_class
  118.    !let f_name=!item 1 of $f_class
  119.    $table_tr
  120.     <td>$ADD_class $i</td>
  121.     <td>
  122.     !href module=adm/class/classes&type=authsupervisor&class=$f_name $f_aff
  123.     </td>
  124.     <td>
  125.      !item 9 of $f_class
  126.     </td>
  127.    </tr>
  128.   !next i
  129.   $table_end
  130.  !endif subclasscnt
  131.  
  132.  </div><!--wimsbody-->
  133. </div><!--wimspagebox-->
  134.  !read themes/_widgets/menumodubox2.phtml
  135.  !goto end
  136. !endif class_type=2
  137. !! classtype =0 or 1
  138. <div id="wims_class_manager_msg">
  139.  !read ./wimshome/log/manager_msg.phtml.$lang
  140. </div>
  141.  
  142. !set test=!replace / by , in $wims_class
  143. !if $(test[-1])=0
  144.   !set test_up=!replace internal /0- by in $wims_class-
  145.   !set wims_ref_class=wims_button
  146.   !href module=adm/class/classes&type=authsupervisor&class=$test_up $SU_Bprogram
  147. !endif
  148.  
  149. !set docpubliccnt=!recordcnt  wimshome/log/classes/$wims_class/doc/.docindex
  150.  
  151. !if $sheetcnt+$examcnt+$doccnt+$docpubliccnt+$votecnt+$subclasscnt<=0
  152.  <p>$SU_nosheet</p>
  153. !else
  154.  $table_header
  155.  <caption>$SU_shlist &nbsp; [
  156.  !href module=adm/class/sequence $wims_name_reorder
  157.  ] </caption>
  158.  $table_hdtr<th>$wims_name_number</th><th>$wims_name_title</th><th>$wims_name_Status</th><th>$wims_name_action</th></tr>
  159.  !read themes/_widgets/supervisorsubclass.phtml
  160.  !read themes/_widgets/supervisordoc.phtml
  161.  !read themes/_widgets/supervisordocp.phtml
  162.  !read themes/_widgets/supervisorsheet.phtml
  163.  !read themes/_widgets/supervisorexam.phtml
  164.  !read themes/_widgets/supervisorvote.phtml
  165.  $table_end
  166. !endif
  167.  
  168. !read ./form.phtml
  169. !read ./result.phtml
  170. </div><!--wimsbody-->
  171. </div><!--wimspagebox-->
  172.  
  173. !read themes/_widgets/menumodubox0.phtml
  174.  
  175. :end
  176. </div><!--wims_content-->
  177. !reset div0 div1
  178.  
  179. !distribute items div, span into div0,div1
  180. !read themes/_widgets/supervisormenubox.phtml
  181. !reset div0,div1
  182.  
  183. </div><!--wimsbodybox-->
  184.  
  185. !read themes/_widgets/visitorcredits.phtml
  186. </body>
  187. </html>
  188. <!-- end of $wims_theme/supervisor.phtml -->
  189.