Subversion Repositories wimsdev

Rev

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