Subversion Repositories wimsdev

Rev

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