Subversion Repositories wimsdev

Rev

Rev 17374 | 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 ADTXRPOSG
  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&lang=$lang</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 ADXOTRG 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&lang=$lang</p>
  84.     !endif
  85.   !endif
  86.  
  87. !endif
  88.  
  89. !if $s_category isin PLSCG
  90.   <div class="wims_emph">
  91.   !if $s_category isin P
  92.     !set mP=!replace internal wimshome/public_html/modules/ by $ in $module_P
  93.     !href module=$mP.$p_lang $(CC_$s_category)
  94.   !else
  95.     $(CC_$s_category)
  96.   !endif
  97.   </div>
  98.   !changeto result.$s_category
  99. !endif
  100.  
  101. !!arrive here for example if the address of the module has been given in the search_engine
  102.  
  103. !if $Gotcnt=1 and $gotcnt=1
  104.   <div class="RE_found">
  105.   !read result.A
  106.   </div>
  107.   !exit
  108. !endif
  109.  
  110. !if $gottype=search or $gotcnt1=0
  111.   !reset tt
  112.   !if $test_exist!=$empty
  113.     <p>$RE_found2</p>
  114.     !if $jquery_defined=yes and $s_category isitemof A,T
  115.       <script type="text/javascript">
  116.         /*<![CDATA[*/
  117.         jQuery(function($$) {
  118.             $$("#searchresult").tabs();
  119.           });
  120.         /*]]>*/
  121.       </script>
  122.     !endif
  123.   !endif
  124.  
  125.   <div id="searchresult">
  126.   !if $s_category isitemof A,T
  127.     !if $s_category=A
  128.       !set list_tabs = X,D,T,R,M,S,C,P,G
  129.       !set list_divs = X,D,T,R,M
  130.     !endif
  131.     !if $s_category=T
  132.       !set list_tabs = T,P
  133.       !set list_divs = T
  134.     !endif
  135.     !set gotcntP = $gotcnt1
  136.     <ul>
  137.     !for cat in $list_tabs
  138.       !if $(gotcnt$cat)>0
  139.         <li>
  140.           <a href="#content_$cat">
  141.           $(CC_$cat) ($(gotcnt$cat))</a>
  142.         </li>
  143.       !endif
  144.     !next
  145.     </ul>
  146.     !for cat in $list_divs
  147.       !if $(gotcnt$cat) >0
  148.         <div id="content_$cat">
  149.           <p class="wims_emph">$(CC_$cat)</p>
  150.         !read result.A $cat
  151.         </div> <!-- end C_$cat -->
  152.       !endif
  153.     !next
  154.   !else
  155.     !! tt is used in lang/names.$lang
  156.     !if $s_category notin CSG
  157.       !set tt=<p class="wims_emph">$(CC_$s_category)</p>
  158.     !endif
  159.     <p class="wims_emph">$(CC_$s_category)</p>
  160.     !read result.A $s_category
  161.   !endif
  162.  
  163.   !if $Gotcnt=0
  164.     !read result.A
  165.   !endif
  166.  
  167.   !if $gotcntS > 0
  168.     <div id="content_S">
  169.     <p class="wims_emph">$CC_S</p>
  170.     !read result.S
  171.     </div> <!-- end C_S -->
  172.   !endif
  173.   !if $gotcntC > 0
  174.     <div id="content_C">
  175.     <p class="wims_emph">$CC_C</p>
  176.     !read result.C
  177.     </div> <!-- end C_C -->
  178.   !endif
  179.   !if $gotcntG > 0
  180.     <div id="content_G">
  181.     <p class="wims_emph">$CC_G</p>
  182.     !read result.G
  183.     </div> <!-- end C_G -->
  184.   !endif
  185.  
  186.   !if $s_category isin A,T and $gotcnt1>0
  187.     !exchange gotcnt,gotcnt1
  188.     !exchange gottype,gottype1
  189.     !exchange gotm,gotm1
  190.     <div id="content_P">
  191.       <p class="wims_emph">$(CC_P)</p>
  192.     !read result.P
  193.     </div><!-- end C_P -->
  194.   !endif
  195.   </div>
  196. !endif
  197.