Subversion Repositories wimsdev

Rev

Rev 13070 | Rev 15331 | 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. !readproc tabletheme
  10.  
  11. !read classlogo.phtml
  12. !if $class_logo!=$empty
  13. <img src="$class_logo" alt="logo" style="border:0px" />
  14. !endif
  15. <p style="font-size:1.2em;text-align:center;">
  16.     $wims_classname, $wims_institutionname
  17.     <br />
  18.     <small>($SU_log)</small>
  19. </p>
  20. <div class="wimsbody">
  21.  
  22. !if _tool isin $wims_session
  23.   !read ./tools.phtml
  24.   !goto end
  25. !endif
  26.  
  27. !if $class_type isin 3
  28.   $SU_greet.
  29.   !read Subclasses1.phtml
  30.   !if $class_typename=level
  31.     <div class="wimscenter">
  32.     !href module=adm/class/gateway $wims_name_SU_Gateway
  33.     </div>
  34.     !goto end
  35.   !else
  36.    !goto nocheck
  37.   !endif
  38. !endif class_type = 3
  39.  
  40. !if $class_type notin 13
  41.   $SU_greet
  42.   $SU_exp1
  43.   !set d_=!char 7,8 of $class_expiration
  44.   !set m_=!char 5,6 of $class_expiration
  45.   !set y_=!char 1 to 4 of $class_expiration
  46.   !read adm/date.phtml date,$y_,$m_,$d_
  47.   !href module=adm/class/config $c_date_out
  48.   $SU_exp2.
  49. !else
  50.   $SU_greet.
  51. !endif
  52.  
  53. !set wims_ref_class=wims_button_help
  54. !href target=wims_help module=help/main&chapter=3&open=3_sheet#sheet $wims_name_whelp
  55.  
  56. !if $wims_numpartconnected>0
  57.   <p class="wims_connected">$SU_numpartconnected.</p>
  58. !else
  59.   <p>$SU_nopartconnected.</p>
  60. !endif
  61.  
  62. !if $quota_free<2
  63.   !if $quota_free<=0
  64.     <div class="wims_msg alert">$wims_name_exceeded</div>
  65.     <p>
  66.       !href cmd=close&module=home&lang=$lang $wims_name_visitor
  67.     </p>
  68.     </div><!--wimsbody-->
  69.     </div><!--wimspagebox-->
  70.     !goto end
  71.   !else
  72.     <div class="wims_msg warning">
  73.       <b>$wims_name_warning</b>! $wims_name_reaching_limit
  74.     </div>
  75.   !endif
  76. !endif
  77. :nocheck
  78.  
  79. !if & isin $newmsgcnt or $newmsgcnt>0
  80.   <p class="wims_msg info">
  81.   !href module=adm/forum/mboard $U_newmsg
  82.   </p>
  83. !endif
  84. !if $class_type=4
  85.    <div class="wimscenter">
  86.     !href module=adm/class/gateway $wims_name_SU_Gateway
  87.    </div>
  88.   !goto end
  89. !endif class_type=4
  90.  
  91. !if $class_type=2
  92.   !if $subclasscnt>0
  93.     $table_header
  94.     $table_hdtr<th>$wims_name_number</th><th>$wims_name_title</th><th>$wims_name_nameteacher</th></tr>
  95.     !for i=1 to $subclasscnt
  96.       !let f_class=!record $i of wimshome/log/classes/$wims_class/.subclasses
  97.       !let f_aff=!item 4 of $f_class
  98.       !let f_name=!item 1 of $f_class
  99.       $table_tr
  100.        <td>$ADD_class $i</td>
  101.        <td>
  102.        !href module=adm/class/classes&type=authsupervisor&class=$f_name $f_aff
  103.        </td>
  104.        <td>
  105.         !item 9 of $f_class
  106.        </td>
  107.       </tr>
  108.     !next i
  109.     $table_end
  110.   !endif
  111.   <div class="wimscenter">
  112.    !read ./adm/oneitem.phtml addclass,1,module=adm/class/regclass
  113.   </div>
  114.   !goto end
  115. !endif class_type=2
  116. !! classtype != 2,3, 4
  117. <div id="wims_class_manager_msg">
  118. !read ./wimshome/log/manager_msg.phtml.$lang
  119. </div>
  120.  
  121. !set test=!replace / by , in $wims_class
  122. !if $(test[-1])=0
  123.   !set test_up=!replace internal /0- by in $wims_class-
  124.   !set wims_ref_class=wims_button
  125.   !href module=adm/class/classes&type=authsupervisor&class=$test_up $SU_Bprogram
  126. !endif
  127.  
  128. !set docpubliccnt=!recordcnt  wimshome/log/classes/$wims_class/doc/.docindex
  129.  
  130. !if $sheetcnt+$examcnt+$doccnt+$docpubliccnt+$votecnt+$subclasscnt<=0
  131.   <p>$SU_nosheet</p>
  132. !else
  133.   !if $seq_open=yes
  134.    !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>
  135.   !else
  136.    !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>
  137.   !endif
  138.   $table_header
  139.   <caption>$SU_shlist &nbsp; [
  140.   !href module=adm/class/sequence $wims_name_reorder
  141.   ] </caption>
  142.   $table_htdr_
  143.   !read themes/_widgets/supervisorsubclass.phtml
  144.   !read themes/_widgets/supervisordoc.phtml
  145.   !read themes/_widgets/supervisordocp.phtml
  146.   !read themes/default/_widgets/supervisorsheet.phtml
  147.   !read themes/default/_widgets/supervisorexam.phtml
  148.   !read themes/_widgets/supervisorvote.phtml
  149.   !read themes/_widgets/supervisortool.phtml
  150.   $table_end
  151. !endif
  152. $ADD_1
  153. !href module=adm/doc&job=creat $ADD_doc
  154. !if $wims_supertype!=4 or $class_typename!=class
  155.   ,
  156.   !href module=adm/class/sheet&sheet=$[$sheetcnt+1] $ADD_sheet
  157.   ,
  158.   !href module=adm/class/exam&exam=$[$examcnt+1] $ADD_exam
  159.   ,
  160.   !href module=adm/createxo $ADD_exo
  161. !endif
  162. !if $class_type=2
  163.   ,
  164.   !href module=adm/class/regclass $ADD_class
  165. !endif
  166.  
  167.  $wims_name_or
  168. !href module=adm/vote&job=creat $ADD_vote
  169. .
  170.  
  171. !read ./form.phtml
  172. !read ./result.phtml
  173. !if $wims_supertype!=4 or $class_typename!=class
  174.   <p>
  175.   !href module=classes/$lang&special_parm=.nocache. $wims_name_classexo
  176.   .&nbsp;
  177.   !href module=adm/modtool Modtool
  178.   .
  179.   </p>
  180. !endif
  181. :end
  182.  
  183. <table style="background-color:$wims_ref_bgcolor;width:100%">
  184. <tr><td style="text-align:left">
  185. !if $class_typename notsametext program
  186.   !href module=adm/class/userscore $wims_name_Score1
  187.   &nbsp;
  188.   !href module=adm/class/usermanage $wims_name_usermanage
  189. !endif
  190. <br />
  191. !href module=adm/class/classes&type=supervisor $wims_name_U_oclass
  192. <br />
  193. !href cmd=close&module=home&lang=$lang $wims_name_visitor
  194. </td><td style="text-align:center" >
  195. !href style=student $wims_name_n_participant
  196. <br />
  197. !href module=adm/class/config $wims_name_SE_config
  198. <br />
  199. !href module=adm/class/config&job=security $wims_name_SE_secu
  200. </td><td style="text-align:right">
  201. !href target=wims_help module=help/main&chapter=3 $wims_name_help
  202. <br />
  203. !href module=adm/forum/mboard $wims_name_forum
  204. !if $exist_cdt=yes
  205. <br />
  206.  !href module=adm/class/cdt $wims_name_cdt
  207.  &nbsp; / &nbsp;
  208. !endif
  209. !href module=adm/class/motd $wims_name_SE_mod
  210. <br />
  211. </td>
  212. </tr>
  213. </table>
  214. :end
  215. <p style="text-align:center">
  216.     <small>
  217.     WIMS-$wims_version@$httpd_HTTP_HOST. $E_manager
  218.     !mailurl $wims_site_manager\
  219.     WIMS
  220.     .
  221.     </small>
  222. </p>
  223. </div>
  224. </body>
  225. </html>
  226. <!-- end of $wims_theme/supervisor.phtml -->
  227.