Subversion Repositories wimsdev

Rev

Rev 13068 | Rev 13433 | 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.     <p>$wims_name_exceeded</p>
  87.     <p>
  88.       !href cmd=close&module=home&lang=$lang $wims_name_visitor
  89.     </p>
  90.     </div><!--wimsbody-->
  91.     </div><!--wimspagebox-->
  92.     !goto end
  93.   !else
  94.     <div class="wims_alert warning">
  95.       <span class="wims_msg warning">$wims_name_warning</span>! $wims_name_reaching_limit
  96.     </div>
  97.   !endif
  98. !endif
  99. :nocheck
  100.  
  101. !if & isin $newmsgcnt or $newmsgcnt>0
  102.   <div class="wims_msg info">
  103.   !href module=adm/forum/mboard $U_newmsg
  104.   </div>
  105. !endif
  106. !if $class_type=4
  107.   !if $wims_user=supervisor
  108.     !read ./subclasses.phtml
  109.     !read ./Subclasses1.phtml
  110.   !endif
  111.    </div><!--/wimsbody-->
  112.   </div><!--/wimspagebox-->
  113.  
  114.   !read themes/_procs/menumodubox3.proc
  115.   !read themes/_widgets/menumodubox.phtml
  116.   !goto end
  117. !endif class_type=4
  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. !if $class_type notin 24
  126.   <div id="wims_supervisor_search">
  127.   !read ./form.phtml
  128.     <br class="clearall" />
  129.   !read ./result.phtml
  130.   </div>
  131. !endif
  132. !set docpubliccnt=!recordcnt wimshome/log/classes/$wims_class/doc/.docindex
  133. !set toolcnt=!recordcnt wimshome/log/classes/$wims_class/tool/.toolindex
  134. !set glossarycnt=!recordcnt wimshome/log/classes/$wims_class/tool/.glossaryindex
  135. !if $sheetcnt+$examcnt+$doccnt+$docpubliccnt+$votecnt+$subclasscnt+$toolcnt+$glossarycnt<=0
  136.   <div class="wims_msg info">$SU_nosheet</div>
  137. !else
  138.   !if $class_type notin 24
  139.     !set seq_open=!defof sequence_open in wimshome/log/classes/$wims_class/seq/.def
  140.     !if $seq_open=yes
  141.       $CR_sequence
  142.     !endif
  143.     <div class="wimscenter">
  144.     !set wims_ref_class=wims_button
  145.     !href module=adm/class/sequence $wims_name_reorder
  146.     </div>
  147.   !endif
  148.   <div id="widget_supervisor_list">
  149.   !if $jquery_defined=yes
  150.     !read adm/tabscript supervisor_list
  151.   !endif
  152.   <ul id="wims_supervisor_summary">
  153.   !if $subclasscnt>0
  154.     <li><a href="#wims_supervisor_subclass">$wims_name_classlist</a></li>
  155.   !endif
  156.   !if $[$docpubliccnt+$doccnt]>0
  157.     <li><a class="wims_doc_item" href="#wims_supervisor_doc">$wims_name_Docs</a></li>
  158.   !endif
  159.   !if $sheetcnt>0
  160.     <li><a class="wims_sheet_item" href="#wims_supervisor_sheet">$wims_name_Sheets</a></li>
  161.   !endif
  162.   !if $examcnt>0
  163.     <li><a class="wims_exam_item" href="#wims_supervisor_exam">$wims_name_Examens</a></li>
  164.   !endif
  165.   !if $votecnt>0
  166.     <li><a class="wims_vote_item" href="#wims_supervisor_vote">$wims_name_Votes</a></li>
  167.   !endif
  168.   !if $toolcnt+$glossarycnt>0
  169.     <li><a class="wims_tool_item" href="#wims_supervisor_tool">$wims_name_tools</a></li>
  170.   !endif
  171.     </ul>
  172.   !if $subclasscnt>0
  173.     <div id="wims_supervisor_subclass">
  174.       !distribute item 1,no into wims_incremental,table_spacer
  175.       $table_header
  176.       $table_hdtr<th scope="col">$wims_name_number</th><th scope="col">$wims_name_title</th><th scope="col">$wims_name_nameteacher</th></tr>
  177.       !read themes/_widgets/supervisorsubclass.phtml
  178.       $table_end
  179.     </div>
  180.   !endif
  181.   !set table_htdr_1=$table_hdtr<th scope="col">$wims_name_number</th><th scope="col">$wims_name_title</th>
  182.   !set table_htdr_2=<th scope="col">$wims_name_Status</th><th scope="col">$wims_name_action</th></tr>
  183.   !if $seq_open=yes
  184.     !set table_htdr_seq=<th scope="col">$wims_name_sequence</th>
  185.   !else
  186.     !reset table_htdr_seq
  187.   !endif
  188. !endif
  189. !if $[$doccnt+$docpubliccnt]>0
  190.   !set table_htdr_=$table_htdr_1$table_htdr_seq$table_htdr_2
  191.   <div id="wims_supervisor_doc">
  192.   !distribute item 1,no into wims_incremental,table_spacer
  193.     $table_header
  194.       !!<caption>$wims_name_Docs</caption>
  195.       $table_htdr_
  196.   !read themes/_widgets/supervisordoc.phtml
  197.   !read themes/_widgets/supervisordocp.phtml
  198.     $table_end
  199.   </div>
  200. !endif
  201.  
  202. !set table_exocnt=<th>$wims_name_cnt_exo</th>
  203. !if $sheetcnt>0
  204.   !set table_htdr_=$table_htdr_1$table_exocnt$table_htdr_seq$table_htdr_2
  205.   <div id="wims_supervisor_sheet">
  206.     !distribute item 1,no into wims_incremental,table_spacer
  207.     $table_header
  208.       !!<caption>$wims_name_Sheets</caption>
  209.       $table_htdr_
  210.       !read themes/_widgets/supervisorsheet.phtml
  211.     $table_end
  212.   </div>
  213. !endif
  214. !if $examcnt>0
  215.   !set table_htdr_=$table_htdr_1$table_exocnt$table_htdr_seq$table_htdr_2
  216.   <div id="wims_supervisor_exam">
  217.   !distribute item 1,no into wims_incremental,table_spacer
  218.     $table_header
  219.       $table_htdr_
  220.       !!<caption>$wims_name_Examens</caption>
  221.   !read themes/_widgets/supervisorexam.phtml
  222.     $table_end
  223.   </div>
  224. !endif
  225. !if $votecnt>0
  226.   !set table_htdr_=$table_htdr_1$table_htdr_seq$table_htdr_2
  227.   <div id="wims_supervisor_vote">
  228.   !distribute item 1,no into wims_incremental,table_id,table_spacer
  229.     $table_header
  230.       !!<caption>$wims_name_Votes</caption>
  231.       $table_htdr_
  232.   !read themes/_widgets/supervisorvote.phtml
  233.     $table_end
  234.   </div>
  235. !endif
  236. !if $toolcnt+$glossarycnt>0
  237.   !set table_htdr_=$table_htdr_1$table_htdr_seq$table_htdr_2
  238.     <div id="wims_supervisor_tool">
  239.       !distribute item 1,no into wims_incremental,table_id,table_spacer
  240.       $table_header
  241.         !!<caption>$wims_name_Tools</caption>
  242.         $table_htdr_
  243.         !read themes/_widgets/supervisortool.phtml
  244.       $table_end
  245.     </div>
  246.   !endif
  247.   </div>
  248. !endif
  249.  
  250. </div><!--/wimsbody-->
  251. </div><!--/wimspagebox-->
  252. !if $class_type isin 24
  253.   !read themes/_procs/menumodubox2.proc
  254. !else
  255.   !read themes/_procs/menumodubox0.proc
  256. !endif
  257. !read themes/_widgets/menumodubox_accordion.phtml
  258.  
  259. :end
  260.  
  261. !reset div0 div1
  262.  
  263. !!distribute items div, span into div0,div1
  264. !!read themes/_procs/supervisormenubox.proc
  265. !!read themes/_widgets/menubox.phtml
  266. !!reset div0,div1
  267.  
  268. </div><!--wimsbodybox-->
  269.  
  270. !!read themes/_widgets/visitorcredits.phtml
  271. </body>
  272. </html>
  273. <!-- end of $wims_theme/supervisor.phtml -->
  274.