Subversion Repositories wimsdev

Rev

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