Subversion Repositories wimsdev

Rev

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

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