Subversion Repositories wimsdev

Rev

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

  1. !nocache
  2.  
  3. <a id="searchresult"> </a>
  4.  
  5. !if $error!=$empty and  $(ER_$error)!=
  6. <p class="wims_alertmsg">
  7.  $(ER_$error)
  8.  !read adm/search_engine/search_empty.phtml
  9. </p>
  10. !endif
  11. !set tt=<span class="wims_emph">$(C_A)</span>
  12. !if $gottype=search
  13. <div class="RE_found">
  14.  $RE_found.
  15.  !read adm/search_engine/search_clear.phtml
  16. </div>
  17. !else
  18.  !if $s_keywords!=$empty and $Gotcnt<1
  19.  <div class="wims_alertmsg">
  20.   $RE_nomatch.
  21.   !read adm/search_engine/search_clear.phtml
  22.  </div>
  23.   !if $(rel_$s_category)!=$empty
  24.   <div>
  25.    $RE_try
  26.    !for i in $(rel_$s_category)
  27.     !href module=home&cmd=reply&search_category=$i&search_keywords=$s_keywords $(C_$i)
  28.     &nbsp;
  29.    !next i
  30.    !if $has_browse=yes
  31.     $wims_name_or
  32.     !href module=adm/browse&$browse_parm $N_browsesite
  33. .
  34.    !endif has_browse=yes
  35.    </div>
  36.   !endif $(rel_$s_category)
  37.  !endif $s_keywords!=$empty
  38.  !if $s_category isin ADXOTR and $gotcnt1<1 and $gotcnt>0 and $Gotcnt<1
  39.   !if $list_start>0
  40.    !set wims_ref_title = $RE_prev
  41.    !href module=home&cmd=reply&list_start=$[$list_start-$list_batch] &lt;&lt;
  42.    &nbsp;
  43.    $RE_pop2.
  44.   !else
  45.    $RE_pop.
  46.   !endif
  47.   !if $list_start<$list_cc-$list_batch
  48.    &nbsp;
  49.    !set wims_ref_title = $RE_next
  50.    !href module=home&cmd=reply&list_start=$[$list_start+$list_batch] &gt;&gt;
  51.   !endif
  52.   !reset list_start
  53.   !read adm/search_engine/search_clear.phtml
  54.  !endif
  55. !endif
  56. !if $s_category isin PLSC
  57. <div class="wims_emph">$(C_$s_category)
  58. </div>
  59.  !changeto result.$s_category
  60. !endif
  61. !!arrive herefor example if the address of the module has been given in the search_engine
  62.  
  63. !if $Gotcnt=1 and $gotcnt=1
  64.        !read result.A
  65.  !exit
  66. !endif
  67.  
  68. !if $gottype=search or $gotcnt1=0
  69.  !reset tt
  70.  !if $test_exist!=$empty
  71.   <script type="text/javascript">
  72. //-->
  73. function affiche(name) {  
  74.  document.getElementById('affiche_content_'+onglet_affiche).className = 'result_inactif tab';
  75.  document.getElementById('affiche_content_'+name).className = 'affiche_content tab';
  76.  document.getElementById('contenu_'+onglet_affiche).style.display = 'none';
  77.  document.getElementById('contenu_'+name).style.display = 'block';
  78.  onglet_affiche = name;
  79. }
  80. var onglet_affiche = '$(test_exist[1])'
  81. </script>
  82. !endif
  83.  !if $s_category=A
  84.   <div class="wimscenter">
  85.    <ul class="tab_content">
  86.    !for cat in X,D,T,S,C
  87.     !if $(gotcnt$cat)>0
  88.       <li class="result_inactif tab" id="affiche_content_$cat" onclick="javascript:affiche('$cat');">$(C_$cat)</li>
  89.     !endif
  90.    !next
  91.    !if $gotcnt1 >0
  92.      <li class="result_inactif tab" id="affiche_content_$cat" onclick="javascript:affiche('P');">$(C_P)</li>
  93.    !endif
  94.    </ul>
  95.   </div>
  96.    !for cat in X,D,T
  97.      !if $(gotcnt$cat) >0
  98.        <div class="content" id="contenu_$cat">
  99.        <p class="wims_emph">$(C_$cat)</p>
  100.        !read result.A $cat
  101.       </div>
  102.      !endif
  103.    !next
  104.  !else
  105. !! tt is used in lang/names.$lang
  106.   !if $s_category notin CS
  107.    !set tt=<p class="wims_emph">$(C_$s_category)</p>
  108.   !endif
  109.    <p class="wims_emph">$(C_$s_category)</p>
  110.        !read result.$s_category
  111.  !endif
  112.  !if $Gotcnt=0
  113.   !read result.A
  114.  !endif
  115.  
  116.  !if $gotcntS > 0
  117.   <div class="content" id="contenu_S">
  118.   <p class="wims_emph">$C_S</p>
  119.   !read result.S
  120.   </div>
  121.  !endif
  122.  !if $gotcntC > 0
  123.   <div class="content" id="contenu_C">
  124.   <p class="wims_emph">$C_C</p>
  125.   !read result.C
  126.   </div>
  127.  !endif
  128.  
  129.  !if $s_category isin AT and $gotcnt1>0
  130.  
  131.   !exchange gotcnt,gotcnt1
  132.   !exchange gottype,gottype1
  133.   !exchange gotm,gotm1
  134.   <div id="contenu_P">
  135.   <p class="wims_emph">$C_P</p>
  136.   !read result.P
  137.   </div>
  138.  !endif
  139. !endif
  140.