Subversion Repositories wimsdev

Rev

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