Subversion Repositories wimsdev

Rev

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