Subversion Repositories wimsdev

Rev

Rev 10598 | Rev 12616 | 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_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.  $table_header
  49.  <caption>$name_prog5
  50.  $
  51. !set wims_ref_class=wims_button_help
  52.  !href cmd=help&special_parm=structure#course $wims_name_help
  53. $
  54.  !href cmd=reply&cparent=prog&job=addcourse $wims_name_addcourse
  55.  </caption>
  56.  $table_hdtr
  57.  <th>$name_code</th><th>$wims_name_name</th><th>$wims_name_action</th><th>$name_supervisor2</th>
  58.  <th class="small">$name_participant</th>
  59.  </tr>
  60.  !for i=1 to $coursecnt
  61.    !set l=!line $i of $courses
  62.    !distribute items $l into l_,s_,t_,n_
  63.    $table_tr<td>$l_</td>
  64.    <td>
  65.    !href cmd=reply&job=course&cparent=prog&course=$l_ $t_
  66.    </td><td>
  67.    !set wims_ref_class=wims_button wims_warning
  68.     !href cmd=reply&job=delcourse&cparent=prog&del=$l_ $wims_name_erase
  69.    </td><td>
  70.    !if $s_!=$empty
  71.     !if $s_=supervisor
  72.      $wims_name_supervisor
  73.     !else
  74.      !default n_=$s_
  75.      !href cmd=reply&job=modteacher&teacher=$s_ $n_
  76.     !endif
  77.    !else
  78.     $name_nonavailable
  79.    !endif
  80.    !set c=!recordcnt $classdir1/$l_/.userlist
  81.    </td><td>$c</td>
  82.    </tr>
  83.  !next i
  84.  $table_end
  85. !endif
  86. </div>
  87. <div id="wims_zone_icourse">
  88. !if $icoursecnt=0
  89. $name_prog9
  90.  !href cmd=reply&cparent=prog&job=addicourse $wims_name_addicourse
  91.  $
  92. !set wims_ref_class=wims_button_help
  93.  !href cmd=help&special_parm=structure#icourse $wims_name_help
  94. !else
  95.  $table_header
  96.  <caption>$wims_name_icourse
  97.   $
  98. !set wims_ref_class=wims_button_help
  99.  !href cmd=help&special_parm=structure#icourse $wims_name_help
  100.  $
  101.  !href cmd=reply&cparent=prog&job=addicourse $wims_name_addcourse
  102.  </caption>
  103.  $table_hdtr
  104.  <th>$name_code</th><th>$wims_name_name</th><th>$wims_name_action</th><th>$name_supervisor2</th>
  105.  <th class="small">$name_participant</th>
  106.  </tr>
  107.  !for i=1 to $icoursecnt
  108.    !set l=!line $i of $icourses
  109.    !distribute items $l into l_,s_,t_,n_
  110.    $table_tr<td>$l_</td>
  111.    <td>
  112.    !href cmd=reply&job=icourse&cparent=prog&course=$l_ $t_
  113.    </td><td>
  114.    !set wims_ref_class=wims_button wims_warning
  115.     !href cmd=reply&job=delcourse&cparent=prog&del=$l_ $wims_name_erase
  116.    </td><td>
  117.    !if $s_!=$empty
  118.     !if $s_=supervisor
  119.      $s_
  120.     !else
  121.      !default n_=$s_
  122.      !href cmd=reply&job=modteacher&teacher=$s_ $n_
  123.     !endif
  124.    !else
  125.     $name_nonavailable
  126.    !endif
  127.    !set c=!recordcnt $classdir1/$l_/.userlist
  128.    </td><td>$c</td>
  129.  !next i
  130.   </tr>
  131.  $table_end
  132. !endif
  133. </div>
  134. <div id="wims_zone_recsharable">
  135. !if $recsharable!=$empty
  136.  $table_header
  137.  <caption>$name_prog6</caption>
  138.  $table_hdtr
  139.  <th>Code</th>
  140.  <th>$wims_name_level</th>
  141.  <th>$wims_name_program</th>
  142.  </tr>
  143.  !set n=!linecnt $recsharable
  144.  !for i=1 to $n
  145.   $table_tr
  146.   !set l=!line $i of $recsharable
  147.   !distribute items $l into add,name
  148.   !set l_=!translate / to , in $add
  149.   !set l_=!item 1 of $l_
  150.   !set l_=!defof class_description in $classdir1/$l_/.def
  151.   <td><span class="tt">$add</span></td>
  152.   <td>$l_</td>
  153.   <td style="text-align:left">
  154.   !href cmd=reply&job=progshare&prog=$prog&shareprog=$add $name
  155.   </td></tr>
  156.  !next i
  157.  $table_end
  158. !endif
  159. !if $class_recshare!=$empty
  160.  <p>
  161.  !if $class_recshare=main
  162.   $name_prog7
  163.  !else
  164.   !set l_=!translate / to , in $class_recshare
  165.   !set shareprog=!defof class_description in $classdir1/$class_recshare/.def
  166.   !set sharelevel=!defof class_description in $classdir1/$(l_[1])/.def
  167.   $name_prog8
  168.   <em>$shareprog</em> ($name_level <em>$sharelevel</em>).
  169.  !endif
  170.  </p>
  171. !endif
  172. </div>
  173. !set wims_menu_items=!append line addcourse,1,cmd=reply&cparent=prog&job=addcourse\
  174. addicourse,1,cmd=reply&cparent=prog&job=addicourse\
  175. to $wims_menu_items
  176.  
  177. !reset title
  178.