Subversion Repositories wimsdev

Rev

Rev 490 | Rev 1104 | 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  class="wims_home_result_list">
  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  class="wims_home_result_list">
  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.     !set tit_=!module title_$lang $m_
  81.     !set desc_=!module description_$lang $m_
  82.     !set t_=$tit_
  83.     !set d_=$desc_
  84.   !endif
  85.   !if $t_=
  86.    !set t_=!module title $m_
  87.   !endif
  88.  !if $d_=
  89.   !set d_=!module description $m_
  90.  !endif
  91.   !set L=
  92.   !if ../local/ isin ../$m_
  93.    !set L=<sup>local</sup>
  94.   !endif
  95.   !if ../com/ isin ../$m_
  96.    !set L=<sup>com</sup>
  97.   !endif
  98.   !if ../contrib/ isin ../$m_
  99.    !set L=<sup>contrib</sup>
  100.   !endif
  101.   !href module=$m_ $t_
  102. $L, $d_
  103.  !if $wims_show_author=yes
  104.   <small>($a_)</small>
  105.  !endif
  106.  </li>
  107.  !reset d_ t_
  108.  !next i
  109.  </ul> <p>
  110. !endif
  111.  
  112. !if $s_category isin AT and $gotcnt1>0
  113.  <p><hr width=50%> <p>
  114.  !exchange gotcnt,gotcnt1
  115.  !exchange gottype,gottype1
  116.  !exchange gotm,gotm1
  117.  !set tt=<font color=brown><i>$C_P</i></font>
  118.  $RE_found. <p>
  119.  !read result.P
  120. !endif
  121.  
  122.