Subversion Repositories wimsdev

Rev

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