Subversion Repositories wimsdev

Rev

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

  1. !read scripts/userform.phtml teacher
  2. !set supervise=!defof user_supervise in wimshome/log/classes/$wims_superclass/.users/$login
  3. !if $supervise!=$empty
  4.   !set table_id=TABLE_teacherlist
  5.   !set table_class=sortable
  6.   $table_header
  7.   <caption>$name_gestion</caption>
  8.   <thead>
  9.   $table_hdtr
  10.   <th scope="col">$wims_name_name</th><th scope="col">$wims_name_Type</th>
  11.   <th scope="col" data-sort-method="none">$wims_name_action</th>
  12.   </tr>
  13.   </thead>
  14.   <tbody>
  15.   !for z in $supervise
  16.     !set name=!defof class_description in wimshome/log/classes/$z/.def
  17.     !set type=!defof class_typename in wimshome/log/classes/$z/.def
  18.     !set default=!defof class_Supervisor in wimshome/log/classes/$z/.def
  19.     $table_tr
  20.     <td>$name</td>
  21.     <td>$(name_$type)</td>
  22.     <td>
  23.     !if $default=$login
  24.       --
  25.     !else
  26.       !set wims_ref_class=wims_button wims_warning
  27.       !href cmd=reply&del=$z $wims_name_erase
  28.     !endif
  29.     </td>
  30.     </tr>
  31.   !next z
  32.   </tbody>
  33.   $table_end
  34.   !read tablesort.phtml
  35. !endif
  36.