Subversion Repositories wimsdev

Rev

Rev 6615 | Rev 6740 | 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.  !read adm/search_engine/search_empty.phtml
  20. </p>
  21. !endif
  22. !set tt=<span class="wims_emph">$(C_A)</span>
  23. !if $gottype=search
  24. <div class="RE_found">
  25.  $RE_found.
  26.  !read adm/search_engine/search_clear.phtml
  27. </div>
  28. !else
  29.  !if $s_keywords!=$empty and $Gotcnt<1
  30.  <div class="wims_alertmsg">
  31.   $RE_nomatch.
  32.   !read adm/search_engine/search_clear.phtml
  33.  </div>
  34.   !if $(rel_$s_category)!=$empty
  35.   <div>
  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.    </div>
  47.   !endif
  48.  !endif
  49.  !if $s_category isin ADXOTR and $gotcnt1<1 and $gotcnt>0 and $Gotcnt<1
  50.   !if $list_start>0
  51.    !set wims_ref_title = $RE_prev
  52.    !href module=home&cmd=reply&list_start=$[$list_start-$list_batch] &lt;&lt;
  53.    &nbsp;
  54.    $RE_pop2.
  55.   !else
  56.    $RE_pop.
  57.   !endif
  58.   !if $list_start<$list_cc-$list_batch
  59.    &nbsp;
  60.    !set wims_ref_title = $RE_next
  61.    !href module=home&cmd=reply&list_start=$[$list_start+$list_batch] &gt;&gt;
  62.   !endif
  63.   !reset list_start
  64.   !read adm/search_engine/search_clear.phtml
  65.  !endif
  66. !endif
  67. !if $s_category isin PLSC
  68. <div class="wims_emph">$(C_$s_category)
  69. </div>
  70.  !changeto result.$s_category
  71. !endif
  72.  
  73. !if $gottype=search or $gotcnt1=0
  74.  !reset tt
  75.  !if $s_category=A
  76.    !set tt=<p class="wims_emph">$(C_X), $(C_D), $(C_T)</p>
  77.  !else
  78.   !if $s_category notin CS
  79.    !set tt=<p class="wims_emph">$(C_$s_category)</p>
  80.   !endif
  81.  !endif
  82. $tt
  83.  
  84.  <ul class="wims_home_result_list">
  85.  !for i=1 to $gotcnt
  86.   !set m_=!line $i of $gotm
  87.   !set w_=!word $i of $gotw
  88.   !set l_=!line $i of $gotl
  89.   !set t_=!line $i of $gott
  90.   !set d_=!line $i of $gotd
  91.   !set a_=!line $i of $gota
  92.   <li>
  93.   !if $wims_ismanager=2
  94.    <span class="small">$w_</span>
  95.   !endif
  96.   !if $l_!=$search_lang
  97.     !set ltrans=!module translation_language $m_
  98.     !if  $search_lang notin $ltrans
  99.       <img src="gifs/$l_.gif" alt="$l_.gif"/>
  100.     !endif
  101.     !set tit_=!module title_$search_lang $m_
  102.     !set desc_=!module description_$search_lang $m_
  103.     !set t_=$tit_
  104.     !set d_=$desc_
  105.   !endif
  106.   !if $t_=
  107.    !set t_=!module title $m_
  108.   !endif
  109.  !if $d_=
  110.   !set d_=!module description $m_
  111.  !endif
  112.   !set L=
  113.   !if ../local/ isin ../$m_
  114.    !set L=<sup>local</sup>
  115.   !endif
  116.   !if ../com/ isin ../$m_
  117.    !set L=<sup>com</sup>
  118.   !endif
  119.   !if ../contrib/ isin ../$m_
  120.    !set L=<sup>contrib</sup>
  121.   !endif
  122.   !href module=$m_ $t_
  123. $L, $d_
  124.  !if $wims_show_author=yes
  125.   <span class="small">(
  126.   !replace internal , by $ $ in $a_
  127. )</span>
  128.  !endif
  129.  </li>
  130.  !reset d_ t_
  131.  !next i
  132.  </ul>
  133. !endif
  134.  
  135. !if $gotcntS > 0
  136. <p class="wims_emph">$C_S</p>
  137.   !read result.S
  138. !endif
  139. !if $gotcntC > 0
  140. <p class="wims_emph">$C_C</p>
  141.   !read result.C
  142. !endif
  143.  
  144. !if $s_category isin AT and $gotcnt1>0
  145. <hr style="width:50%"/>
  146.  !exchange gotcnt,gotcnt1
  147.  !exchange gottype,gottype1
  148.  !exchange gotm,gotm1
  149.  <p class="wims_emph">$C_P</p>
  150.  <div>
  151.  !read result.P
  152.  </div>
  153. !endif
  154.