Subversion Repositories wimsdev

Rev

Rev 12363 | Rev 15298 | 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.     <p>$wims_name_exceeded</p>
  65.     <p>
  66.      !href cmd=close&module=home&lang=$lang $wims_name_visitor
  67.     </p>
  68.     !goto end
  69.   !else
  70.     <div class="wims_alert warning">
  71.       <span class="wims_msg warning">$wims_name_warning</span>! $wims_name_reaching_limit
  72.     </div>
  73.   !endif
  74. !endif
  75. :nocheck
  76.  
  77. !if & isin $newmsgcnt or $newmsgcnt>0
  78.   <p class="wims_msg info">
  79.   !href module=adm/forum/mboard $U_newmsg
  80.   </p>
  81. !endif
  82. !if $class_type=4
  83.    <div class="wimscenter">
  84.     !href module=adm/class/gateway $wims_name_SU_Gateway
  85.    </div>
  86.   !goto end
  87. !endif class_type=4
  88.  
  89. !if $class_type=2
  90.   !if $subclasscnt>0
  91.     $table_header
  92.     $table_hdtr<th>$wims_name_number</th><th>$wims_name_title</th><th>$wims_name_nameteacher</th></tr>
  93.     !for i=1 to $subclasscnt
  94.       !let f_class=!record $i of wimshome/log/classes/$wims_class/.subclasses
  95.       !let f_aff=!item 4 of $f_class
  96.       !let f_name=!item 1 of $f_class
  97.       $table_tr
  98.        <td>$ADD_class $i</td>
  99.        <td>
  100.        !href module=adm/class/classes&type=authsupervisor&class=$f_name $f_aff
  101.        </td>
  102.        <td>
  103.         !item 9 of $f_class
  104.        </td>
  105.       </tr>
  106.     !next i
  107.     $table_end
  108.   !endif
  109.   <div class="wimscenter">
  110.    !read ./adm/oneitem.phtml addclass,1,module=adm/class/regclass
  111.   </div>
  112.   !goto end
  113. !endif class_type=2
  114. !! classtype != 2,3, 4
  115. <div id="wims_class_manager_msg">
  116. !read ./wimshome/log/manager_msg.phtml.$lang
  117. </div>
  118.  
  119. !set test=!replace / by , in $wims_class
  120. !if $(test[-1])=0
  121.   !set test_up=!replace internal /0- by in $wims_class-
  122.   !set wims_ref_class=wims_button
  123.   !href module=adm/class/classes&type=authsupervisor&class=$test_up $SU_Bprogram
  124. !endif
  125.  
  126. !set docpubliccnt=!recordcnt  wimshome/log/classes/$wims_class/doc/.docindex
  127.  
  128. !if $sheetcnt+$examcnt+$doccnt+$docpubliccnt+$votecnt+$subclasscnt<=0
  129.   <p>$SU_nosheet</p>
  130. !else
  131.   !if $seq_open=yes
  132.    !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>
  133.   !else
  134.    !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>
  135.   !endif
  136.   $table_header
  137.   <caption>$SU_shlist &nbsp; [
  138.   !href module=adm/class/sequence $wims_name_reorder
  139.   ] </caption>
  140.   $table_htdr_
  141.   !read themes/_widgets/supervisorsubclass.phtml
  142.   !read themes/_widgets/supervisordoc.phtml
  143.   !read themes/_widgets/supervisordocp.phtml
  144.   !read themes/default/_widgets/supervisorsheet.phtml
  145.   !read themes/default/_widgets/supervisorexam.phtml
  146.   !read themes/_widgets/supervisorvote.phtml
  147.   !read themes/_widgets/supervisortool.phtml
  148.   $table_end
  149. !endif
  150. $ADD_1
  151. !href module=adm/doc&job=creat $ADD_doc
  152. !if $wims_supertype!=4 or $class_typename!=class
  153.   ,
  154.   !href module=adm/class/sheet&sheet=$[$sheetcnt+1] $ADD_sheet
  155.   ,
  156.   !href module=adm/class/exam&exam=$[$examcnt+1] $ADD_exam
  157.   ,
  158.   !href module=adm/createxo $ADD_exo
  159. !endif
  160. !if $class_type=2
  161.   ,
  162.   !href module=adm/class/regclass $ADD_class
  163. !endif
  164.  
  165.  $wims_name_or
  166. !href module=adm/vote&job=creat $ADD_vote
  167. .
  168.  
  169. !read ./form.phtml
  170. !read ./result.phtml
  171. !if $wims_supertype!=4 or $class_typename!=class
  172.   <p>
  173.   !href module=classes/$lang&special_parm=.nocache. $wims_name_classexo
  174.   .&nbsp;
  175.   !href module=adm/modtool Modtool
  176.   .
  177.   </p>
  178. !endif
  179. :end
  180.  
  181. <table style="background-color:$wims_ref_bgcolor;width:100%">
  182. <tr><td style="text-align:left">
  183. !if $class_typename notsametext program
  184.   !href module=adm/class/userscore $wims_name_Score1
  185.   &nbsp;
  186.   !href module=adm/class/usermanage $wims_name_usermanage
  187. !endif
  188. <br />
  189. !href module=adm/class/classes&type=supervisor $wims_name_U_oclass
  190. <br />
  191. !href cmd=close&module=home&lang=$lang $wims_name_visitor
  192. </td><td style="text-align:center" >
  193. !href style=student $wims_name_n_participant
  194. <br />
  195. !href module=adm/class/config $wims_name_SE_config
  196. <br />
  197. !href module=adm/class/config&job=security $wims_name_SE_secu
  198. </td><td style="text-align:right">
  199. !href target=wims_help module=help/main&chapter=3 $wims_name_help
  200. <br />
  201. !href module=adm/forum/mboard $wims_name_forum
  202. !if $exist_cdt=yes
  203. <br />
  204.  !href module=adm/class/cdt $wims_name_cdt
  205.  &nbsp; / &nbsp;
  206. !endif
  207. !href module=adm/class/motd $wims_name_SE_mod
  208. <br />
  209. </td>
  210. </tr>
  211. </table>
  212. :end
  213. <p style="text-align:center">
  214.     <small>
  215.     WIMS-$wims_version@$httpd_HTTP_HOST. $E_manager
  216.     !mailurl $wims_site_manager\
  217.     WIMS
  218.     .
  219.     </small>
  220. </p>
  221. </div>
  222. </body>
  223. </html>
  224. <!-- end of $wims_theme/supervisor.phtml -->
  225.