Subversion Repositories wimsdev

Rev

Rev 12616 | Go to most recent revision | 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.   <script src="scripts/js/tablesort.js"></script>
  5.   !set table_id=TABLE_teacherlist
  6.   !set table_class=sortable
  7.   $table_header
  8.   <caption>$name_gestion</caption>
  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.   !for z in $supervise
  14.     !set name=!defof class_description in wimshome/log/classes/$z/.def
  15.     !set type=!defof class_typename in wimshome/log/classes/$z/.def
  16.     !set default=!defof class_Supervisor in wimshome/log/classes/$z/.def
  17.     $table_tr
  18.     <td>$name</td>
  19.     <td>$(name_$type)</td>
  20.     <td>
  21.     !if $default=$login
  22.       --
  23.     !else
  24.       !set wims_ref_class=wims_button wims_warning
  25.       !href cmd=reply&del=$z $wims_name_erase
  26.     !endif
  27.     </td>
  28.     </tr>
  29.   !next z
  30.   $table_end
  31.   <script>
  32.     new Tablesort(document.getElementById('TABLE_teacherlist'));
  33.  </script>
  34.  
  35. !endif
  36.