Subversion Repositories wimsdev

Rev

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