Subversion Repositories wimsdev

Rev

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

  1. <div class="wims_content">
  2.  
  3. !read search.phtml
  4. !if $clcnt+$sccnt<1 and $keyword!=$empty
  5.   <p class="notfound">
  6.   $name_nofound
  7.   </p>
  8. !endif
  9. !if $wims_user!=$empty
  10.   !read direct.phtml
  11.   !if $wims_user!=supervisor and $supervisable!=yes
  12.     !exit
  13.   !endif
  14. !else
  15.   !read lang/supervisor.phtml.$modu_lang
  16. !endif
  17.  
  18. !if $overflow=yes
  19.   !exit
  20. !endif
  21.  
  22. !if $clcnt+$sccnt>0
  23.   !if $wims_user=$empty
  24.     $name_supervisor_text
  25.   !endif
  26.  
  27.   !if $sccnt>0
  28.     !set table_id=TABLE_portal
  29.     !set table_class=sortable
  30.     $table_header
  31.     <caption>$name_portalandgroup</caption>
  32.     <thead>
  33.     <tr>
  34.     <th></th>
  35.     <th>$wims_name_teacher</th>
  36.     <th colspan="2">$wims_name_nameteacher/$wims_name_Supervisor</th>
  37.     </tr>
  38.     $table_hdtr
  39.     <th scope="col">$wims_name_name</th>
  40.     <th scope="col" data-sort-method="none">$wims_name_action</th>
  41.     <th scope="col">$wims_name_name</th>
  42.     <th scope="col" data-sort-method="none">$wims_name_action</th>
  43.     </tr>
  44.     </thead>
  45.     <tbody>
  46.     !for i=1 to $sccnt
  47.       !set l=!line $i of $sclasses
  48.       !distribute items $l into code,expire,in,cl,la,ty,lv,pswd
  49.       !set supv=!item 9 of $l
  50.       !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def
  51.  
  52.       $table_tr
  53.       <td>
  54.       $in<br />$cl
  55.       </td>
  56.       !reset class_auth
  57.       !defread wimshome/log/classes/$code/.def
  58.       !read adm/class/initclass $code,auth
  59.       !if $class_auth isitemof $auth_method_list and $(class_$(class_auth)_auth)!=$empty
  60.         !read supervisor2.phtml
  61.       !else
  62.         <td>
  63.         !set wims_ref_class=wims_button
  64.         !href module=$module&type=authparticipant&class=$code $wims_name_Enter
  65.         </td>
  66.       !endif
  67.       <td>$supv</td>
  68.       <td>
  69.       !set wims_ref_class=wims_button
  70.       !href module=$module&type=authsupervisor&class=$code $wims_name_Enter
  71.       </td></tr>
  72.     !next i
  73.     </tbody>
  74.     $table_end
  75.     !read tablesort.phtml
  76.   !endif
  77.   !if $clcnt>0 and $s_prog!=1
  78.     !set table_id=TABLE_cls
  79.     !set table_class=sortable
  80.     $table_header
  81.     !if $superclass_orig=$empty
  82.       <caption>$name_independantclass</caption>
  83.       <thead>
  84.       $table_hdtr
  85.        <th scope="col">$wims_name_name</th>
  86.        <th scope="col">$wims_name_nameteacher / $wims_name_Supervisor</th>
  87.        <th scope="col">$wims_name_action</th>
  88.       </tr>
  89.     !else
  90.       !if $splevel>1
  91.         !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def
  92.       !else
  93.         !set inst=!defof class_institution in wimshome/log/classes/$superclass_orig/.def
  94.       !endif
  95.       !default Name_level=$(CL_Name[2])
  96.       <caption>$Name_level / $inst
  97.       !if $class_type>2
  98.         $
  99.         !set wims_ref_class=wims_button_help
  100.         !href cmd=help&special_parm=$module_language/structure $wims_name_help
  101.       !endif
  102.       !if $splevel>1
  103.         !href cmd=reply&type=$type&superclass2=$sparent&s_prog=0 $name_up
  104.       !endif
  105.       </caption>
  106.       <thead>
  107.       $table_hdtr
  108.         <th scope="col">$Name_level</th>
  109.         <th scope="col">$wims_name_nameteacher</th>
  110.       !if $superclass_orig!=$empty and $stype=4
  111.         <th scope="col">+</th>
  112.         !if $ty!=1 and $splevel =1
  113.           <th scope="col">+</th>
  114.         !endif
  115.       !endif
  116.       </tr>
  117.     !endif
  118.     </thead>
  119.     <tbody>
  120.     !for i=1 to $clcnt
  121.       !set l=!line $i of $classes
  122.       !distribute items $l into code,expire,in,cl,la,ty,lv,pswd
  123.       !set supv=!item 9 of $l
  124.       !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def
  125.  
  126.       $table_tr
  127.       !if $superclass_orig=$empty
  128.         <td>$in<br />$cl</td>
  129.       !else
  130.         <td>
  131.         !href module=$module&type=authsupervisor&class=$code $cl
  132.         </td>
  133.       !endif
  134.       <td>$supv</td>
  135.       !if $superclass_orig!=$empty and $stype=4
  136.         <td>
  137.         !if $ty!=1
  138.           !set wims_ref_class=wims_button
  139.           !href cmd=reply&type=$type&superclass2=$code&s_prog=0 $sousclasses
  140.         !else
  141.           -
  142.         !endif
  143.         </td>
  144.         !if $ty!=1 and $splevel =1
  145.           <td>
  146.           !set wims_ref_class=wims_button
  147.           !href cmd=reply&type=$type&superclass2=$code&s_prog=1 $name_program
  148.           </td>
  149.         !endif
  150.       !endif
  151.       !if $superclass_orig=$empty
  152.         <td>
  153.         !set wims_ref_class=wims_button
  154.         !href module=$module&type=authsupervisor&class=$code $wims_name_Enter
  155.         </td>
  156.       !endif
  157.       </tr>
  158.     !next i
  159.     </tbody>
  160.     $table_end
  161.     !read tablesort.phtml
  162.   !else
  163.     !!#####################program
  164.    !if $clcnt_pr>0
  165.     !if $splevel>1
  166.       !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def
  167.     !else
  168.       !set inst=!defof class_institution in wimshome/log/classes/$superclass_orig/.def
  169.     !endif
  170.     !set table_id=TABLE_program
  171.     !set table_class=sortable
  172.     $table_header
  173.     <caption>$Name_program ($inst)
  174.     !if $splevel>1
  175.       !href cmd=reply&type=$type&superclass2=$sparent&s_prog=0 $name_up
  176.     !endif
  177.     </caption>
  178.     <thead>
  179.     $table_hdtr
  180.       <th scope="col">$wims_name_level</th>
  181.       <th scope="col">$wims_name_nameteacher</th>
  182.       <th scope="col">+</th>
  183.     </tr>
  184.     </thead>
  185.     <tbody>
  186.     !for i=1 to $clcnt_pr
  187.       !set l=!line $i of $classes_pr
  188.       !distribute items $l into code,expire,in,cl,la,ty,lv,pswd
  189.       !set supv=!item 9 of $l
  190.       !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def
  191.       $table_tr
  192.       <td>
  193.       !href module=$module&type=authsupervisor&class=$code $cl
  194.       </td>
  195.       <td>$supv</td>
  196.       !if $superclass_orig!=$empty and $stype=4
  197.         <td>
  198.         !if $ty!=1
  199.           !set wims_ref_class=wims_button
  200.           !href cmd=reply&type=$type&superclass2=$code&s_prog=0 $sousclasses
  201.         !else
  202.           -
  203.         !endif
  204.         </td>
  205.       !endif
  206.       </td></tr>
  207.     !next i
  208.     </tbody>
  209.     $table_end
  210.     !read tablesort.phtml
  211.   !endif
  212. !endif
  213.  
  214. !else
  215.   !if $class_type=$empty and $superclass_orig=$empty and $keyword=$empty
  216.     ($name_language2)
  217.   !else
  218.     !if $clcnt=0 and $keyword=$empty
  219.       ($name_noavailable)
  220.     !endif
  221.   !endif
  222. !endif
  223.  
  224. </div>
  225.