Subversion Repositories wimsdev

Rev

Rev 12636 | 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.  
  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.   !read tablesort.phtml
  86. !endif
  87. </div>
  88. <div id="wims_zone_program">
  89. !if $progcnt=0
  90.   <p>
  91.   $name_level2
  92.   !href cmd=reply&job=addprog $wims_name_addprog
  93.   . $
  94.   !set wims_ref_class=wims_button_help
  95.   !href cmd=help&special_parm=structure#program $wims_name_help
  96.  </p>
  97. !else
  98.   !set table_id=TABLE_programlist
  99.   !set table_class=sortable
  100.   $table_header
  101.   <caption>$name_level3
  102.   $
  103.   !set wims_ref_class=wims_button_help
  104.   !href cmd=help&special_parm=structure#program $wims_name_help
  105.  !! <span class="small">
  106.   !! !href cmd=reply&job=addprog $wims_name_addprog
  107.   !! </span>
  108.   </caption>
  109.   <thead>
  110.   $table_hdtr
  111.   <th scope="col">$name_code</th><th  scope="col">$wims_name_name</th>
  112.   <th scope="col" data-sort-method="none">$wims_name_action</th><th  scope="col">$name_supervisor2</th>
  113.   <th class="small" scope="col">$wims_name_course</th>
  114.   </tr>
  115.   </thead>
  116.   <tbody>
  117.   !for i=1 to $progcnt
  118.     !set l=!line $i of $programs
  119.     !distribute items $l into l_,s_,t_,n_
  120.     !set c=!record 0 of $classdir1/$l_/courses
  121.     !set c=!nonempty lines $c
  122.     !set c=!linecnt $c
  123.     $table_tr<td>$l_</td>
  124.     <td>
  125.     !href cmd=reply&job=prog&prog=$l_ $t_
  126.     </td><td>
  127.     !set wims_ref_class=wims_button wims_warning
  128.     !href cmd=reply&job=delprog&del=$l_ $wims_name_erase
  129.     </td><td>
  130.     !if $s_!=$empty
  131.       !if $s_=supervisor
  132.         $wims_name_supervisor
  133.       !else
  134.         !default n_=$s_
  135.         !href cmd=reply&job=modteacher&teacher=$s_ $n_
  136.       !endif
  137.     !else
  138.       $name_nonavailable
  139.     !endif
  140.     </td><td>$c</td>
  141.     </tr>
  142.   !next i
  143.   </tbody>
  144.   $table_end
  145.   !read tablesort.phtml
  146. !endif
  147. !set wims_menu_items=!append line addclass,1,cmd=reply&job=addclass\
  148. addcsvclass,1,cmd=reply&job=addcsvclass\
  149. itemsep,0,\
  150. addprog,1,cmd=reply&job=addprog\
  151. to $wims_menu_items
  152. </div>
  153. !! div id="widget_zone_list" is closed in main.phtml
  154. !reset title
  155.