Subversion Repositories wimsdev

Rev

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