Subversion Repositories wimsdev

Rev

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