Subversion Repositories wimsdev

Rev

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