Subversion Repositories wimsdev

Rev

Rev 5601 | Rev 5800 | 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>
  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.  !next i
  75.  $table_end <p>
  76. !endif
  77.  
  78. !if $clcnt>0 and $super_mixed_auth!=2
  79.  <p>$table_header
  80.  !if $superclass=$empty
  81.   <caption>$name_independantclass</caption>
  82.   $table_hdtr
  83.   <th>$wims_name_name</th><th>$wims_name_action</th>
  84.   <th>$wims_name_nameteacher</th><th>$wims_name_level</th><th>$wims_name_Status</th>
  85.  !else
  86.    !if $splevel>1
  87.     !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def
  88.    !else
  89.     !set inst=!defof class_institution in wimshome/log/classes/$superclass/.def
  90.    !endif
  91.    <caption>$Name_levels ($inst)
  92.    !if $splevel>1
  93.     !href cmd=reply&type=$type&superclass2=$sparent $name_up
  94.    !endif
  95.    </caption>
  96.    $table_hdtr
  97.    <th>$wims_name_name</th><th>$wims_name_action</th>
  98.    <th>$wims_name_nameteacher</th><th>$wims_name_level</th><th>$wims_name_Status</th>
  99.    !if $superclass!=$empty and $stype=4
  100.     <th>+</th>
  101.    !endif
  102.  !endif
  103.  !for i=1 to $clcnt
  104.   !set l=!line $i of $classes
  105.   !distribute items $l into code,expire,inst,cl,la,ty,lv,pswd
  106.   !set supv=!item 9 of $l
  107.   !if $supv=$empty
  108.    !reset class_password
  109.    !defread wimshome/log/classes/$code/.def
  110.    !set lv=$class_level
  111.    !set supv=$class_supervisor
  112.    !set pswd=$class_password
  113.   !endif
  114.   !distribute char $lv into l_,y_
  115.  
  116.   !if $superclass=$empty
  117.    !set show=$inst <br>$cl
  118.   !else
  119.    !set show=$cl
  120.   !endif
  121. !!! put it var.proc ??
  122.   !set directlist_=!items2words $directlist
  123.   !read adm/class/initclass $code,auth
  124.   !!defread wimshome/log/classes/$code/.def
  125.   $table_tr<td align="center">
  126.     $show
  127.   </td>
  128.   !if $auth_method isitemof $auth_method_list and $host_auth!=$empty
  129.      !read participant2.phtml
  130.   !else
  131.   <td align="center">
  132.   !set wims_ref_class=wims_button
  133.     !if $code notwordof $directlist_
  134.       !href module=$module&type=authparticipant&class=$code&subclass=yes $wims_name_Enter
  135.     !else
  136.       !if $splevel=$empty or $splevel=2
  137.        !set wims_ref_class=wims_button
  138.        !href module=adm/class/reguser&class=$code $name_register
  139.       !else
  140.         <font color="grey">$name_register</font>
  141.       !endif
  142.     !endif
  143.     </td>
  144.   !endif
  145.   <td align="center">
  146.   $supv
  147.   </td><td align="center">$(wims_name_n_$l_)<br>$name_year $y_</td>
  148.   <td align="center">
  149.   !if $pswd=$empty
  150.    $name_open
  151.   !else
  152.    $name_protected
  153.   !endif
  154.   </td>
  155.    !if $superclass!=$empty and $stype=4
  156.     <td>
  157.     !if $ty!=1 and $splevel!=3
  158.     !set wims_ref_class=wims_button
  159.      !href cmd=reply&type=$type&superclass2=$code $sousclasses
  160.     !else
  161.     -
  162.     !endif
  163.     </td>
  164.    !endif
  165.    </tr>
  166.  !next i
  167.  $table_end <p>
  168. !endif
  169.  
  170. </div>
  171.