Subversion Repositories wimsdev

Rev

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