Subversion Repositories wimsdev

Rev

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