Subversion Repositories wimsdev

Rev

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