Subversion Repositories wimsdev

Rev

Rev 11999 | Rev 12831 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. <!-- begin of Nikaia/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!=
  13.   <div id="classlogo" class="float_$class_logoside">
  14.    <img src="$class_logo" alt="class logo" />
  15.   </div>
  16. !endif
  17.  
  18. !read ./adm/title.phtml 2\
  19. $wims_classname, $wims_institutionname\
  20. ($SU_log - $(wims_name_$class_typename))
  21.  
  22. <div class="wims_content">
  23.  
  24. !if _tool isin $wims_session
  25.  !read ./tools.phtml
  26.  </div><!--wimsbody-->
  27. </div><!--wimspagebox-->
  28.  !goto end
  29. !endif
  30. !!definition for menumodubox
  31. !distribute items div,div into div0,div1
  32.  
  33. !if $class_type=3
  34.  $SU_greet.
  35.  !read ./subclasses.phtml
  36.  !read ./Subclasses1.phtml
  37.  !if $class_typename=level
  38.     </div><!--wimsbody-->
  39.    </div><!--wimspagebox-->
  40.    !read themes/_procs/menumodubox3.proc
  41.    !read themes/_widgets/menumodubox.phtml
  42.   !goto end
  43.  !else
  44.   !goto nocheck
  45.  !endif
  46. !endif class_type=3
  47.  
  48. !if $class_type=4
  49.   !if $wims_user=supervisor
  50.     !read ./subclasses.phtml
  51.     !read ./Subclasses1.phtml
  52.   !endif
  53.  </div><!--/wimsbody-->
  54. </div><!--/wimspagebox-->
  55.  !read themes/_procs/menumodubox3.proc
  56.  !read themes/_widgets/menumodubox.phtml
  57.  !goto end
  58. !endif class_type=4
  59.  
  60.  
  61. <p class="wims_greetings">
  62. !if $class_type notin 13
  63.  $SU_greet
  64.  $SU_exp1
  65.  !set d_=!char 7,8 of $class_expiration
  66.  !set m_=!char 5,6 of $class_expiration
  67.  !set y_=!char 1 to 4 of $class_expiration
  68.  !read adm/date.phtml date,$y_,$m_,$d_
  69.  !href module=adm/class/config $c_date_out
  70.  $SU_exp2.
  71. !else
  72.  $SU_greet.
  73. !endif
  74.  
  75. !set wims_ref_class=wims_button_help
  76. !if $class_type=2
  77.   !set wims_helper=chapter=3&open=3_group#group
  78. !else
  79.   !if $class_type=4
  80.     !set wims_helper=chapter=3&open=3_institution#institution
  81.  !else
  82.     !set wims_helper=chapter=3&open=3_sheet#sheet
  83.  !endif
  84. !endif
  85. !href target=wims_help module=help/main&$wims_helper $wims_name_whelp
  86. </p>
  87.  
  88. !if $wims_numpartconnected>0
  89.  <p class="wims_connected">$SU_numpartconnected.</p>
  90. !else
  91.  <p>$SU_nopartconnected.</p>
  92. !endif
  93.  
  94. !if $quota_free<2
  95.  !if $quota_free<0
  96.   <p>$wims_name_exceeded</p>
  97.   <p>
  98.     !href cmd=close&module=home&lang=$lang $wims_name_visitor
  99.   </p>
  100.  </div><!--wimsbody-->
  101. </div><!--wimspagebox-->
  102.   !goto end
  103.  !else
  104.    <div class="wims_alert warning">
  105.      <span class="wims_msg warning">$wims_name_warning</span>! $wims_name_reaching_limit
  106.    </div>
  107.  !endif
  108. !endif
  109. :nocheck
  110.  
  111. !if & isin $newmsgcnt or $newmsgcnt>0
  112.  <p class="wims_msg info">
  113.  !href module=adm/forum/mboard $U_newmsg
  114.  </p>
  115. !endif
  116. !if $class_type=4
  117.   <div class="wimscenter">
  118.    !href module=adm/class/gateway $wims_name_SU_Gateway
  119.   </div>
  120.  </div><!--wimsbody-->
  121. </div><!--wimspagebox-->
  122.  
  123.  !read themes/_procs/menumodubox3.proc
  124.  !read themes/_widgets/menumodubox.phtml
  125.  !goto end
  126. !endif class_type=4
  127.  
  128. !if $class_type=2
  129.  !if $subclasscnt>0
  130.   $table_header
  131.   <thead>
  132.   $table_hdtr<th scope="col">$wims_name_number</th><th scope="col">$wims_name_title</th><th scope="col">$wims_name_nameteacher</th></tr>
  133.   </thead>
  134.   <tbody>
  135.   !for i=1 to $subclasscnt
  136.    !let f_class=!record $i of wimshome/log/classes/$wims_class/.subclasses
  137.    !let f_aff=!item 4 of $f_class
  138.    !let f_name=!item 1 of $f_class
  139.    $table_tr
  140.     <td>$ADD_class $i</td>
  141.     <td>
  142.     !href module=adm/class/classes&type=authsupervisor&class=$f_name $f_aff
  143.     </td>
  144.     <td>
  145.      !item 9 of $f_class
  146.     </td>
  147.    </tr>
  148.   !next i
  149.   </tbody>
  150.   $table_end
  151.  !endif subclasscnt
  152.  
  153.  </div><!--wimsbody-->
  154. </div><!--wimspagebox-->
  155.  
  156.  !read themes/_procs/menumodubox2.proc
  157.  !read themes/_widgets/menumodubox.phtml
  158.  !goto end
  159. !endif class_type=2
  160. !! classtype=0 or 1
  161. <div id="wims_class_manager_msg">
  162.  !read ./wimshome/log/manager_msg.phtml.$lang
  163. </div>
  164.  
  165. !set test=!replace / by , in $wims_class
  166. !if $(test[-1])=0
  167.   !set test_up=!replace internal /0- by in $wims_class-
  168.   !set wims_ref_class=wims_button
  169.   !href module=adm/class/classes&type=authsupervisor&class=$test_up $SU_Bprogram
  170. !endif
  171.  
  172. !set docpubliccnt=!recordcnt  wimshome/log/classes/$wims_class/doc/.docindex
  173.  
  174. !set table_htdr_1=$table_hdtr<th scope="col">$wims_name_number</th><th scope="col">$wims_name_title</th>
  175. !set table_htdr_2=<th scope="col">$wims_name_Status</th><th scope="col">$wims_name_action</th></tr>
  176. !set table_exocnt=<th>$wims_name_cnt_exo</th>
  177. !set seq_open=!defof sequence_open in wimshome/log/classes/$wims_class/seq/.def
  178. !if $seq_open=yes
  179.   !set table_htdr_seq=<th scope="col">$wims_name_sequence</th>
  180. !else
  181.   !reset table_htdr_seq
  182. !endif
  183.  
  184.  
  185. !if $sheetcnt+$examcnt+$doccnt+$docpubliccnt+$votecnt+$subclasscnt<=0
  186.  <p class="wims_msg info">$SU_nosheet</p>
  187. !else
  188.   !if $class_type notin 24
  189.     !if $seq_open=yes
  190.      $CR_sequence
  191.     !endif
  192.     <div class="wimscenter">
  193.     !href module=adm/class/sequence $wims_name_reorder
  194.     </div>
  195.   !endif
  196.  
  197.   <div id="widget_supervisor_list">
  198.     <ul id="wims_supervisor_summary">
  199.       !if $subclasscnt>0
  200.         <li><a href="#wims_supervisor_subclass">$wims_name_classlist</a></li>
  201.       !endif
  202.       !if $[$sheetcnt+$examcnt]>0
  203.         <li><a href="#wims_supervisor_shlist">$C_A</a></li>
  204.       !endif
  205.       !if $[$docpubliccnt+$doccnt]>0
  206.         <li><a href="#wims_supervisor_doc">$wims_name_Docs</a></li>
  207.       !endif
  208.       !if $votecnt>0
  209.         <li><a href="#wims_supervisor_vote">$wims_name_Votes</a></li>
  210.       !endif
  211.     </ul>
  212.  
  213.     !! Jquery tabs
  214.     !read adm/tabscript supervisor_list
  215.  
  216.     !if $subclasscnt>0
  217.       <div id="wims_supervisor_subclass">
  218.         !distribute item 1,no into wims_incremental,table_spacer
  219.         $table_header
  220.         $table_hdtr<th scope="col">$wims_name_number</th><th scope="col">$wims_name_title</th><th scope="col">$wims_name_nameteacher</th></tr>
  221.         !read themes/_widgets/supervisorsubclass.phtml
  222.         $table_end
  223.       </div>
  224.     !endif
  225.  
  226.     !if $sheetcnt+$examcnt>0
  227.       <div id="wims_supervisor_shlist">
  228.         !set table_htdr_=$table_htdr_1$table_exocnt$table_htdr_seq$table_htdr_2
  229.         $table_header
  230.           <caption>$C_A</caption>
  231.           $table_htdr_
  232.           !read themes/_widgets/supervisorsheet.phtml
  233.           !read themes/_widgets/supervisorexam.phtml
  234.         $table_end
  235.       </div>
  236.     !endif
  237.  
  238.     !if $[$doccnt+$docpubliccnt]>0
  239.       !set table_htdr_=$table_htdr_1$table_htdr_seq$table_htdr_2
  240.       <div id="wims_supervisor_doc">
  241.         $table_header
  242.         <caption>$wims_name_Docs</caption>
  243.         $table_htdr_
  244.         !read themes/_widgets/supervisordoc.phtml
  245.         !read themes/_widgets/supervisordocp.phtml
  246.         $table_end
  247.       </div>
  248.     !endif
  249.  
  250.     !if $votecnt>0
  251.       !set table_htdr_=$table_htdr_1$table_htdr_seq$table_htdr_2
  252.       <div id="wims_supervisor_vote">
  253.         $table_header
  254.         <caption>$wims_name_Votes</caption>
  255.         $table_htdr_
  256.         !read themes/_widgets/supervisorvote.phtml
  257.         $table_end
  258.       </div>
  259.   !endif
  260.   </div>
  261. !endif
  262.  
  263. !read ./form.phtml
  264. !read ./result.phtml
  265. </div><!--wimsbody-->
  266. </div><!--wimspagebox-->
  267.  
  268. !read themes/_procs/menumodubox0.proc
  269. !read themes/_widgets/menumodubox.phtml
  270.  
  271. :end
  272. </div><!--wims_content-->
  273. !reset div0 div1
  274.  
  275. !distribute items div, span into div0,div1
  276. !read themes/_procs/supervisormenubox.proc
  277. !read themes/_widgets/menubox.phtml
  278. !reset div0,div1
  279.  
  280. </div><!--wimsbodybox-->
  281.  
  282. !read themes/_widgets/visitorcredits.phtml
  283. </body>
  284. </html>
  285. <!-- end of Nikaia/supervisor.phtml -->
  286.