Subversion Repositories wimsdev

Rev

Rev 12617 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !if $ccnt=0
  2.   !if $parent=class
  3.     $name_course1
  4.   !else
  5.     $name_course2
  6.   !endif
  7.   !href cmd=reply&job=$parent $wims_name_back2
  8.   .
  9.   !exit
  10. !endif
  11. !set table_id=TABLE_courselist
  12. !set table_class=sortable
  13. !if $parent=class
  14.   $name_course3
  15.   $table_header
  16.   <thead>
  17.   $table_hdtr<th scope="col">$wims_name_title</th><th scope="col">$wims_name_comment</th></tr>
  18.   </thead>
  19.   <tbody>
  20.   !for p in $clist
  21.     !set i_=!defof class_description in wimshome/log/classes/$p/.def
  22.     $table_tr
  23.     <td>
  24.     !href cmd=reply&confirm=yes&courseclass=$class&courseprog=$p $i_
  25.     </td><td>-</td></tr>
  26.   !next p
  27.   </tbody>
  28.   $table_end
  29.   !goto end
  30.   !exit
  31. !endif
  32.  
  33. !if $parent=prog
  34.   $name_course4
  35.   $table_header
  36.   <thead>
  37.   $table_hdtr<th scope="col">$wims_name_title</th>
  38.   <th scope="col">$wims_name_comment</th></tr>
  39.   </thead>
  40.   <tbody>
  41.   !for c in $clist
  42.     !set i_=!defof class_description in wimshome/log/classes/$c/.def
  43.     $table_tr
  44.     <td>
  45.     !href cmd=reply&confirm=yes&courseclass=$c&courseprog=$prog&cparent=$parent $i_
  46.     </td><td>-</td></tr>
  47.   !next c
  48.   </tbody>
  49.   $table_end
  50.   !goto end
  51.   !exit
  52. !endif
  53.  
  54. :end
  55.  <script>
  56.     new Tablesort(document.getElementById('TABLE_courselist'));
  57.  </script>
  58.