Subversion Repositories wimsdev

Rev

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