Subversion Repositories wimsdev

Rev

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

  1.  
  2. !read search.phtml
  3. !if $overflow=yes
  4.  !exit
  5. !endif
  6.  
  7. !if $clcnt+$sccnt+$directcnt<1
  8.  !if $keyword=$empty
  9.   $name_language
  10.   !href module=home&list=0 $wims_name_search
  11.  !else
  12.   $name_nofound
  13.  !endif
  14.  !exit
  15. !endif
  16.  
  17. !if $wims_user!=$empty
  18.  !read direct.phtml
  19.  !if $wims_user!=supervisor and $superclass=$empty
  20.   !exit
  21.  !endif
  22. !else
  23.   $name_text1
  24. !endif
  25.  
  26. !set super_mixed_auth=!defof class_mixed_external_auth in wimshome/log/classes/$wims_superclass/.def
  27. !if $sccnt>0 and $super_mixed_auth!=2
  28.  <div class="emptyline"></div>
  29.  $table_header
  30.  <caption>$name_portalandgroup</caption>
  31.  $table_hdtr$
  32.  <th>$wims_name_name</th><th colspan="2">$wims_name_action</th><th>$wims_name_Supervisor</th><th>$wims_name_Status</th>
  33.  !for i=1 to $sccnt
  34.   !set l=!line $i of $sclasses
  35.   !distribute items $l into code,expire,inst,cl,la,ty,lv,pswd
  36.   !!!if $sclass=$empty
  37.    !set show=$inst<br>$cl
  38.   !!!else
  39.   !! !set show=$inst
  40.   !!!endif
  41.   !set supv=!item 9 of $l
  42.   !if $supv=$empty
  43.    !reset class_password
  44.    !defread wimshome/log/classes/$code/.def
  45.    !set supv=$class_supervisor
  46.    !set pswd=$class_password
  47.   !endif
  48.  
  49.   $table_tr<td align="center">
  50.   !!!href module=$module&type=authparticipant&class=$code
  51.   $show
  52.   </td>
  53.   !! to decomment
  54.    !read adm/class/initclass $code
  55.    !defread wimshome/log/classes/$code/.def
  56.    !if $class_auth isitemof $auth_method_list and $(class_$(class_auth)_auth)!=$empty
  57.      !set tmp_parm=&subclass=yes
  58.      !read participant2.phtml
  59.      !reset tmp_parm
  60.    !else
  61.    <td align="center">
  62.    !set wims_ref_class=wims_button
  63.    !href module=$module&type=authparticipant&class=$code $wims_name_Enter
  64.    </td> <td align="center">
  65.    !set wims_ref_class=wims_button
  66.    !href module=adm/class/reguser&class=$code&subclass=yes $name_register
  67.    </td>
  68.    !endif
  69.    
  70.   <td align="center">
  71.   $supv
  72.   </td> <td align="center">
  73.   !if $pswd=$empty
  74.    $name_open
  75.   !else
  76.    $name_protected
  77.   !endif
  78.  !next i
  79.  $table_end <p>
  80. !endif
  81.  
  82. !if $clcnt>0 and $super_mixed_auth!=2
  83.  <p>$table_header
  84.  !if $superclass=$empty
  85.   <caption>$name_independantclass</caption>
  86.   $table_hdtr
  87.   <th>$wims_name_name</th><th colspan="2">$wims_name_action</th>
  88.   <th>$wims_name_nameteacher</th><th>$wims_name_level</th><th>$wims_name_Status</th>
  89.  !else
  90.    !if $splevel>1
  91.     !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def
  92.    !else
  93.     !set inst=!defof class_institution in wimshome/log/classes/$superclass/.def
  94.    !endif
  95.    <caption>$Name_levels ($inst)
  96.    !if $splevel>1
  97.     !href cmd=reply&type=$type&superclass2=$sparent $name_up
  98.    !endif
  99.    </caption>
  100.    $table_hdtr
  101.    <th>$wims_name_name</th><th colspan="2">$wims_name_action</th>
  102.    <th>$wims_name_nameteacher</th><th>$wims_name_level</th><th>$wims_name_Status</th>
  103.    !if $superclass!=$empty and $stype=4
  104.     <th>+</th>
  105.    !endif
  106.  !endif
  107.  !for i=1 to $clcnt
  108.   !set l=!line $i of $classes
  109.   !distribute items $l into code,expire,inst,cl,la,ty,lv,pswd
  110.   !set supv=!item 9 of $l
  111.   !if $supv=$empty
  112.    !reset class_password
  113.    !defread wimshome/log/classes/$code/.def
  114.    !set lv=$class_level
  115.    !set supv=$class_supervisor
  116.    !set pswd=$class_password
  117.   !endif
  118.   !distribute char $lv into l_,y_
  119.  
  120.   !if $superclass=$empty
  121.    !set show=$inst <br>$cl
  122.   !else
  123.    !set show=$cl
  124.   !endif
  125.   $table_tr<td align="center">
  126.     $show
  127.   </td>
  128. !!! put it var.proc ??
  129.   !reset class_auth
  130.   !read adm/class/initclass $code
  131.   !defread wimshome/log/classes/$code/.def
  132.   !if $class_auth isitemof $auth_method_list and $(class_$(class_auth)_auth)!=$empty
  133.      !read participant2.phtml
  134.    !else
  135.   <td align="center">
  136.   !set wims_ref_class=wims_button
  137.   !href module=$module&type=authparticipant&class=$code $wims_name_Enter
  138.   </td> <td align="center">
  139.   !if $splevel=$empty or $splevel=2
  140.   !set wims_ref_class=wims_button
  141.    !href module=adm/class/reguser&class=$code $name_register
  142.   !else
  143.    <font color="grey">$name_register</font>
  144.   !endif
  145.   </td>
  146.   !endif
  147.   <td align="center">
  148.   $supv
  149.   </td><td align="center">$(wims_name_n_$l_)<br>$name_year $y_</td>
  150.   <td align="center">
  151.   !if $pswd=$empty
  152.    $name_open
  153.   !else
  154.    $name_protected
  155.   !endif
  156.   </td>
  157.    !if $superclass!=$empty and $stype=4
  158.     <td>
  159.     !if $ty!=1
  160.      !href cmd=reply&type=$type&superclass2=$code $sousclasses
  161.     !else
  162.     -
  163.     !endif
  164.    !endif
  165.  !next i
  166.  $table_end <p>
  167. !endif
  168.  
  169.  
  170.