Subversion Repositories wimsdev

Rev

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