Subversion Repositories wimsdev

Rev

Rev 10605 | Rev 12638 | 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.   $table_header
  65.   !if $superclass_orig=$empty
  66.    <caption>$name_independantclass</caption>
  67.    $table_hdtr<th>$wims_name_name</th><th>$wims_name_nameteacher / $wims_name_Supervisor</th>
  68.    <th>$wims_name_action</th></tr>
  69.   !else
  70.    !if $splevel>1
  71.     !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def
  72.    !else
  73.     !set inst=!defof class_institution in wimshome/log/classes/$superclass_orig/.def
  74.    !endif
  75.    !default Name_level=$(CL_Name[2])
  76.     <caption>$Name_level / $inst
  77.     !if $class_type>2
  78.     $
  79.     !set wims_ref_class=wims_button_help
  80.     !href cmd=help&special_parm=$module_language/structure $wims_name_help
  81.     !endif
  82.     !if $splevel>1
  83.      !href cmd=reply&type=$type&superclass2=$sparent&s_prog=0 $name_up
  84.     !endif
  85.     </caption>
  86.     $table_hdtr<th>$Name_level</th><th>$wims_name_nameteacher</th>
  87.     !if $superclass_orig!=$empty and $stype=4
  88.      <th>+</th>
  89.      !if $ty!=1 and $splevel =1
  90.       <th>+</th>
  91.      !endif
  92.     !endif
  93.  </tr>
  94.    !endif
  95.    !for i=1 to $clcnt
  96.      !set l=!line $i of $classes
  97.      !distribute items $l into code,expire,in,cl,la,ty,lv,pswd
  98.      !set supv=!item 9 of $l
  99.      !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def
  100.  
  101.      $table_tr
  102.      !if $superclass_orig=$empty
  103.       <td>$in<br />$cl</td>
  104.      !else
  105.       <td>
  106.       !href module=$module&type=authsupervisor&class=$code $cl
  107.       </td>
  108.      !endif
  109.      <td>$supv</td>
  110.      !if $superclass_orig!=$empty and $stype=4
  111.       <td>
  112.       !if $ty!=1
  113.        !set wims_ref_class=wims_button
  114.        !href cmd=reply&type=$type&superclass2=$code&s_prog=0 $sousclasses
  115.       !else
  116.       -
  117.       !endif
  118.       </td>
  119.       !if $ty!=1 and $splevel =1
  120.        <td>
  121.        !set wims_ref_class=wims_button
  122.        !href cmd=reply&type=$type&superclass2=$code&s_prog=1 $name_program
  123.        </td>
  124.       !endif
  125.      !endif
  126.      !if $superclass_orig=$empty
  127.       <td>
  128.       !set wims_ref_class=wims_button
  129.       !href module=$module&type=authsupervisor&class=$code $wims_name_Enter
  130.       </td>
  131.      !endif
  132.      </tr>
  133.     !next i
  134.    $table_end
  135.   !else
  136. !!#####################program
  137.   !if $clcnt_pr>0
  138.    !if $splevel>1
  139.     !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def
  140.    !else
  141.     !set inst=!defof class_institution in wimshome/log/classes/$superclass_orig/.def
  142.    !endif
  143.    $table_header
  144.     <caption>$Name_program ($inst)
  145.     !if $splevel>1
  146.      !href cmd=reply&type=$type&superclass2=$sparent&s_prog=0 $name_up
  147.     !endif
  148.     </caption>
  149.     $table_hdtr<th>$wims_name_level</th><th>$wims_name_nameteacher</th><th>+</th>
  150.     !for i=1 to $clcnt_pr
  151.      !set l=!line $i of $classes_pr
  152.      !distribute items $l into code,expire,in,cl,la,ty,lv,pswd
  153.      !set supv=!item 9 of $l
  154.      !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def
  155.      $table_tr
  156.      <td>
  157.      !href module=$module&type=authsupervisor&class=$code $cl
  158.      </td>
  159.      <td>$supv</td>
  160.      !if $superclass_orig!=$empty and $stype=4
  161.       <td>
  162.       !if $ty!=1
  163.        !set wims_ref_class=wims_button
  164.        !href cmd=reply&type=$type&superclass2=$code&s_prog=0 $sousclasses
  165.       !else
  166.        -
  167.       !endif
  168.       </td>
  169.      !endif
  170.     </td></tr>
  171.     !next i
  172.     $table_end
  173.    !endif
  174.   !endif
  175. !else
  176.  !if $class_type=$empty and $superclass_orig=$empty and $keyword=$empty
  177.   ($name_language2)
  178.  !else
  179.    !if $clcnt=0 and $keyword=$empty
  180.     ($name_noavailable)
  181.    !endif
  182.  !endif
  183. !endif
  184.  
  185. </div>
  186.