Subversion Repositories wimsdev

Rev

Rev 12636 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !set form_OK=$wims_name_tosave
  2. !set form_titlename=$wims_name_title
  3. !set form_caption=$name_classproperties
  4. !set title=$class_description
  5. !set sup=$class_Supervisor
  6. <div id="widget_zone_list">
  7. !if $jquery_defined=yes
  8.   !read adm/tabscript zone_list
  9. !endif
  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. </ul>
  15. <div id="wims_classform">
  16. !read scripts/classform.phtml
  17. </div>
  18. <div id="wims_zone_course">
  19. !if $coursecnt=0
  20.   <p>
  21.   $name_class1
  22.   !href cmd=reply&cparent=class&job=addcourse $wims_name_addcourse
  23.     $
  24.   !set wims_ref_class=wims_button_help
  25.   !href cmd=help&special_parm=structure#course $wims_name_help
  26.   </p>
  27. !else
  28.   !set table_id=TABLE_courselist
  29.   !set table_class=sortable
  30.   $table_header
  31.   <caption>$name_class2
  32.     $
  33.     !set wims_ref_class=wims_button_help
  34.     !href cmd=help&special_parm=structure#course $wims_name_help
  35.  </caption>
  36.   <thead>
  37.   $table_hdtr
  38.   <th scope="col">$name_code</th><th scope="col">$wims_name_name</th>
  39.   <th scope="col" data-sort-method="none">$wims_name_action</th>
  40.   <th scope="col">$name_supervisor2</th>
  41.   </tr>
  42.   </thead>
  43.   <tbody>
  44.   !for i=1 to $coursecnt
  45.     !set l=!line $i of $courses
  46.     !distribute items $l into l_,s_,t_,n_
  47.     $table_tr<td>$l_</td>
  48.     <td>
  49.     !href cmd=reply&job=course&cparent=class&course=$l_ $t_
  50.     </td><td>
  51.     !set wims_ref_class=wims_button wims_warning
  52.     !href cmd=reply&job=delcourse&cparent=class&del=$l_ $wims_name_erase
  53.     </td><td>
  54.     !if $s_!=$empty
  55.       !if $s_=supervisor
  56.         $s_
  57.       !else
  58.         !default n_=$s_
  59.         !href cmd=reply&job=modteacher&teacher=$s_ $n_
  60.       !endif
  61.     !else
  62.       $name_nonavailable
  63.     !endif
  64.     </td></tr>
  65.   !next i
  66.   </tbody>
  67.   $table_end
  68.   !read tablesort.phtml
  69.   <div class="wimscenter">
  70.     !set wims_ref_class=wims_button
  71.     !href cmd=reply&cparent=class&job=addcourse $wims_name_addcourse
  72.   </div>
  73. !endif
  74. </div>
  75. !set wims_menu_items=!append line addcourse,1,cmd=reply&cparent=class&job=addcourse\
  76. to $wims_menu_items
  77. !reset title
  78.