Subversion Repositories wimsdev

Rev

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

  1. !read adm/title.phtml 1\
  2. $classname\
  3. $wims_name_teacherlist
  4.  
  5. !!don't work as it is
  6. !!!if $teachercnt>0
  7. !!<div class="wimscenter">
  8. !!!href module=adm/class/userscore&job=csv $wims_name_csv
  9. !!</div>
  10. !!!endif
  11.  
  12. !set table_id=TABLE_teacher
  13. !set table_class=sortable
  14. $table_header
  15. !if $wims_realuser=supervisor and $type_class=2
  16.  <caption>
  17.  !href module=adm/class/reguser&step=1&utype=1 $wims_name_addteacher
  18.  </caption>
  19. !endif
  20. <thead>
  21. $table_hdtr
  22. <th scope="col">$wims_name_account</th>
  23. <th scope="col">$wims_name_lastname</th>
  24. <th scope="col">$wims_name_firstname</th>
  25. <th scope="col">$name_gestion</th>
  26. <th scope="col">$name_inscript</th>
  27. !if $wims_realuser=supervisor or $wims_realuser=$class_Supervisor
  28.  <th data-sort-method='none'>$wims_name_action</th></tr>
  29. !endif
  30. </thead>
  31. <tbody>
  32. !for i=1 to $teachercnt
  33.  !set l=!line $i of $teacherlist
  34.  !distribute items $l into tl_,tf_,tc_
  35.  $table_tr
  36.  <td><span class="tt wims_login">$tc_</span></td>
  37.  <td>$tl_ </td>
  38.  <td>$tf_ </td>
  39.  !readproc adm/class/userdef classes,$wims_superclass,$tc_
  40.  !set sup=!defof user_supervise\
  41. user_participate in $userdef
  42.  !reset userdef
  43.  !distribute line $sup into sup,part
  44.  !if $type_class=2
  45.    !for l in sup,part
  46.      <td>
  47.      !if $($l)!=$empty
  48.        !set nb=!itemcnt $($l)
  49.        !let po=!positionof item $($l[1]) in $(ltclassname[;1])
  50.        $(ltclassname[$po;2])
  51.        !if $nb>1
  52.          !for k=2 to $nb
  53.            !let po=!positionof item $($l[$k]) in $(ltclassname[;1])
  54.            ; $(ltclassname[$po;2])
  55.          !next k
  56.        !endif
  57.      !endif
  58.      </td>
  59.    !next l
  60.  !else
  61.    !for l in sup,part
  62.      <td>
  63.      !if $wims_class isitemof $($l)
  64.         &#x2705;
  65.      !endif
  66.      </td>
  67.    !next l
  68.  !endif
  69.  !if $wims_realuser=supervisor or $wims_realuser=$class_Supervisor
  70.    <td>
  71.    !set wims_ref_class=wims_button
  72.    !href cmd=reply&job=userprop&getuser=$tc_&oldjob=teacher $wims_name_change
  73.    </td>
  74.  !endif
  75. </tr>
  76. !next i
  77. </tbody>
  78. $table_end
  79. !read tablesort.phtml
  80.  
  81. !if $type_class=2 and $wims_realuser=supervisor
  82.  !set wims_menu_items=!append line \
  83.  addteacher,1, module=adm/class/reguser&step=1&utype=1\
  84. to $wims_menu_items
  85. !endif
  86. !set wims_menu_items=!append line part_list,1,cmd=resume\
  87. to $wims_menu_items
  88.