Subversion Repositories wimsdev

Rev

Rev 5918 | Rev 6157 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

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