Subversion Repositories wimsdev

Rev

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