Subversion Repositories wimsdev

Rev

Rev 7562 | Rev 7995 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 reyssat 1
!nocache
7077 obado 2
 
7084 bpr 3
!if $test_exist!=$empty
4
  !set gottype=search
5
!endif
6
 
7077 obado 7
!if $s_category isin ADTXRPOS
8
  !read adm/search_engine/search_clear.phtml
9
!endif
10
 
6875 bpr 11
!if $error!=$empty and  $(ER_$error)!=
7077 obado 12
  <p class="wims_alertmsg">
13
   $(ER_$error)
14
   !read adm/search_engine/search_empty.phtml
15
  </p>
33 reyssat 16
!endif
6740 bpr 17
!set tt=<span class="wims_emph">$(CC_A)</span>
7077 obado 18
 
6741 bpr 19
!if $gottype=search and ($Gotcnt>1 or $gotcnt>1)
7044 bpr 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]
7077 obado 27
 <div class="RE_found">
7636 bpr 28
  $RE_found
29
   <p class="wimscenter small">$wims_ref_name?$search_adresse</p>
7044 bpr 30
  !if $warning notsametext $empty
7043 bpr 31
    $RE_warning_more
32
  !endif
7077 obado 33
 </div>
34
 
33 reyssat 35
!else
6470 bpr 36
 !if $s_keywords!=$empty and $Gotcnt<1
6615 bpr 37
 <div class="wims_alertmsg">
33 reyssat 38
  $RE_nomatch.
39
  !if $(rel_$s_category)!=$empty
7077 obado 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
33 reyssat 49
.
7077 obado 50
     !endif has_browse=yes
6615 bpr 51
   </div>
6739 bpr 52
  !endif $(rel_$s_category)
6893 bpr 53
 </div>
6739 bpr 54
 !endif $s_keywords!=$empty
7077 obado 55
 
6470 bpr 56
 !if $s_category isin ADXOTR and $gotcnt1<1 and $gotcnt>0 and $Gotcnt<1
7077 obado 57
  <p class="RE_pop">
33 reyssat 58
  !if $list_start>0
6549 obado 59
   !set wims_ref_title = $RE_prev
33 reyssat 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;
6549 obado 68
   !set wims_ref_title = $RE_next
33 reyssat 69
   !href module=home&cmd=reply&list_start=$[$list_start+$list_batch] &gt;&gt;
70
  !endif
7107 bpr 71
 </p>
33 reyssat 72
  !reset list_start
7077 obado 73
 !else
74
  !if $s_category isin ADXOTR and $s_keywords=$empty
75
    <p class="wims_alertmsg">
76
     $RE_noKeyword.
77
    </p>
78
  !endif
33 reyssat 79
 !endif
7077 obado 80
 
33 reyssat 81
!endif
7077 obado 82
 
6620 bpr 83
!if $s_category isin PLSC
7077 obado 84
 <div class="wims_emph">$(CC_$s_category)</div>
33 reyssat 85
 !changeto result.$s_category
86
!endif
7077 obado 87
 
6875 bpr 88
!!arrive here for example if the address of the module has been given in the search_engine
33 reyssat 89
 
6739 bpr 90
!if $Gotcnt=1 and $gotcnt=1
6875 bpr 91
  <div class="RE_found">
7077 obado 92
    !read result.A
6875 bpr 93
 </div>
6739 bpr 94
 !exit
95
!endif
96
 
33 reyssat 97
!if $gottype=search or $gotcnt1=0
6570 bpr 98
 !reset tt
6739 bpr 99
 !if $test_exist!=$empty
6905 obado 100
  <p>$RE_found2</p>
101
 
6739 bpr 102
  <script type="text/javascript">
6905 obado 103
    /*<![CDATA[*/
104
    jQuery(function($$) {
105
        $$( "#searchresult" ).tabs();
106
      });
107
    /*]]>*/
108
  </script>
7077 obado 109
 !endif
6905 obado 110
 
7077 obado 111
 <div id="searchresult">
6570 bpr 112
 !if $s_category=A
6905 obado 113
   <ul>
6747 bpr 114
   !for cat in X,D,T,R,M,S,C
6739 bpr 115
    !if $(gotcnt$cat)>0
6905 obado 116
      <li>
117
       <a href="#content_$cat">
6758 bpr 118
         $(CC_$cat) ($(gotcnt$cat))</a>
119
       </li>
6739 bpr 120
    !endif
121
   !next
122
   !if $gotcnt1 >0
6905 obado 123
     <li >
124
      <a href="#content_P">
6758 bpr 125
      $(CC_P) ($gotcnt1)</a>
126
      </li>
6739 bpr 127
   !endif
128
   </ul>
6747 bpr 129
   !for cat in X,D,T,R,M
6739 bpr 130
     !if $(gotcnt$cat) >0
6905 obado 131
       <div id="content_$cat">
7077 obado 132
         <p class="wims_emph">$(CC_$cat)</p>
133
         !read result.A $cat
134
       </div> <!-- end C_$cat -->
6739 bpr 135
     !endif
136
   !next
6905 obado 137
 
6570 bpr 138
 !else
6739 bpr 139
!! tt is used in lang/names.$lang
6570 bpr 140
  !if $s_category notin CS
6740 bpr 141
   !set tt=<p class="wims_emph">$(CC_$s_category)</p>
6570 bpr 142
  !endif
6740 bpr 143
   <p class="wims_emph">$(CC_$s_category)</p>
6747 bpr 144
       !read result.A $s_category
6570 bpr 145
 !endif
6739 bpr 146
 !if $Gotcnt=0
147
  !read result.A
393 bpr 148
 !endif
33 reyssat 149
 
6739 bpr 150
 !if $gotcntS > 0
6905 obado 151
  <div id="content_S">
7077 obado 152
    <p class="wims_emph">$CC_S</p>
153
    !read result.S
6750 bpr 154
  </div> <!-- end C_S -->
6739 bpr 155
 !endif
156
 !if $gotcntC > 0
6905 obado 157
  <div id="content_C">
7077 obado 158
    <p class="wims_emph">$CC_C</p>
159
    !read result.C
6750 bpr 160
  </div> <!-- end C_C -->
6739 bpr 161
 !endif
6463 bpr 162
 
6750 bpr 163
 !if $s_category isin A,T and $gotcnt1>0
6739 bpr 164
  !exchange gotcnt,gotcnt1
165
  !exchange gottype,gottype1
166
  !exchange gotm,gotm1
6905 obado 167
  <div id="content_P">
7077 obado 168
    <p class="wims_emph">$(CC_P)</p>
169
    !read result.P
6750 bpr 170
  </div><!-- end C_P -->
6739 bpr 171
 !endif
6905 obado 172
 </div>
33 reyssat 173
!endif