Subversion Repositories wimsdev

Rev

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

  1.  
  2. !read search.phtml
  3. !if $clcnt+$sccnt<1 and $keyword!=$empty
  4.  $name_nofound
  5.  <p>
  6. !endif
  7. !if $wims_user!=$empty
  8.  !read direct.phtml
  9.  !if $wims_user!=supervisor and $supervisable!=yes
  10.   !exit
  11.  !endif
  12.  <p>
  13. !else
  14.   !read lang/supervisor.phtml.$modu_lang
  15. !endif
  16.  
  17. !if $overflow=yes
  18.  !exit
  19. !endif
  20.  
  21. !if $clcnt+$sccnt>0
  22.  !if $wims_user=$empty
  23.    $name_supervisor_text
  24.  !endif
  25.  
  26.  !if $sccnt>0
  27.   <p>
  28.   $table_header
  29.   <caption>$name_portalandgroup</caption>
  30.   $table_hdtr<th>$wims_name_name</th><th colspan=2>$wims_name_action</th><th>$wims_name_nameteacher</th>
  31.   <th colspan=2>$wims_name_Supervisor</th></tr>
  32.   !for i=1 to $sccnt
  33.    !set l=!line $i of $sclasses
  34.    !distribute items $l into code,expire,in,cl,la,ty,lv,pswd
  35.    !set supv=!item 9 of $l
  36.    !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def
  37.    
  38.    $table_tr
  39.    <td align="center">
  40.    $in<br>$cl
  41.    </td>
  42.    <td align=center>
  43.    !href module=$module&type=authparticipant&class=$code $wims_name_Enter
  44.    </td> <td align=center>
  45.    !href module=adm/class/reguser&class=$code $name_register
  46.    </td>
  47.    <td align=center>$supv</td>
  48.    <td align=center>
  49.    !href module=$module&type=authsupervisor&class=$code $wims_name_Enter
  50.   </td>
  51.   !next i  
  52.   $table_end
  53.  !endif
  54.  !if $clcnt>0 and $s_prog!=1
  55.   <p>
  56.   $table_header
  57.   !if $superclass=$empty
  58.    <caption>$name_independantclass</caption>
  59.    $table_hdtr<th>$wims_name_name</th><th>$wims_name_nameteacher / $wims_name_Supervisor</th>
  60.    <th>$wims_name_action</th>
  61.   !else
  62.    !if $splevel>1
  63.     !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def
  64.    !else
  65.     !set inst=!defof class_institution in wimshome/log/classes/$superclass/.def
  66.    !endif
  67.    !default Name_level=$(CL_Name[2])
  68.     <caption>$Name_level / $inst
  69.     !if $class_type>2
  70.     <small>
  71.     !href cmd=help&special_parm=$module_language/structure [$wims_name_help]
  72.     </small>
  73.     !endif
  74.     !if $splevel>1
  75.      !href cmd=reply&type=$type&superclass2=$sparent&s_prog=0 $name_up
  76.     !endif
  77.     </caption>
  78.     $table_hdtr<th>$Name_level</th><th>$wims_name_nameteacher</th>
  79.     !if $superclass!=$empty and $stype=4
  80.      <th>+</th>
  81.      !if $ty!=1 and $splevel =1
  82.       <th>+</th>
  83.      !endif
  84.     !endif
  85.    !endif
  86.    !for i=1 to $clcnt
  87.      !set l=!line $i of $classes
  88.      !distribute items $l into code,expire,in,cl,la,ty,lv,pswd
  89.      !set supv=!item 9 of $l
  90.      !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def
  91.    
  92.      $table_tr
  93.      !if $superclass=$empty
  94.       <td align="center">$in<br>$cl</td>
  95.      !else
  96.       <td align="center">
  97.       !href module=$module&type=authsupervisor&class=$code $cl
  98.       </td>
  99.      !endif
  100.      <td align="center">$supv</td>
  101.      !if $superclass!=$empty and $stype=4
  102.       <td>
  103.       !if $ty!=1
  104.        !href cmd=reply&type=$type&superclass2=$code&s_prog=0 $sousclasses
  105.       !else
  106.       -
  107.       !endif
  108.       </td>
  109.       !if $ty!=1 and $splevel =1
  110.        <td>
  111.        !href cmd=reply&type=$type&superclass2=$code&s_prog=1 $name_program
  112.        </td>
  113.       !endif
  114.      !endif
  115.      !if $superclass=$empty
  116.       <td align=center>
  117.       !href module=$module&type=authsupervisor&class=$code $wims_name_Enter
  118.       </td>
  119.      !endif  
  120.     !next i
  121.    $table_end
  122.   !else
  123. !!#####################program
  124.   !if $clcnt_pr>0
  125.    !if $splevel>1
  126.     !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def
  127.    !else
  128.     !set inst=!defof class_institution in wimshome/log/classes/$superclass/.def
  129.    !endif
  130.    $table_header
  131.     <caption>$Name_program ($inst)
  132.     !if $splevel>1
  133.      !href cmd=reply&type=$type&superclass2=$sparent&s_prog=0 $name_up
  134.     !endif
  135.     </caption>
  136.     $table_hdtr<th>$wims_name_level</th><th>$wims_name_nameteacher</th><th>+</th>
  137.     !for i=1 to $clcnt_pr
  138.      !set l=!line $i of $classes_pr
  139.      !distribute items $l into code,expire,in,cl,la,ty,lv,pswd
  140.      !set supv=!item 9 of $l
  141.      !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def  
  142.      $table_tr
  143.      <td align="center">
  144.      !href module=$module&type=authsupervisor&class=$code $cl
  145.      </td>
  146.      <td align="center">$supv</td>
  147.      !if $superclass!=$empty and $stype=4
  148.       <td>
  149.       !if $ty!=1
  150.        !href cmd=reply&type=$type&superclass2=$code&s_prog=0 $sousclasses
  151.       !else
  152.        -
  153.       !endif
  154.      !endif
  155.     !next i
  156.     $table_end
  157.    !endif
  158.   !endif
  159. !else
  160.  !if $class_type=$empty and $superclass=$empty
  161.   ($name_language2)
  162.  !else
  163.    !if $clcnt=0
  164.     ($name_noavailable)
  165.    !endif
  166.  !endif
  167. !endif
  168. <p>
  169.  
  170.