Subversion Repositories wimsdev

Rev

Rev 7995 | Rev 9008 | 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.   !if $s_keywords!=$empty
  80.    <p class="wimscenter small">$wims_ref_name?$search_adresse</p>
  81.   !endif
  82.  !endif
  83.  
  84. !endif
  85.  
  86. !if $s_category isin PLSC
  87.  <div class="wims_emph">$(CC_$s_category)</div>
  88.  !changeto result.$s_category
  89. !endif
  90.  
  91. !!arrive here for example if the address of the module has been given in the search_engine
  92.  
  93. !if $Gotcnt=1 and $gotcnt=1
  94.   <div class="RE_found">
  95.     !read result.A
  96.  </div>
  97.  !exit
  98. !endif
  99.  
  100. !if $gottype=search or $gotcnt1=0
  101.  !reset tt
  102.  !if $test_exist!=$empty
  103.   <p>$RE_found2</p>
  104.  
  105.   <script type="text/javascript">
  106.     /*<![CDATA[*/
  107.     jQuery(function($$) {
  108.         $$( "#searchresult" ).tabs();
  109.       });
  110.     /*]]>*/
  111.   </script>
  112.  !endif
  113.  
  114.  <div id="searchresult">
  115.  !if $s_category=A
  116.    <ul>
  117.    !for cat in X,D,T,R,M,S,C
  118.     !if $(gotcnt$cat)>0
  119.       <li>
  120.        <a href="#content_$cat">
  121.          $(CC_$cat) ($(gotcnt$cat))</a>
  122.        </li>
  123.     !endif
  124.    !next
  125.    !if $gotcnt1 >0
  126.      <li >
  127.       <a href="#content_P">
  128.       $(CC_P) ($gotcnt1)</a>
  129.       </li>
  130.    !endif
  131.    </ul>
  132.    !for cat in X,D,T,R,M
  133.      !if $(gotcnt$cat) >0
  134.        <div id="content_$cat">
  135.          <p class="wims_emph">$(CC_$cat)</p>
  136.          !read result.A $cat
  137.        </div> <!-- end C_$cat -->
  138.      !endif
  139.    !next
  140.  
  141.  !else
  142. !! tt is used in lang/names.$lang
  143.   !if $s_category notin CS
  144.    !set tt=<p class="wims_emph">$(CC_$s_category)</p>
  145.   !endif
  146.    <p class="wims_emph">$(CC_$s_category)</p>
  147.        !read result.A $s_category
  148.  !endif
  149.  !if $Gotcnt=0
  150.   !read result.A
  151.  !endif
  152.  
  153.  !if $gotcntS > 0
  154.   <div id="content_S">
  155.     <p class="wims_emph">$CC_S</p>
  156.     !read result.S
  157.   </div> <!-- end C_S -->
  158.  !endif
  159.  !if $gotcntC > 0
  160.   <div id="content_C">
  161.     <p class="wims_emph">$CC_C</p>
  162.     !read result.C
  163.   </div> <!-- end C_C -->
  164.  !endif
  165.  
  166.  !if $s_category isin A,T and $gotcnt1>0
  167.   !exchange gotcnt,gotcnt1
  168.   !exchange gottype,gottype1
  169.   !exchange gotm,gotm1
  170.   <div id="content_P">
  171.     <p class="wims_emph">$(CC_P)</p>
  172.     !read result.P
  173.   </div><!-- end C_P -->
  174.  !endif
  175.  </div>
  176. !endif
  177.