Subversion Repositories wimsdev

Rev

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