Subversion Repositories wimsdev

Rev

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

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