Subversion Repositories wimsdev

Rev

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

  1.  
  2. !set form_titlename=$wims_name_title
  3. !set form_caption=$name_levelproperties
  4. !set title=$class_description
  5. !set sup=$class_Supervisor
  6. !set alevel=$class_level
  7. <div id="widget_zone_list">
  8. !if $jquery_defined=yes
  9.   !read adm/tabscript zone_list
  10. !endif
  11. <script src="scripts/js/tablesort.js"></script>
  12. <ul>
  13.  <li><a href="#wims_levelform">$wims_name_properties</a></li>
  14.  <li><a href="#wims_othergestion">$name_othergestion</a></li>
  15.  <li><a href="#wims_zone_class">$wims_name_class</a></li>
  16.  <li><a href="#wims_zone_program">$wims_name_program</a></li>
  17.  
  18. </ul>
  19. <div id="wims_levelform">
  20. !read scripts/levelform.phtml
  21. </div>
  22. <div id="wims_zone_class">
  23. !if $classcnt=0
  24.   <p>
  25.   $name_level1
  26.   !href cmd=reply&job=addclass $wims_name_addclass
  27.   !!/
  28.   !! !href cmd=reply&job=addcsvclass $name_addcsvclass
  29.   !!.
  30.   !! $
  31.   !set wims_ref_class=wims_button_help
  32.   !href cmd=help&special_parm=structure#class $wims_name_help
  33.  </p>
  34. !else
  35.   !set table_id=TABLE_classlist
  36.   !set table_class=sortable
  37.   $table_header
  38.   <caption>$name_level4
  39.   $
  40.   !set wims_ref_class=wims_button_help
  41.   !href cmd=help&special_parm=structure#class $wims_name_help
  42.  !! !href cmd=reply&job=addclass $wims_name_addclass
  43.   !! /
  44.   !! !href cmd=reply&job=addcsvclass $name_addcsvclass
  45.   </caption>
  46.   <thead>
  47.   $table_hdtr
  48.   <th scope="col">$name_code</th><th scope="col">$wims_name_name</th>
  49.   <th scope="col">$wims_name_action</th><th scope="col">$name_supervisor2</th>
  50.   <th class="small" scope="col">$wims_name_course</th>
  51.   <th class="small" scope="col">$name_participant</th>
  52.   </tr>
  53.   </thead>
  54.   <tbody>
  55.   !for i=1 to $classcnt
  56.     !set l=!line $i of $classes
  57.     !distribute items $l into l_,s_,t_,n_
  58.     !set c=!record 0 of $classdir1/$l_/courses
  59.     !set c=!nonempty lines $c
  60.     !set c=!linecnt $c
  61.     $table_tr<td>$l_</td>
  62.     <td>
  63.     !href cmd=reply&job=class&class=$l_ $t_
  64.     </td><td>
  65.     !set wims_ref_class=wims_button wims_warning
  66.     !href cmd=reply&job=delclass&del=$l_ $wims_name_erase
  67.     </td><td>
  68.     !if $s_!=$empty
  69.       !if $s_=supervisor
  70.         $wims_name_supervisor
  71.       !else
  72.         !default n_=$s_
  73.         !href cmd=reply&job=modteacher&teacher=$s_ $n_
  74.       !endif
  75.     !else
  76.       $name_nonavailable
  77.     !endif
  78.     </td><td>$c</td>
  79.     !set c=!recordcnt $classdir1/$l_/.userlist
  80.     <td>$c</td>
  81.     </tr>
  82.   !next i
  83.   </tbody>
  84.   $table_end
  85.   <script>
  86.     new Tablesort(document.getElementById('TABLE_classlist'));
  87.   </script>
  88. !endif
  89. </div>
  90. <div id="wims_zone_program">
  91. !if $progcnt=0
  92.   <p>
  93.   $name_level2
  94.   !href cmd=reply&job=addprog $wims_name_addprog
  95.   . $
  96.   !set wims_ref_class=wims_button_help
  97.   !href cmd=help&special_parm=structure#program $wims_name_help
  98.  </p>
  99. !else
  100.   !set table_id=TABLE_programlist
  101.   !set table_class=sortable
  102.   $table_header
  103.   <caption>$name_level3
  104.   $
  105.   !set wims_ref_class=wims_button_help
  106.   !href cmd=help&special_parm=structure#program $wims_name_help
  107.  !! <span class="small">
  108.   !! !href cmd=reply&job=addprog $wims_name_addprog
  109.   !! </span>
  110.   </caption>
  111.   <thead>
  112.   $table_hdtr
  113.   <th scope="col">$name_code</th><th  scope="col">$wims_name_name</th>
  114.   <th scope="col" data-sort-method="none">$wims_name_action</th><th  scope="col">$name_supervisor2</th>
  115.   <th class="small" scope="col">$wims_name_course</th>
  116.   </tr>
  117.   </thead>
  118.   <tbody>
  119.   !for i=1 to $progcnt
  120.     !set l=!line $i of $programs
  121.     !distribute items $l into l_,s_,t_,n_
  122.     !set c=!record 0 of $classdir1/$l_/courses
  123.     !set c=!nonempty lines $c
  124.     !set c=!linecnt $c
  125.     $table_tr<td>$l_</td>
  126.     <td>
  127.     !href cmd=reply&job=prog&prog=$l_ $t_
  128.     </td><td>
  129.     !set wims_ref_class=wims_button wims_warning
  130.     !href cmd=reply&job=delprog&del=$l_ $wims_name_erase
  131.     </td><td>
  132.     !if $s_!=$empty
  133.       !if $s_=supervisor
  134.         $wims_name_supervisor
  135.       !else
  136.         !default n_=$s_
  137.         !href cmd=reply&job=modteacher&teacher=$s_ $n_
  138.       !endif
  139.     !else
  140.       $name_nonavailable
  141.     !endif
  142.     </td><td>$c</td>
  143.     </tr>
  144.   !next i
  145.   </tbody>
  146.   $table_end
  147.   <script>
  148.     new Tablesort(document.getElementById('TABLE_programlist'));
  149.  </script>
  150. !endif
  151. !set wims_menu_items=!append line addclass,1,cmd=reply&job=addclass\
  152. addcsvclass,1,cmd=reply&job=addcsvclass\
  153. itemsep,0,\
  154. addprog,1,cmd=reply&job=addprog\
  155. to $wims_menu_items
  156. </div>
  157. !! div id="widget_zone_list" is closed in main.phtml
  158. !reset title
  159.