Subversion Repositories wimsdev

Rev

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

  1. !nocache
  2. !if $error!=$empty and  $(ER_$error)!=
  3. <p class="wims_alertmsg">
  4.  $(ER_$error)
  5.  !read adm/search_engine/search_empty.phtml
  6. </p>
  7. !endif
  8. !set tt=<span class="wims_emph">$(CC_A)</span>
  9. !if $gottype=search and ($Gotcnt>1 or $gotcnt>1)
  10. <div class="RE_found">
  11.   $RE_found.
  12.   !if $warning=yes
  13.     $RE_warning_more
  14.   !endif
  15.  !read adm/search_engine/search_clear.phtml
  16. </div>
  17. !else
  18.  !if $s_keywords!=$empty and $Gotcnt<1
  19.  <div class="wims_alertmsg">
  20.   $RE_nomatch.
  21.   !!read adm/search_engine/search_clear.phtml
  22.   !if $(rel_$s_category)!=$empty
  23.   <div>
  24.    $RE_try
  25.    !for i in $(rel_$s_category)
  26.     !href module=home&cmd=reply&search_category=$i&search_keywords=$s_keywords $(CC_$i)
  27.     &nbsp;
  28.    !next i
  29.    !if $has_browse=yes
  30.     $wims_name_or
  31.     !href module=adm/browse&$browse_parm $N_browsesite
  32. .
  33.    !endif has_browse=yes
  34.    </div>
  35.   !endif $(rel_$s_category)
  36.  </div>
  37.  !endif $s_keywords!=$empty
  38.  !if $s_category isin ADXOTR and $gotcnt1<1 and $gotcnt>0 and $Gotcnt<1
  39.   !if $list_start>0
  40.    !set wims_ref_title = $RE_prev
  41.    !href module=home&cmd=reply&list_start=$[$list_start-$list_batch] &lt;&lt;
  42.    &nbsp;
  43.    $RE_pop2.
  44.   !else
  45.    $RE_pop.
  46.   !endif
  47.   !if $list_start<$list_cc-$list_batch
  48.    &nbsp;
  49.    !set wims_ref_title = $RE_next
  50.    !href module=home&cmd=reply&list_start=$[$list_start+$list_batch] &gt;&gt;
  51.   !endif
  52.   !reset list_start
  53.   !read adm/search_engine/search_clear.phtml
  54.  !endif
  55. !endif
  56. !if $s_category isin PLSC
  57. <div class="wims_emph">$(CC_$s_category)
  58. </div>
  59.  !changeto result.$s_category
  60. !endif
  61. !!arrive here for example if the address of the module has been given in the search_engine
  62.  
  63. !if $Gotcnt=1 and $gotcnt=1
  64.   <div class="RE_found">
  65.        !read result.A
  66.  !read adm/search_engine/search_clear.phtml
  67.  </div>
  68.  !exit
  69. !endif
  70.  
  71. !if $gottype=search or $gotcnt1=0
  72.  !reset tt
  73.  !if $test_exist!=$empty
  74.   <p>$RE_found2</p>
  75.  
  76.   <script type="text/javascript">
  77.     /*<![CDATA[*/
  78.     jQuery(function($$) {
  79.         $$( "#searchresult" ).tabs();
  80.       });
  81.     /*]]>*/
  82.   </script>
  83.  
  84.  !endif
  85.  <div id="searchresult" style="font-size:14px;">
  86.  !if $s_category=A
  87.    <ul>
  88.    !for cat in X,D,T,R,M,S,C
  89.     !if $(gotcnt$cat)>0
  90.       <li>
  91.        <a href="#content_$cat">
  92.          $(CC_$cat) ($(gotcnt$cat))</a>
  93.        </li>
  94.     !endif
  95.    !next
  96.    !if $gotcnt1 >0
  97.      <li >
  98.       <a href="#content_P">
  99.       $(CC_P) ($gotcnt1)</a>
  100.       </li>
  101.    !endif
  102.    </ul>
  103.    !for cat in X,D,T,R,M
  104.      !if $(gotcnt$cat) >0
  105.        <div id="content_$cat">
  106.        <p class="wims_emph">$(CC_$cat)</p>
  107.        !read result.A $cat
  108.       </div> <!-- end C_$cat -->
  109.      !endif
  110.    !next
  111.  
  112.  !else
  113. !! tt is used in lang/names.$lang
  114.   !if $s_category notin CS
  115.    !set tt=<p class="wims_emph">$(CC_$s_category)</p>
  116.   !endif
  117.    <p class="wims_emph">$(CC_$s_category)</p>
  118.        !read result.A $s_category
  119.  !endif
  120.  !if $Gotcnt=0
  121.   !read result.A
  122.  !endif
  123.  
  124.  !if $gotcntS > 0
  125.   <div id="content_S">
  126.   <p class="wims_emph">$CC_S</p>
  127.   !read result.S
  128.   </div> <!-- end C_S -->
  129.  !endif
  130.  !if $gotcntC > 0
  131.   <div id="content_C">
  132.   <p class="wims_emph">$CC_C</p>
  133.   !read result.C
  134.   </div> <!-- end C_C -->
  135.  !endif
  136.  
  137.  !if $s_category isin A,T and $gotcnt1>0
  138.   !exchange gotcnt,gotcnt1
  139.   !exchange gottype,gottype1
  140.   !exchange gotm,gotm1
  141.   <div id="content_P">
  142.   <p class="wims_emph">$(CC_P)</p>
  143.   !read result.P
  144.   </div><!-- end C_P -->
  145.  !endif
  146.  </div>
  147. !endif
  148.