Subversion Repositories wimsdev

Rev

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