Subversion Repositories wimsdev

Rev

Rev 6463 | Rev 6548 | 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. !if $error!=$empty and  $(ER_$error)!=
  8. <p class="wims_alertmsg">
  9.  $(ER_$error)
  10. </p>
  11. !endif
  12.  
  13. !set tt=<span class="wims_emph">$(C_$s_category)</span>
  14.  
  15. !if $gottype=search
  16. <p>
  17.  $RE_found.
  18. </p>
  19. !else
  20.  !if $s_keywords!=$empty and $Gotcnt<1
  21.  <p class="wims_alertmsg">
  22.   $RE_nomatch.
  23.   </p><p>
  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 and $Gotcnt<1
  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.    <span class="small">$w_</span>
  70.   !endif
  71.   !if $l_!=$search_lang
  72.     !set ltrans=!module translation_language $m_
  73.     !if  $search_lang notin $ltrans
  74.       <img src="gifs/$l_.gif" alt="$l_.gif"/>
  75.     !endif
  76.     !set tit_=!module title_$search_lang $m_
  77.     !set desc_=!module description_$search_lang $m_
  78.     !set t_=$tit_
  79.     !set d_=$desc_
  80.   !endif
  81.   !if $t_=
  82.    !set t_=!module title $m_
  83.   !endif
  84.  !if $d_=
  85.   !set d_=!module description $m_
  86.  !endif
  87.   !set L=
  88.   !if ../local/ isin ../$m_
  89.    !set L=<sup>local</sup>
  90.   !endif
  91.   !if ../com/ isin ../$m_
  92.    !set L=<sup>com</sup>
  93.   !endif
  94.   !if ../contrib/ isin ../$m_
  95.    !set L=<sup>contrib</sup>
  96.   !endif
  97.   !href module=$m_ $t_
  98. $L, $d_
  99.  !if $wims_show_author=yes
  100.   <span class="small">(
  101.   !replace internal , by $ $ in $a_
  102. )</span>
  103.  !endif
  104.  </li>
  105.  !reset d_ t_
  106.  !next i
  107.  </ul>
  108. !endif
  109.  
  110. !if $gotcntS > 0
  111.   !read result.S
  112. !endif
  113.  
  114. !if $gotcntC > 0
  115.   !read result.C
  116. !endif
  117.  
  118. !if $s_category isin AT and $gotcnt1>0
  119. <hr style="width:50%"/>
  120.  !exchange gotcnt,gotcnt1
  121.  !exchange gottype,gottype1
  122.  !exchange gotm,gotm1
  123.  !set tt=<span class="wims_emph">$C_P</span>
  124.  <p>$RE_found. </p><div>
  125.  !read result.P
  126.  </div>
  127. !endif
  128.