Subversion Repositories wimsdev

Rev

Rev 9610 | Rev 9975 | 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. <br class="clearall" />
  32. <div class="wims_content">
  33.  
  34. !if _tool isin $wims_session
  35.  !read ./tools.phtml
  36.  </div><!--wimsbody-->
  37. </div><!--wimspagebox-->
  38.  !goto end
  39. !endif
  40. !!definition for menumodubox
  41. !distribute items div,div into div0,div1
  42.  
  43. !if $class_type isin 3
  44.  $SU_greet.
  45.  !read Subclasses1.phtml
  46.  !if $class_typename=level
  47.     </div><!--wimsbody-->
  48.    </div><!--wimspagebox-->
  49.   !read themes/_procs/menumodubox3.proc
  50.   !read themes/_widgets/menumodubox.phtml
  51.   !goto end
  52.  !else
  53.   !goto nocheck
  54.  !endif
  55. !endif class_type = 3
  56.  
  57. <p class="wims_greetings">
  58. !if $class_type notin 13
  59.  $SU_greet
  60.  $SU_exp1
  61.  !set d_=!char 7,8 of $class_expiration
  62.  !set m_=!char 5,6 of $class_expiration
  63.  !set y_=!char 1 to 4 of $class_expiration
  64.  !read adm/date.phtml date,$y_,$m_,$d_
  65.  !href module=adm/class/config $c_date_out
  66.  $SU_exp2.
  67. !else
  68.  $SU_greet.
  69. !endif
  70.  
  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. </p>
  74.  
  75. !if $wims_numpartconnected>0
  76.  <p class="wims_connected">$SU_numpartconnected.</p>
  77. !else
  78.  <p>$SU_nopartconnected.</p>
  79. !endif
  80.  
  81. !if $quota_free<2
  82.  !if $quota_free<0
  83.   <p>$wims_name_exceeded</p>
  84.   <p>
  85.   !href cmd=close&module=home&lang=$lang $wims_name_visitor
  86.   </p>
  87.  </div><!--wimsbody-->
  88. </div><!--wimspagebox-->
  89.   !goto end
  90.  !else
  91.    <br /><span class="wims_warning">$wims_name_warning</span>! $wims_name_reaching_limit
  92.  !endif
  93. !endif
  94. :nocheck
  95.  
  96. !if & isin $newmsgcnt or $newmsgcnt>0
  97.  <br />
  98.  !href module=adm/forum/mboard $U_newmsg
  99. !endif
  100.  
  101. !if $class_type=4
  102.   <div class="wimscenter">
  103.    !href module=adm/class/gateway $wims_name_SU_Gateway
  104.   </div>
  105.  </div><!--wimsbody-->
  106. </div><!--wimspagebox-->
  107.  
  108.  !read themes/_procs/menumodubox3.proc
  109.  !read themes/_widgets/menumodubox.phtml
  110.  !goto end
  111. !endif class_type=4
  112.  
  113. !if $class_type=2
  114.  !if $subclasscnt>0
  115.   $table_header
  116.   $table_hdtr<th>$wims_name_number</th><th>$wims_name_title</th><th>$wims_name_nameteacher</th></tr>
  117.   !for i=1 to $subclasscnt
  118.    !let f_class=!record $i of wimshome/log/classes/$wims_class/.subclasses
  119.    !let f_aff=!item 4 of $f_class
  120.    !let f_name=!item 1 of $f_class
  121.    $table_tr
  122.     <td>$ADD_class $i</td>
  123.     <td>
  124.     !href module=adm/class/classes&type=authsupervisor&class=$f_name $f_aff
  125.     </td>
  126.     <td>
  127.      !item 9 of $f_class
  128.     </td>
  129.    </tr>
  130.   !next i
  131.   $table_end
  132.  !endif subclasscnt
  133.  
  134.  </div><!--wimsbody-->
  135. </div><!--wimspagebox-->
  136.  
  137.  !read themes/_procs/menumodubox2.proc
  138.  !read themes/_widgets/menumodubox.phtml
  139.  !goto end
  140. !endif class_type=2
  141. !! classtype=0 or 1
  142. <div id="wims_class_manager_msg">
  143.  !read ./wimshome/log/manager_msg.phtml.$lang
  144. </div>
  145.  
  146. !set test=!replace / by , in $wims_class
  147. !if $(test[-1])=0
  148.   !set test_up=!replace internal /0- by in $wims_class-
  149.   !set wims_ref_class=wims_button
  150.   !href module=adm/class/classes&type=authsupervisor&class=$test_up $SU_Bprogram
  151. !endif
  152.  
  153. !set docpubliccnt=!recordcnt  wimshome/log/classes/$wims_class/doc/.docindex
  154.  
  155. !if $sheetcnt+$examcnt+$doccnt+$docpubliccnt+$votecnt+$subclasscnt<=0
  156.  <p>$SU_nosheet</p>
  157. !else
  158.  $table_header
  159.  <caption>$SU_shlist &nbsp; [
  160.  !href module=adm/class/sequence $wims_name_reorder
  161.  ] </caption>
  162.  $table_hdtr<th>$wims_name_number</th><th>$wims_name_title</th><th>$wims_name_Status</th><th>$wims_name_action</th></tr>
  163.  !read themes/_widgets/supervisorsubclass.phtml
  164.  !read themes/_widgets/supervisordoc.phtml
  165.  !read themes/_widgets/supervisordocp.phtml
  166.  !read themes/_widgets/supervisorsheet.phtml
  167.  !read themes/_widgets/supervisorexam.phtml
  168.  !read themes/_widgets/supervisorvote.phtml
  169.  $table_end
  170. !endif
  171.  
  172. !read ./form.phtml
  173. !read ./result.phtml
  174. </div><!--wimsbody-->
  175. </div><!--wimspagebox-->
  176.  
  177. !read themes/_procs/menumodubox0.proc
  178. !read themes/_widgets/menumodubox.phtml
  179.  
  180. :end
  181. </div><!--wims_content-->
  182. !reset div0 div1
  183.  
  184. !distribute items div, span into div0,div1
  185. !read themes/_procs/supervisormenubox.proc
  186. !read themes/_widgets/menubox.phtml
  187. !reset div0,div1
  188.  
  189. </div><!--wimsbodybox-->
  190.  
  191. !read themes/_widgets/visitorcredits.phtml
  192. </body>
  193. </html>
  194. <!-- end of $wims_theme/supervisor.phtml -->
  195.