Subversion Repositories wimsdev

Rev

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

  1. !set form_titlename=$wims_name_title
  2. !set form_caption=$name_programproperties
  3. !set title=$class_description
  4. !set sup=$class_Supervisor
  5. <div id="widget_zone_list">
  6. !if $jquery_defined=yes
  7.   !read adm/tabscript zone_list
  8. !endif
  9. <script src="scripts/js/tablesort.js"></script>
  10. <ul>
  11.  <li><a href="#wims_classform">$wims_name_properties</a></li>
  12.  <li><a href="#wims_othergestion">$name_othergestion</a></li>
  13.  <li><a href="#wims_zone_course">$wims_name_course</a></li>
  14.  <li><a href="#wims_zone_icourse">$wims_name_icourse</a></li>
  15. !if $class_recshare$recsharable!=$empty
  16.  <li><a href="#wims_zone_recsharable">$name_recsharable</a></li>
  17. !endif
  18.  
  19. </ul>
  20. <div id="wims_classform">
  21. !read scripts/progform.phtml
  22. !if $hastest=yes
  23.   $name_prog1
  24.    $
  25.   !set wims_ref_class=wims_button_help
  26.   !href cmd=help&special_parm=structure#test $wims_name_help
  27.  !set wims_ref_class=wims_button
  28.   !href module=adm/class/classes&type=authsupervisor&class=$wims_superclass/$prog/0 $name_visit
  29.   $
  30.   !set wims_ref_class=wims_button wims_warning
  31.   !href cmd=reply&job=deltest $wims_name_erase
  32. !else
  33.   $name_prog2
  34.   !href cmd=reply&job=addtest $name_prog3
  35.   $
  36.   !set wims_ref_class=wims_button_help
  37.   !href cmd=help&special_parm=structure#test $wims_name_help
  38. !endif
  39. </div>
  40. <div id="wims_zone_course">
  41. !if $coursecnt=0
  42.   $name_prog4
  43.   !href cmd=reply&cparent=prog&job=addcourse $wims_name_addcourse
  44.   $
  45.   !set wims_ref_class=wims_button_help
  46.   !href cmd=help&special_parm=structure#course $wims_name_help
  47.  $
  48. !else
  49.   !set table_id=TABLE_courselist
  50.   !set table_class=sortable
  51.   $table_header
  52.   <caption>$name_prog5
  53.   $
  54.   !set wims_ref_class=wims_button_help
  55.   !href cmd=help&special_parm=structure#course $wims_name_help
  56.  $
  57.   !href cmd=reply&cparent=prog&job=addcourse $wims_name_addcourse
  58.   </caption>
  59.   <thead>
  60.   $table_hdtr
  61.   <th scope="col">$name_code</th><th scope="col">$wims_name_name</th>
  62.   <th scope="col" data-sort-method="none">$wims_name_action</th><th scope="col">$name_supervisor2</th>
  63.   <th class="small" scope="col">$name_participant</th>
  64.   </tr>
  65.   </thead>
  66.   !for i=1 to $coursecnt
  67.     !set l=!line $i of $courses
  68.     !distribute items $l into l_,s_,t_,n_
  69.     $table_tr<td>$l_</td>
  70.     <td>
  71.     !href cmd=reply&job=course&cparent=prog&course=$l_ $t_
  72.     </td><td>
  73.     !set wims_ref_class=wims_button wims_warning
  74.     !href cmd=reply&job=delcourse&cparent=prog&del=$l_ $wims_name_erase
  75.     </td><td>
  76.     !if $s_!=$empty
  77.       !if $s_=supervisor
  78.         $wims_name_supervisor
  79.       !else
  80.         !default n_=$s_
  81.         !href cmd=reply&job=modteacher&teacher=$s_ $n_
  82.       !endif
  83.     !else
  84.       $name_nonavailable
  85.     !endif
  86.     !set c=!recordcnt $classdir1/$l_/.userlist
  87.     </td><td>$c</td>
  88.     </tr>
  89.   !next i
  90.   $table_end
  91.   <script>
  92.     new Tablesort(document.getElementById('TABLE_courselist'));
  93.  </script>
  94. !endif
  95. </div>
  96. <div id="wims_zone_icourse">
  97. !if $icoursecnt=0
  98.   $name_prog9
  99.   !href cmd=reply&cparent=prog&job=addicourse $wims_name_addicourse
  100.    $
  101.   !set wims_ref_class=wims_button_help
  102.   !href cmd=help&special_parm=structure#icourse $wims_name_help
  103. !else
  104.   !set table_id=TABLE_icourselist
  105.   !set table_class=sortable
  106.   $table_header
  107.    <caption>$wims_name_icourse
  108.     $
  109.   !set wims_ref_class=wims_button_help
  110.   !href cmd=help&special_parm=structure#icourse $wims_name_help
  111.  $
  112.   !href cmd=reply&cparent=prog&job=addicourse $wims_name_addcourse
  113.   </caption>
  114.   <thead>
  115.   $table_hdtr
  116.   <th scope="col">$name_code</th><th scope="col">$wims_name_name</th>
  117.   <th scope="col">$wims_name_action</th><th scope="col">$name_supervisor2</th>
  118.   <th class="small" scope="col">$name_participant</th>
  119.   </tr>
  120.   </thead>
  121.   <tbody>
  122.   !for i=1 to $icoursecnt
  123.     !set l=!line $i of $icourses
  124.     !distribute items $l into l_,s_,t_,n_
  125.     $table_tr<td>$l_</td>
  126.     <td>
  127.     !href cmd=reply&job=icourse&cparent=prog&course=$l_ $t_
  128.     </td><td>
  129.     !set wims_ref_class=wims_button wims_warning
  130.     !href cmd=reply&job=delcourse&cparent=prog&del=$l_ $wims_name_erase
  131.     </td><td>
  132.     !if $s_!=$empty
  133.       !if $s_=supervisor
  134.         $s_
  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.     !set c=!recordcnt $classdir1/$l_/.userlist
  143.     </td><td>$c</td>
  144.   !next i
  145.   </tr>
  146.   </tbody>
  147.   $table_end
  148.   <script>
  149.     new Tablesort(document.getElementById('TABLE_icourselist'));
  150.   </script>
  151. !endif
  152. </div>
  153. <div id="wims_zone_recsharable">
  154. !if $recsharable!=$empty
  155.   !set table_id=TABLE_programlist
  156.   !set table_class=sortable
  157.   $table_header
  158.   <caption>$name_prog6</caption>
  159.   <thead>
  160.   $table_hdtr
  161.   <th scope="col">Code</th>
  162.   <th scope="col">$wims_name_level</th>
  163.   <th scope="col">$wims_name_program</th>
  164.   </tr>
  165.   </thead>
  166.   <tbody>
  167.   !set n=!linecnt $recsharable
  168.   !for i=1 to $n
  169.     $table_tr
  170.     !set l=!line $i of $recsharable
  171.     !distribute items $l into add,name
  172.     !set l_=!translate / to , in $add
  173.     !set l_=!item 1 of $l_
  174.     !set l_=!defof class_description in $classdir1/$l_/.def
  175.     <td><span class="tt">$add</span></td>
  176.     <td>$l_</td>
  177.     <td style="text-align:left">
  178.     !href cmd=reply&job=progshare&prog=$prog&shareprog=$add $name
  179.     </td></tr>
  180.   !next i
  181.   </tbody>
  182.   $table_end
  183.   <script>
  184.     new Tablesort(document.getElementById('TABLE_programlist'));
  185.   </script>
  186. !endif
  187. !if $class_recshare!=$empty
  188.   <p>
  189.   !if $class_recshare=main
  190.     $name_prog7
  191.   !else
  192.     !set l_=!translate / to , in $class_recshare
  193.     !set shareprog=!defof class_description in $classdir1/$class_recshare/.def
  194.     !set sharelevel=!defof class_description in $classdir1/$(l_[1])/.def
  195.     $name_prog8
  196.     <em>$shareprog</em> ($name_level <em>$sharelevel</em>).
  197.   !endif
  198.   </p>
  199. !endif
  200. </div>
  201. !set wims_menu_items=!append line addcourse,1,cmd=reply&cparent=prog&job=addcourse\
  202. addicourse,1,cmd=reply&cparent=prog&job=addicourse\
  203. to $wims_menu_items
  204.  
  205. !reset title
  206.