Subversion Repositories wimsdev

Rev

Rev 13172 | Rev 14297 | 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. !if $wims_numpartconnected>0
  92.   <p class="wims_connected">$SU_numpartconnected.</p>
  93. !else
  94.   <div class="wims_msg info">$SU_nopartconnected.</div>
  95. !endif
  96.  
  97. !if $quota_free<2
  98.   !if $quota_free<0
  99.       <p>$wims_name_exceeded</p>
  100.       <p>
  101.         !href cmd=close&module=home&lang=$lang $wims_name_visitor
  102.       </p>
  103.       </div><!--/wims_content -->
  104.      </div><!--/wimsbody -->
  105.     </div><!--/wimspagebox -->
  106.     !goto end
  107.   !else
  108.     <div class="wims_alert warning">
  109.       <span class="wims_msg warning">$wims_name_warning</span>! $wims_name_reaching_limit
  110.     </div>
  111.   !endif
  112. !endif
  113. :nocheck
  114.  
  115. !if & isin $newmsgcnt or $newmsgcnt>0
  116.   <p class="wims_msg info">
  117.     !href module=adm/forum/mboard $U_newmsg
  118.   </p>
  119. !endif
  120. !if $class_type=4
  121.      <div class="wimscenter">
  122.        !href module=adm/class/gateway $wims_name_SU_Gateway
  123.      </div>
  124.     </div><!--/wims_content -->
  125.    </div><!--/wimsbody -->
  126.   </div><!--/wimspagebox -->
  127.  
  128.   !read themes/_procs/menumodubox3.proc
  129.   !read themes/_widgets/menumodubox.phtml
  130.   !goto end
  131. !endif class_type=4
  132.  
  133. !if $class_type=2
  134.   !if $subclasscnt>0
  135.     $table_header
  136.     <thead>
  137.       $table_hdtr<th scope="col">$wims_name_number</th><th scope="col">$wims_name_title</th><th scope="col">$wims_name_nameteacher</th></tr>
  138.     </thead>
  139.     <tbody>
  140.     !for i=1 to $subclasscnt
  141.       !let f_class=!record $i of wimshome/log/classes/$wims_class/.subclasses
  142.       !let f_aff=!item 4 of $f_class
  143.       !let f_name=!item 1 of $f_class
  144.       $table_tr
  145.         <td>$ADD_class $i</td>
  146.         <td>
  147.           !href module=adm/class/classes&type=authsupervisor&class=$f_name $f_aff
  148.         </td>
  149.         <td>
  150.           !item 9 of $f_class
  151.         </td>
  152.       </tr>
  153.     !next i
  154.     </tbody>
  155.     $table_end
  156.   !endif subclasscnt
  157.     </div><!--/wims_content -->
  158.    </div><!--/wimsbody -->
  159.   </div><!--/wimspagebox -->
  160.  
  161.   !read themes/_procs/menumodubox2.proc
  162.   !read themes/_widgets/menumodubox.phtml
  163.   !goto end
  164. !endif class_type=2
  165. !! classtype=0 or 1
  166. <div id="wims_class_manager_msg">
  167.   !read ./wimshome/log/manager_msg.phtml.$lang
  168. </div>
  169.  
  170. !set test=!replace / by , in $wims_class
  171. !if $(test[-1])=0
  172.   !set test_up=!replace internal /0- by in $wims_class-
  173.   !set wims_ref_class=wims_button
  174.   !href module=adm/class/classes&type=authsupervisor&class=$test_up $SU_Bprogram
  175. !endif
  176.  
  177. !set docpubliccnt=!recordcnt  wimshome/log/classes/$wims_class/doc/.docindex
  178.  
  179. !set table_htdr_1=$table_hdtr<th scope="col">$wims_name_number</th><th scope="col">$wims_name_title</th>
  180. !set table_htdr_2=<th scope="col">$wims_name_Status</th><th scope="col">$wims_name_action</th></tr>
  181. !set table_exocnt=<th>$wims_name_cnt_exo</th>
  182. !set seq_open=!defof sequence_open in wimshome/log/classes/$wims_class/seq/.def
  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.  
  189. !set toolcnt=!recordcnt  wimshome/log/classes/$wims_class/tool/.toolindex
  190. !set glossarycnt=!recordcnt wimshome/log/classes/$wims_class/tool/.glossaryindex
  191. !if $sheetcnt+$examcnt+$doccnt+$docpubliccnt+$votecnt+$subclasscnt+$toolcnt+$glossarycnt<=0
  192.   <p class="wims_msg info">$SU_nosheet</p>
  193. !else
  194.   !if $class_type notin 24
  195.     !if $seq_open=yes
  196.       $CR_sequence
  197.     !endif
  198.     <div class="wimscenter">
  199.       !set wims_ref_class=wims_button
  200.       !href module=adm/class/sequence $wims_name_reorder
  201.     </div>
  202.   !endif
  203.  
  204.   <div id="widget_supervisor_list">
  205.     <ul id="wims_supervisor_summary">
  206.       !if $subclasscnt>0
  207.         <li><a href="#wims_supervisor_subclass">$wims_name_classlist</a></li>
  208.       !endif
  209.       !if $[$sheetcnt+$examcnt]>0
  210.         <li><a href="#wims_supervisor_shlist">$C_A</a></li>
  211.       !endif
  212.       !if $[$docpubliccnt+$doccnt]>0
  213.         <li><a href="#wims_supervisor_doc">$wims_name_Docs</a></li>
  214.       !endif
  215.       !if $votecnt>0
  216.         <li><a href="#wims_supervisor_vote">$wims_name_Votes</a></li>
  217.       !endif
  218.       !if $toolcnt+$glossarycnt>0
  219.         <li><a href="#wims_supervisor_tool" class="wims_tool_item">$wims_name_tools</a></li>
  220.       !endif
  221.     </ul>
  222.  
  223.     !! Jquery tabs
  224.     !read adm/tabscript supervisor_list
  225.  
  226.     !if $subclasscnt>0
  227.       <div id="wims_supervisor_subclass">
  228.         !distribute item 1,no into wims_incremental,table_spacer
  229.         $table_header
  230.         $table_hdtr<th scope="col">$wims_name_number</th><th scope="col">$wims_name_title</th><th scope="col">$wims_name_nameteacher</th></tr>
  231.         !read themes/_widgets/supervisorsubclass.phtml
  232.         $table_end
  233.       </div>
  234.     !endif
  235.  
  236.     !set table_class=sortable
  237.     !if $sheetcnt+$examcnt>0
  238.       <div id="wims_supervisor_shlist">
  239.         !set table_id=TABLE_supervisor_shlist
  240.         !set table_htdr_=<thead>$table_htdr_1$table_exocnt$table_htdr_seq$table_htdr_2</thead>
  241.         $table_header
  242.           <caption>$C_A</caption>
  243.           $table_htdr_
  244.           !read themes/_widgets/supervisorsheet.phtml
  245.           !read themes/_widgets/supervisorexam.phtml
  246.         $table_end
  247.         !read tablesort.phtml
  248.       </div>
  249.     !endif
  250.  
  251.     !if $[$doccnt+$docpubliccnt]>0
  252.       !set table_id=TABLE_supervisor_doc
  253.       !set table_htdr_=<thead>$table_htdr_1$table_htdr_seq$table_htdr_2</thead>
  254.       <div id="wims_supervisor_doc">
  255.         $table_header
  256.           <caption>$wims_name_Docs</caption>
  257.           $table_htdr_
  258.           !read themes/_widgets/supervisordoc.phtml
  259.           !read themes/_widgets/supervisordocp.phtml
  260.         $table_end
  261.         !read tablesort.phtml
  262.       </div>
  263.     !endif
  264.  
  265.     !if $votecnt>0
  266.       !set table_id=TABLE_supervisor_vote
  267.       !set table_htdr_=<thead>$table_htdr_1$table_htdr_seq$table_htdr_2</thead>
  268.       <div id="wims_supervisor_vote">
  269.         $table_header
  270.           <caption>$wims_name_Votes</caption>
  271.           $table_htdr_
  272.           !read themes/_widgets/supervisorvote.phtml
  273.         $table_end
  274.         !read tablesort.phtml
  275.       </div>
  276.     !endif
  277.  
  278.     !if $toolcnt+$glossarycnt>0
  279.       !set table_id=TABLE_supervisor_tool
  280.       !set table_htdr_=<thead>$table_htdr_1$table_htdr_seq$table_htdr_2</thead>
  281.       <div id="wims_supervisor_tool">
  282.         !distribute item 1,no into wims_incremental,table_id,table_spacer
  283.         $table_header
  284.           <caption>$wims_name_tools</caption>
  285.           $table_htdr_
  286.           !read themes/_widgets/supervisortool.phtml
  287.         $table_end
  288.         !read tablesort.phtml
  289.       </div>
  290.     !endif
  291.   </div>
  292. !endif
  293.  
  294. !read ./form.phtml
  295. !read ./result.phtml
  296. </div><!--/wims_content -->
  297. </div><!--/wimsbody -->
  298. </div><!--/wimspagebox -->
  299.  
  300. !read themes/_procs/menumodubox0.proc
  301. !read themes/_widgets/menumodubox.phtml
  302.  
  303. :end
  304. !reset div0 div1
  305.  
  306. !distribute items div, span into div0,div1
  307. !read themes/_procs/supervisormenubox.proc
  308. !read themes/_widgets/menubox.phtml
  309. !reset div0,div1
  310.  
  311. </div><!--wimsbodybox-->
  312.  
  313. !read themes/_widgets/visitorcredits.phtml
  314. !read themes/_widgets/session_warn.phtml
  315. </body>
  316. </html>
  317. <!-- end of Nikaia/supervisor.phtml -->
  318.