Subversion Repositories wimsdev

Rev

Rev 12998 | 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.     <p class="wims_msg info">$name_nofound</p>
  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.         <span class="wims_label open">$name_open</span>
  77.       !else
  78.         <span class="wims_label wims_warning">$name_protected</span>
  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.     <thead>
  112.     $table_hdtr
  113.      <th scope="col">$wims_name_name</th>
  114.      <th scope="col" data-sort-method="none">$wims_name_action</th>
  115.      <th scope="col">$wims_name_nameteacher</th>
  116.      <th scope="col">$wims_name_level</th>
  117.      <th scope="col">$wims_name_Status</th>
  118.     !if $superclass_orig!=$empty and $stype=4
  119.       <th scope="col">+</th>
  120.     !endif
  121.   !endif
  122.   </tr>
  123.   </thead>
  124.   <tbody>
  125.   !!! put it var.proc ??
  126.   !set directlist_=!replace internal , by $ ; $ $ in $directlist
  127.   !for i=1 to $clcnt
  128.     !set l=!line $i of $classes
  129.     !distribute items $l into code,expire,inst,cl,la,ty,lv,pswd
  130.     !set supv=!item 9 of $l
  131.     !if $supv=$empty
  132.       !reset class_password
  133.       !defread wimshome/log/classes/$code/.def
  134.       !set lv=$class_level
  135.       !set supv=$class_supervisor
  136.       !set pswd=$class_password
  137.     !endif
  138.     !distribute char $lv into l_,y_
  139.     !if $superclass_orig=$empty
  140.       !set show=$inst <br />$cl
  141.     !else
  142.       !set show=$cl
  143.     !endif
  144.     !read adm/class/initclass $code,auth
  145.     !defread wimshome/log/classes/$code/.def
  146.     $table_tr<td>
  147.       $show
  148.     </td>
  149.     !if $auth_method isitemof $auth_method_list and $host_auth!=$empty
  150.       !read participant2.phtml
  151.     !else
  152.       <td>
  153.       !! obligatory course
  154.       !set tmp=!defof class_ocourses in wimshome/log/classes/$class_parent/.def
  155.       !if $code notwordof $directlist_ \
  156.           and $code notitemof $user_participate,$user_supervise\
  157.           and ($class_typename!=level or $wims_user=supervisor)
  158.         !set wims_ref_class=wims_button
  159.         !! obligatory course or optionel course but not registered in the parent
  160.         !if $class_typename=course and (($tmp!=$empty and $tmp isin $code) \
  161.           or $class_parent notitemof $user_participate)
  162.           <span style="color:grey">$name_register</span>
  163.         !else
  164.           !if $wims_user=$empty
  165.             !href module=$module&type=authparticipant&class=$code&subclass=yes $wims_name_Enter
  166.           !else
  167.             !href module=adm/class/reguser&class=$code&subclass=yes&auth_user=$wims_user $name_register
  168.           !endif
  169.         !endif
  170.       !else
  171.         !if $splevel=$empty or $splevel=2 and $code notitemof $tmp
  172.           !set wims_ref_class=wims_button
  173.           !href module=$module&type=authparticipant&class=$code&subclass=yes&auth_user=$wims_user $wims_name_Enter
  174.         !else
  175.           <span style="color:grey">$name_register</span>
  176.         !endif
  177.       !endif
  178.       </td>
  179.     !endif
  180.     <td>
  181.     $supv
  182.     </td><td>$(wims_name_n_$l_)<br />$name_year $y_</td>
  183.     <td>
  184.       !if $pswd=$empty
  185.         <span class="wims_label open">$name_open</span>
  186.       !else
  187.         <span class="wims_label wims_warning">$name_protected</span>
  188.       !endif
  189.     </td>
  190.     !if $superclass_orig!=$empty and $stype=4
  191.       <td>
  192.       !if $ty!=1 and $splevel!=3
  193.       !set wims_ref_class=wims_button
  194.         !href cmd=reply&type=$type&superclass2=$code $sousclasses
  195.       !else
  196.         -
  197.       !endif
  198.       </td>
  199.     !endif
  200.     </tr>
  201.     :endloop
  202.   !next i
  203.   </tbody>
  204.   $table_end
  205.   !read tablesort.phtml
  206. !endif
  207. :end
  208. </div>
  209.