Subversion Repositories wimsdev

Rev

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