Subversion Repositories wimsdev

Rev

Rev 12913 | Rev 15381 | 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_msg alert">
  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.   !if $sheet_inpreparation=0
  35.     <div class="wims_msg info">
  36.       $wims_name_warning ! $name_nopreparationsheet
  37.     </div>
  38.   !endif
  39. !else
  40.   !if $s_keywords!=$empty and $Gotcnt<1
  41.     <div class="wims_msg info">
  42.     $RE_nomatch.
  43.     !if $(rel_$s_category)!=$empty and _tool notin $session
  44.       <div class="RE_try">
  45.       $RE_try
  46.       !for i in $(rel_$s_category)
  47.         !href module=home&cmd=reply&search_category=$i&search_keywords=$s_keywords $(CC_$i)
  48.         &nbsp;
  49.       !next i
  50.       !if $has_browse=yes
  51.         $wims_name_or
  52.         !href module=adm/browse&$browse_parm $N_browsesite
  53.       !endif has_browse=yes
  54.       </div>
  55.     !endif $(rel_$s_category)
  56.     </div>
  57.   !endif $s_keywords!=$empty and _tool notin $session
  58.  
  59.   !if $s_category isin ADXOTR and $gotcnt1<1 and $gotcnt>0 and $Gotcnt<1
  60.     <p class="RE_pop">
  61.     !if $list_start>0
  62.       !set wims_ref_title = $RE_prev
  63.       !href module=home&cmd=reply&list_start=$[$list_start-$list_batch] &lt;&lt;
  64.       &nbsp;
  65.       $RE_pop2.
  66.     !else
  67.       $RE_pop.
  68.     !endif
  69.     !if $list_start<$list_cc-$list_batch
  70.       &nbsp;
  71.       !set wims_ref_title = $RE_next
  72.       !href module=home&cmd=reply&list_start=$[$list_start+$list_batch] &gt;&gt;
  73.     !endif
  74.     </p>
  75.     !reset list_start
  76.   !else
  77.     !if $s_category isin ADXOTR and $s_keywords=$empty
  78.       <p class="wims_msg info">
  79.       $RE_noKeyword.
  80.       </p>
  81.     !endif
  82.     !if $s_keywords!=$empty
  83.     <p class="wimscenter small">$wims_ref_name?$search_adresse</p>
  84.     !endif
  85.   !endif
  86.  
  87. !endif
  88.  
  89. !if $s_category isin PLSC
  90.   <div class="wims_emph">$(CC_$s_category)</div>
  91.   !changeto result.$s_category
  92. !endif
  93.  
  94. !!arrive here for example if the address of the module has been given in the search_engine
  95.  
  96. !if $Gotcnt=1 and $gotcnt=1
  97.   <div class="RE_found">
  98.   !read result.A
  99.   </div>
  100.   !exit
  101. !endif
  102.  
  103. !if $gottype=search or $gotcnt1=0
  104.   !reset tt
  105.   !if $test_exist!=$empty
  106.     <p>$RE_found2</p>
  107.     !if $jquery_defined=yes and $s_category isitemof A,T
  108.       <script type="text/javascript">
  109.         /*<![CDATA[*/
  110.         jQuery(function($$) {
  111.             $$("#searchresult").tabs();
  112.           });
  113.         /*]]>*/
  114.       </script>
  115.     !endif
  116.   !endif
  117.  
  118.   <div id="searchresult">
  119.   !if $s_category isitemof A,T
  120.     !if $s_category=A
  121.       !set list_tabs = X,D,T,R,M,S,C,P
  122.       !set list_divs = X,D,T,R,M
  123.     !endif
  124.     !if $s_category=T
  125.       !set list_tabs = T,P
  126.       !set list_divs = T
  127.     !endif
  128.     !set gotcntP = $gotcnt1
  129.     <ul>
  130.     !for cat in $list_tabs
  131.       !if $(gotcnt$cat)>0
  132.         <li>
  133.           <a href="#content_$cat">
  134.           $(CC_$cat) ($(gotcnt$cat))</a>
  135.         </li>
  136.       !endif
  137.     !next
  138.     </ul>
  139.     !for cat in $list_divs
  140.       !if $(gotcnt$cat) >0
  141.         <div id="content_$cat">
  142.           <p class="wims_emph">$(CC_$cat)</p>
  143.         !read result.A $cat
  144.         </div> <!-- end C_$cat -->
  145.       !endif
  146.     !next
  147.   !else
  148.     !! tt is used in lang/names.$lang
  149.     !if $s_category notin CS
  150.       !set tt=<p class="wims_emph">$(CC_$s_category)</p>
  151.     !endif
  152.     <p class="wims_emph">$(CC_$s_category)</p>
  153.     !read result.A $s_category
  154.   !endif
  155.  
  156.   !if $Gotcnt=0
  157.     !read result.A
  158.   !endif
  159.  
  160.   !if $gotcntS > 0
  161.     <div id="content_S">
  162.     <p class="wims_emph">$CC_S</p>
  163.     !read result.S
  164.     </div> <!-- end C_S -->
  165.   !endif
  166.   !if $gotcntC > 0
  167.     <div id="content_C">
  168.     <p class="wims_emph">$CC_C</p>
  169.     !read result.C
  170.     </div> <!-- end C_C -->
  171.   !endif
  172.  
  173.   !if $s_category isin A,T and $gotcnt1>0
  174.     !exchange gotcnt,gotcnt1
  175.     !exchange gottype,gottype1
  176.     !exchange gotm,gotm1
  177.     <div id="content_P">
  178.       <p class="wims_emph">$(CC_P)</p>
  179.     !read result.P
  180.     </div><!-- end C_P -->
  181.   !endif
  182.   </div>
  183. !endif
  184.