Subversion Repositories wimsdev

Rev

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

  1. !nocache
  2. <A NAME="searchresult" id="searchresult"> </a>
  3.  
  4. !if $s_category=L
  5.  !changeto result.L
  6. !endif
  7.  
  8. !if $s_category=V
  9.  <p><small>$S_tip</small> <p>
  10.  !if $wims_user=$empty
  11.   !read ./wimshome/log/motd.phtml.$lang
  12.   <p>
  13.   !read ./front.phtml.$lang
  14.   <p>
  15.  !endif
  16.  !exit
  17. !endif
  18.  
  19. !if $error!=$empty
  20.  <p>
  21.  $(ER_$error)
  22. !endif
  23.  
  24. !set tt=<font color=brown><i>$(C_$s_category)</i></font>
  25. <p>
  26. !if $gottype=search
  27.  $RE_found.
  28. !else
  29.  !if $s_keywords!=$empty and $gotcnt1<1
  30.   $RE_nomatch.
  31.   !if $(rel_$s_category)!=$empty
  32.    $RE_try
  33.    !for i in $(rel_$s_category)
  34.     !href module=home&cmd=reply&search_category=$i&search_keywords=$s_keywords $(C_$i)
  35.     &nbsp;
  36.    !next i
  37.    !if $has_browse=yes
  38.     $N_or
  39.     !href module=adm/browse.$lang&$browse_parm $N_browsesite
  40. .
  41.    !endif
  42.   !endif
  43.   <p>
  44.  !endif
  45.  !if $s_category isin ADXOTR and $gotcnt1<1 and $gotcnt>0
  46.   !if $list_start>0
  47.    !href module=home&cmd=reply&list_start=$[$list_start-$list_batch] &lt;&lt;
  48.    &nbsp;
  49.    $RE_pop2.
  50.   !else
  51.    $RE_pop.
  52.   !endif
  53.   !if $list_start<$list_cc-$list_batch
  54.    &nbsp;
  55.    !href module=home&cmd=reply&list_start=$[$list_start+$list_batch] &gt;&gt;
  56.   !endif
  57.   !reset list_start
  58.  !endif
  59. !endif
  60.  
  61. !if $s_category isin PLS
  62.  !changeto result.$s_category
  63. !endif
  64.  
  65. !if $gottype=search or $gotcnt1=0
  66.  <ul>
  67.  !for i=1 to $gotcnt
  68.   !set m_=!line $i of $gotm
  69.   !set w_=!word $i of $gotw
  70.   !set l_=!line $i of $gotl
  71.   !set t_=!line $i of $gott
  72.   !set d_=!line $i of $gotd
  73.   !set a_=!line $i of $gota
  74.   <li>
  75.   !if $wims_ismanager=2
  76.    <small>$w_</small>
  77.   !endif
  78.   !if $l_!=$lang
  79.     <img src=gifs/$l_.gif alt=$l_.gif border=0>
  80.   !endif
  81.   !set L=
  82.   !if ../local/ isin ../$m_
  83.    !set L=<sup>local</sup>
  84.   !endif
  85.   !if ../com/ isin ../$m_
  86.    !set L=<sup>com</sup>
  87.   !endif
  88.   !if ../contrib/ isin ../$m_
  89.    !set L=<sup>contrib</sup>
  90.   !endif
  91.   !href module=$m_ $t_
  92. $L, $d_
  93.  !if $wims_show_author=yes
  94.   <small>($a_)</small>
  95.  !endif
  96.  !next i
  97.  </ul> <p>
  98. !endif
  99.  
  100. !if $s_category isin AT and $gotcnt1>0
  101.  <p><hr width=50%> <p>
  102.  !exchange gotcnt,gotcnt1
  103.  !exchange gottype,gottype1
  104.  !exchange gotm,gotm1
  105.  !set tt=<font color=brown><i>$C_P</i></font>
  106.  $RE_found. <p>
  107.  !read result.P
  108. !endif
  109.  
  110.