Subversion Repositories wimsdev

Rev

Rev 3066 | Rev 4993 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1.  
  2. !!!####language independant
  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.  
  26. !endif
  27.  
  28. !if $sccnt>0
  29.  <div class="emptyline"></div>
  30.  $table_header
  31.  <caption>$name_portalandgroup</caption>
  32.  $table_hdtr$
  33.  <th>$wims_name_name</th><th colspan="2">$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 $superclass=$empty
  38.    !set show=$inst<br>$cl
  39.   !else
  40.    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> <td align="center">
  54.   !set wims_ref_class=wims_button
  55.   !href module=$module&type=authparticipant&class=$code $wims_name_Enter
  56.   </td> <td align="center">
  57.   !set wims_ref_class=wims_button
  58.   !href module=adm/class/reguser&class=$code&subclass=yes $name_register
  59.   </td> <td align="center">
  60.   $supv
  61.   </td> <td align="center">
  62.   !if $pswd=$empty
  63.    $name_open
  64.   !else
  65.    $name_protected
  66.   !endif
  67.  !next i
  68.  $table_end <p>
  69. !endif
  70.  
  71. !if $clcnt>0
  72.  <p>$table_header
  73.  !if $superclass=$empty
  74.   <caption>$name_independantclass</caption>
  75.   $table_hdtr
  76.   <th>$wims_name_name</th><th colspan="2">$wims_name_action</th>
  77.   <th>$wims_name_nameteacher</th><th>$wims_name_level</th><th>$wims_name_Status</th>
  78.  !else
  79.    !if $splevel>1
  80.     !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def
  81.    !else
  82.     !set inst=!defof class_institution in wimshome/log/classes/$superclass/.def
  83.    !endif
  84.    <caption>$Name_levels ($inst)
  85.    !if $splevel>1
  86.     !href cmd=reply&type=$type&superclass2=$sparent $name_up
  87.    !endif
  88.    </caption>
  89.    $table_hdtr
  90.    <th>$wims_name_name</th><th colspan="2">$wims_name_action</th>
  91.    <th>$wims_name_nameteacher</th><th>$wims_name_level</th><th>$wims_name_Status</th>
  92.    !if $superclass!=$empty and $stype=4
  93.     <th>+</th>
  94.    !endif
  95.  !endif
  96.  !for i=1 to $clcnt
  97.   !set l=!line $i of $classes
  98.   !distribute items $l into code,expire,inst,cl,la,ty,lv,pswd
  99.   !set supv=!item 9 of $l
  100.   !if $supv=$empty
  101.    !reset class_password
  102.    !defread wimshome/log/classes/$code/.def
  103.    !set lv=$class_level
  104.    !set supv=$class_supervisor
  105.    !set pswd=$class_password
  106.   !endif
  107.   !distribute char $lv into l_,y_
  108.  
  109.   !if $superclass=$empty
  110.    !set show=$inst <br>$cl
  111.   !else
  112.    !set show=$cl
  113.   !endif
  114.   $table_tr<td align="center">
  115.     $show
  116.   </td><td align="center">
  117.   !set wims_ref_class=wims_button
  118.   !href module=$module&type=authparticipant&class=$code $wims_name_Enter
  119.   </td> <td align="center">
  120.   !if $splevel=$empty or $splevel=2
  121.   !set wims_ref_class=wims_button
  122.    !href module=adm/class/reguser&class=$code $name_register
  123.   !else
  124.    <font color="grey">$name_register</font>
  125.   !endif
  126.   </td><td align="center">
  127.   $supv
  128.   </td><td align="center">$(wims_name_n_$l_)<br>$name_year $y_</td>
  129.   <td align="center">
  130.   !if $pswd=$empty
  131.    $name_open
  132.   !else
  133.    $name_protected
  134.   !endif
  135.   </td>
  136.    !if $superclass!=$empty and $stype=4
  137.     <td>
  138.     !if $ty!=1
  139.      !href cmd=reply&type=$type&superclass2=$code $sousclasses
  140.     !else
  141.     -
  142.     !endif
  143.    !endif
  144.  !next i
  145.  $table_end <p>
  146. !endif
  147.  
  148.  
  149.