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