Subversion Repositories wimsdev

Rev

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

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