Subversion Repositories wimsdev

Rev

Rev 14335 | 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_mkclass</th>
  26. <th scope="col">$name_gestion</th>
  27. <th scope="col">$name_inscript</th>
  28. !if $wims_realuser=supervisor or $wims_realuser=$class_Supervisor
  29.  <th data-sort-method='none'>$wims_name_action</th></tr>
  30. !endif
  31. </thead>
  32. <tbody>
  33. !for i=1 to $teachercnt
  34.  !set l=!line $i of $teacherlist
  35.  !distribute items $l into tl_,tf_,tc_
  36.  $table_tr
  37.  <td><span class="tt wims_login">$tc_</span></td>
  38.  <td>$tl_ </td>
  39.  <td>$tf_ </td>
  40.  !readproc adm/class/userdef classes,$wims_superclass,$tc_
  41.  !set sup=!defof user_supervise\
  42. user_participate\
  43. user_mkclass in $userdef
  44.  !reset userdef
  45.  !distribute line $sup into sup,part,mk
  46.  <td>
  47.   !if $mk!=no
  48.    &#x2705;
  49.   !endif
  50.  </td>
  51.  !if $type_class=2
  52.    !for l in sup,part
  53.      <td>
  54.      !if $($l)!=$empty
  55.        !set nb=!itemcnt $($l)
  56.        !let po=!positionof item $($l[1]) in $(ltclassname[;1])
  57.        $(ltclassname[$po;2])
  58.        !if $nb>1
  59.          !for k=2 to $nb
  60.            !let po=!positionof item $($l[$k]) in $(ltclassname[;1])
  61.            ; $(ltclassname[$po;2])
  62.          !next k
  63.        !endif
  64.      !endif
  65.      </td>
  66.    !next l
  67.  !else
  68.    !for l in sup,part
  69.      <td>
  70.      !if $wims_class isitemof $($l)
  71.         &#x2705;
  72.      !endif
  73.      </td>
  74.    !next l
  75.  !endif
  76.  !if $wims_realuser=supervisor or $wims_realuser=$class_Supervisor
  77.    <td>
  78.    !set wims_ref_class=wims_button
  79.    !href cmd=reply&job=userprop&getuser=$tc_&oldjob=teacher $wims_name_change
  80.    </td>
  81.  !endif
  82. </tr>
  83. !next i
  84. </tbody>
  85. $table_end
  86. !read tablesort.phtml
  87.  
  88. !if $type_class=2 and $wims_realuser=supervisor
  89.  !set wims_menu_items=!append line \
  90.  addteacher,1, module=adm/class/reguser&step=1&utype=1\
  91. to $wims_menu_items
  92. !endif
  93. !set wims_menu_items=!append line part_list,1,cmd=resume\
  94. to $wims_menu_items
  95.