Subversion Repositories wimsdev

Rev

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