Subversion Repositories wimsdev

Rev

Rev 10632 | Rev 12363 | 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_help
  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.  $table_end
  148. !endif
  149. $ADD_1
  150. !href module=adm/doc&job=creat $ADD_doc
  151. !if $wims_supertype!=4 or $class_typename!=class
  152. ,
  153. !href module=adm/class/sheet&sheet=$[$sheetcnt+1] $ADD_sheet
  154. ,
  155. !href module=adm/class/exam&exam=$[$examcnt+1] $ADD_exam
  156. ,
  157. !href module=adm/createxo $ADD_exo
  158. !endif
  159. !if $class_type=2
  160. ,
  161. !href module=adm/class/regclass $ADD_class
  162. !endif
  163.  
  164.  $wims_name_or
  165. !href module=adm/vote&job=creat $ADD_vote
  166. .
  167.  
  168. !read ./form.phtml
  169. !read ./result.phtml
  170. !if $wims_supertype!=4 or $class_typename!=class
  171. <p>
  172. !href module=classes/$lang&special_parm=.nocache. $wims_name_classexo
  173. .&nbsp;
  174. !href module=adm/modtool Modtool
  175. .
  176. </p>
  177. !endif
  178. :end
  179.  
  180. <table style="background-color:$wims_ref_bgcolor;width:100%">
  181. <tr><td style="text-align:left">
  182. !if $class_typename notsametext program
  183.  !href module=adm/class/userscore $wims_name_Score1
  184.  &nbsp;
  185.  !href module=adm/class/usermanage $wims_name_usermanage
  186. !endif
  187. <br />
  188. !href module=adm/class/classes&type=supervisor $wims_name_U_oclass
  189. <br />
  190. !href cmd=close&module=home&lang=$lang $wims_name_visitor
  191. </td><td style="text-align:center" >
  192. !href style=student $wims_name_n_participant
  193. <br />
  194. !href module=adm/class/config $wims_name_SE_config
  195. <br />
  196. !href module=adm/class/config&job=security $wims_name_SE_secu
  197. </td><td style="text-align:right">
  198. !href target=wims_help module=help/main&chapter=3 $wims_name_help
  199. <br />
  200. !href module=adm/forum/mboard $wims_name_forum
  201. !if $exist_cdt=yes
  202. <br />
  203.  !href module=adm/class/cdt $wims_name_cdt
  204.  &nbsp; / &nbsp;
  205. !endif
  206. !href module=adm/class/motd $wims_name_SE_mod
  207. <br />
  208. </td>
  209. </tr>
  210. </table>
  211. :end
  212. <p style="text-align:center">
  213.     <small>
  214.     WIMS-$wims_version@$httpd_HTTP_HOST. $E_manager
  215.     !mailurl $wims_site_manager\
  216.     WIMS
  217.     .
  218.     </small>
  219. </p>
  220. </div>
  221. </body>
  222. </html>
  223. <!-- end of $wims_theme/supervisor.phtml -->
  224.