Subversion Repositories wimsdev

Rev

Rev 6118 | Rev 10605 | 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.   $table_header
  29.  
  30.   <caption>$name_portalandgroup</caption>
  31.   $table_hdtr<th rowspan="2">$wims_name_name</th><th>$wims_name_teacher</th><th colspan="2">$wims_name_nameteacher/$wims_name_Supervisor</th></tr>
  32.   $table_hdtr<th>$wims_name_action</th><th>$wims_name_name</th><th>$wims_name_action</th></tr>
  33. !!  <th colspan="2">$wims_name_Supervisor</th></tr>
  34.   !for i=1 to $sccnt
  35.    !set l=!line $i of $sclasses
  36.    !distribute items $l into code,expire,in,cl,la,ty,lv,pswd
  37.    !set supv=!item 9 of $l
  38.    !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def
  39.    
  40.    $table_tr
  41.    <td>
  42.     $in<br />$cl
  43.    </td>
  44.    !reset class_auth
  45.    !defread wimshome/log/classes/$code/.def
  46.    !read adm/class/initclass $code,auth
  47.    !if $class_auth isitemof $auth_method_list and $(class_$(class_auth)_auth)!=$empty
  48.      !read supervisor2.phtml
  49.    !else
  50.    <td>
  51.     !set wims_ref_class=wims_button
  52.     !href module=$module&type=authparticipant&class=$code $wims_name_Enter
  53.    </td>
  54.    !endif
  55.    <td>$supv</td>
  56.    <td>
  57.     !set wims_ref_class=wims_button
  58.     !href module=$module&type=authsupervisor&class=$code $wims_name_Enter
  59.    </td></tr>
  60.   !next i  
  61.   $table_end
  62.  !endif
  63.  !if $clcnt>0 and $s_prog!=1
  64.  
  65.   $table_header
  66.   !if $superclass=$empty
  67.    <caption>$name_independantclass</caption>
  68.    $table_hdtr<th>$wims_name_name</th><th>$wims_name_nameteacher / $wims_name_Supervisor</th>
  69.    <th>$wims_name_action</th></tr>
  70.   !else
  71.    !if $splevel>1
  72.     !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def
  73.    !else
  74.     !set inst=!defof class_institution in wimshome/log/classes/$superclass/.def
  75.    !endif
  76.    !default Name_level=$(CL_Name[2])
  77.     <caption>$Name_level / $inst
  78.     !if $class_type>2
  79.     &nbsp;
  80.     !set wims_ref_class=wims_button_help
  81.     !href cmd=help&special_parm=$module_language/structure $wims_name_help
  82.     !endif
  83.     !if $splevel>1
  84.      !href cmd=reply&type=$type&superclass2=$sparent&s_prog=0 $name_up
  85.     !endif
  86.     </caption>
  87.     $table_hdtr<th>$Name_level</th><th>$wims_name_nameteacher</th>
  88.     !if $superclass!=$empty and $stype=4
  89.      <th>+</th>
  90.      !if $ty!=1 and $splevel =1
  91.       <th>+</th>
  92.      !endif
  93.     !endif
  94.  </tr>
  95.    !endif
  96.    !for i=1 to $clcnt
  97.      !set l=!line $i of $classes
  98.      !distribute items $l into code,expire,in,cl,la,ty,lv,pswd
  99.      !set supv=!item 9 of $l
  100.      !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def
  101.    
  102.      $table_tr
  103.      !if $superclass=$empty
  104.       <td>$in<br />$cl</td>
  105.      !else
  106.       <td>
  107.       !href module=$module&type=authsupervisor&class=$code $cl
  108.       </td>
  109.      !endif
  110.      <td>$supv</td>
  111.      !if $superclass!=$empty and $stype=4
  112.       <td>
  113.       !if $ty!=1
  114.        !set wims_ref_class=wims_button
  115.        !href cmd=reply&type=$type&superclass2=$code&s_prog=0 $sousclasses
  116.       !else
  117.       -
  118.       !endif
  119.       </td>
  120.       !if $ty!=1 and $splevel =1
  121.        <td>
  122.        !set wims_ref_class=wims_button
  123.        !href cmd=reply&type=$type&superclass2=$code&s_prog=1 $name_program
  124.        </td>
  125.       !endif
  126.      !endif
  127.      !if $superclass=$empty
  128.       <td>
  129.       !set wims_ref_class=wims_button
  130.       !href module=$module&type=authsupervisor&class=$code $wims_name_Enter
  131.       </td>
  132.      !endif
  133.      </tr>
  134.     !next i
  135.    $table_end
  136.   !else
  137. !!#####################program
  138.   !if $clcnt_pr>0
  139.    !if $splevel>1
  140.     !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def
  141.    !else
  142.     !set inst=!defof class_institution in wimshome/log/classes/$superclass/.def
  143.    !endif
  144.    $table_header
  145.     <caption>$Name_program ($inst)
  146.     !if $splevel>1
  147.      !href cmd=reply&type=$type&superclass2=$sparent&s_prog=0 $name_up
  148.     !endif
  149.     </caption>
  150.     $table_hdtr<th>$wims_name_level</th><th>$wims_name_nameteacher</th><th>+</th>
  151.     !for i=1 to $clcnt_pr
  152.      !set l=!line $i of $classes_pr
  153.      !distribute items $l into code,expire,in,cl,la,ty,lv,pswd
  154.      !set supv=!item 9 of $l
  155.      !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def  
  156.      $table_tr
  157.      <td>
  158.      !href module=$module&type=authsupervisor&class=$code $cl
  159.      </td>
  160.      <td>$supv</td>
  161.      !if $superclass!=$empty and $stype=4
  162.       <td>
  163.       !if $ty!=1
  164.        !set wims_ref_class=wims_button
  165.        !href cmd=reply&type=$type&superclass2=$code&s_prog=0 $sousclasses
  166.       !else
  167.        -
  168.       !endif
  169.       </td>
  170.      !endif
  171.     </td></tr>
  172.     !next i
  173.     $table_end
  174.    !endif
  175.   !endif
  176. !else
  177.  !if $class_type=$empty and $superclass=$empty and $keyword=$empty
  178.   ($name_language2)
  179.  !else
  180.    !if $clcnt=0 and $keyword=$empty
  181.     ($name_noavailable)
  182.    !endif
  183.  !endif
  184. !endif
  185.  
  186. </div>
  187.