Subversion Repositories wimsdev

Rev

Rev 12626 | 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.  </caption>
  57.   <thead>
  58.   $table_hdtr
  59.     <th scope="col">$name_code</th><th scope="col">$wims_name_name</th>
  60.     <th scope="col" data-sort-method="none">$wims_name_action</th><th scope="col">$name_supervisor2</th>
  61.     <th class="small" scope="col">$name_participant</th>
  62.   </tr>
  63.   </thead>
  64.   !for i=1 to $coursecnt
  65.     !set l=!line $i of $courses
  66.     !distribute items $l into l_,s_,t_,n_
  67.     $table_tr<td>$l_</td>
  68.     <td>
  69.       !href cmd=reply&job=course&cparent=prog&course=$l_ $t_
  70.     </td><td>
  71.       !set wims_ref_class=wims_button wims_warning
  72.       !href cmd=reply&job=delcourse&cparent=prog&del=$l_ $wims_name_erase
  73.     </td><td>
  74.       !if $s_!=$empty
  75.         !if $s_=supervisor
  76.           $wims_name_supervisor
  77.         !else
  78.           !default n_=$s_
  79.           !href cmd=reply&job=modteacher&teacher=$s_ $n_
  80.         !endif
  81.       !else
  82.         $name_nonavailable
  83.       !endif
  84.       !set c=!recordcnt $classdir1/$l_/.userlist
  85.     </td><td>$c</td>
  86.     </tr>
  87.   !next i
  88.   $table_end
  89.   <script>
  90.     new Tablesort(document.getElementById('TABLE_courselist'));
  91.   </script>
  92.   <div class="wimscenter">
  93.     !set wims_ref_class=wims_button icon_button
  94.     !href cmd=reply&cparent=prog&job=addcourse <span class="createnew">$wims_name_addcourse</span>
  95.   </div>
  96. !endif
  97. </div>
  98. <div id="wims_zone_icourse">
  99. !if $icoursecnt=0
  100.   $name_prog9
  101.   !href cmd=reply&cparent=prog&job=addicourse $wims_name_addicourse
  102.    $
  103.   !set wims_ref_class=wims_button_help
  104.   !href cmd=help&special_parm=structure#icourse $wims_name_help
  105. !else
  106.   !set table_id=TABLE_icourselist
  107.   !set table_class=sortable
  108.   $table_header
  109.    <caption>$wims_name_icourse
  110.     $
  111.   !set wims_ref_class=wims_button_help
  112.   !href cmd=help&special_parm=structure#icourse $wims_name_help
  113.  $
  114.   !href cmd=reply&cparent=prog&job=addicourse $wims_name_addcourse
  115.   </caption>
  116.   <thead>
  117.     $table_hdtr
  118.       <th scope="col">$name_code</th><th scope="col">$wims_name_name</th>
  119.       <th scope="col">$wims_name_action</th><th scope="col">$name_supervisor2</th>
  120.       <th class="small" scope="col">$name_participant</th>
  121.     </tr>
  122.   </thead>
  123.   <tbody>
  124.   !for i=1 to $icoursecnt
  125.     !set l=!line $i of $icourses
  126.     !distribute items $l into l_,s_,t_,n_
  127.     $table_tr<td>$l_</td>
  128.     <td>
  129.       !href cmd=reply&job=icourse&cparent=prog&course=$l_ $t_
  130.     </td><td>
  131.       !set wims_ref_class=wims_button wims_warning
  132.       !href cmd=reply&job=delcourse&cparent=prog&del=$l_ $wims_name_erase
  133.     </td><td>
  134.       !if $s_!=$empty
  135.         !if $s_=supervisor
  136.           $s_
  137.         !else
  138.           !default n_=$s_
  139.           !href cmd=reply&job=modteacher&teacher=$s_ $n_
  140.         !endif
  141.       !else
  142.         $name_nonavailable
  143.       !endif
  144.       !set c=!recordcnt $classdir1/$l_/.userlist
  145.     </td><td>$c</td>
  146.   !next i
  147.   </tr>
  148.   </tbody>
  149.   $table_end
  150.   <script>
  151.     new Tablesort(document.getElementById('TABLE_icourselist'));
  152.   </script>
  153. !endif
  154. </div>
  155. <div id="wims_zone_recsharable">
  156. !if $recsharable!=$empty
  157.   !set table_id=TABLE_programlist
  158.   !set table_class=sortable
  159.   $table_header
  160.   <caption>$name_prog6</caption>
  161.   <thead>
  162.     $table_hdtr
  163.       <th scope="col">Code</th>
  164.       <th scope="col">$wims_name_level</th>
  165.       <th scope="col">$wims_name_program</th>
  166.     </tr>
  167.   </thead>
  168.   <tbody>
  169.   !set n=!linecnt $recsharable
  170.   !for i=1 to $n
  171.     $table_tr
  172.       !set l=!line $i of $recsharable
  173.       !distribute items $l into add,name
  174.       !set l_=!translate / to , in $add
  175.       !set l_=!item 1 of $l_
  176.       !set l_=!defof class_description in $classdir1/$l_/.def
  177.       <td><span class="tt">$add</span></td>
  178.       <td>$l_</td>
  179.       <td style="text-align:left">
  180.         !href cmd=reply&job=progshare&prog=$prog&shareprog=$add $name
  181.       </td>
  182.     </tr>
  183.   !next i
  184.   </tbody>
  185.   $table_end
  186.   <script>
  187.     new Tablesort(document.getElementById('TABLE_programlist'));
  188.   </script>
  189. !endif
  190. !if $class_recshare!=$empty
  191.   <p>
  192.   !if $class_recshare=main
  193.     $name_prog7
  194.   !else
  195.     !set l_=!translate / to , in $class_recshare
  196.     !set shareprog=!defof class_description in $classdir1/$class_recshare/.def
  197.     !set sharelevel=!defof class_description in $classdir1/$(l_[1])/.def
  198.     $name_prog8
  199.     <em>$shareprog</em> ($name_level <em>$sharelevel</em>).
  200.   !endif
  201.   </p>
  202. !endif
  203. </div>
  204. !set wims_menu_items=!append line addcourse,1,cmd=reply&cparent=prog&job=addcourse\
  205. addicourse,1,cmd=reply&cparent=prog&job=addicourse\
  206. to $wims_menu_items
  207.  
  208. !reset title
  209.