-
Notifications
You must be signed in to change notification settings - Fork 0
/
advance_search.php
336 lines (316 loc) · 11.3 KB
/
advance_search.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
<?php include("header.php"); ?>
<script language="javascript" src="picker.js"></script>
<link href="picker.css" rel="stylesheet" type="text/css" />
<!-- Content Area Start -->
<?php include("left.php"); ?>
<form action="searchresults.php" method="post" name="advsrchfrm">
<input type="hidden" name="cty_id" id="cty_id" value="" />
<div id="content_area_mid">
<div><img src="images/as_head.jpg" alt="" border="0"></div>
<div class="border1" style="padding-left:10px;">
<div id="advance_search_mid_portion">
<li>
Product Name<br>
<input type="text" name="shoe_name" class="txt_box" id="shoe_name">
</li>
<li>
Shoes Category<br>
<select name="shc_id" class="txt_box" id="shc_id">
<optgroup label>
<option selected="selected" value=""><span class="search_txtbox">-- Select --</span></option>
</optgroup>
<?php
$rs=mysql_query("select * from soe_shoe_category where active=1 and parent_id=0 order by name");
while($row=mysql_fetch_array($rs))
{
?>
<optgroup label="<?php echo $row['name']; ?>">
<?php
$rs1=mysql_query("select * from soe_shoe_category where active=1 and parent_id=".$row['shc_id']);
while($row1=mysql_fetch_array($rs1))
{
if($shc_id==$row1['shc_id'])
$c='selected';
else
$c='';
?>
<option value="<?php echo $row1['shc_id']; ?>" <?php echo $c; ?> ><span class="search_txtbox"><?php echo $row1['name']; ?></span></option>
<?php
}
?>
</optgroup>
<?php
}
?>
</select>
</li>
<li>
Brand<br>
<span class="search_txtbox">
<select name="brm_id" class="txt_box" id="brm_id">
<option value="" selected>-- Select --</option>
<?php
$rs=mysql_query("select * from soe_brand where active=1 order by name");
while($row=mysql_fetch_array($rs))
{
if($brn_id==$row['brn_id'])
$c='selected';
else
$c='';
?>
<option value="<?php echo $row['brn_id']; ?>" <?php echo $c; ?> ><?php echo $row['name']; ?></option>
<?php
}
?>
</select>
</span></li>
<li>
Shoe Type<br>
<select name="sht_id" class="txt_box" id="sht_id">
<option selected="selected" value="">-- Select --</option>
<?php
$rs=mysql_query("select * from soe_shoe_type where active=1 order by name");
while($row=mysql_fetch_array($rs))
{
if($_POST['sht_id']==$row['sht_id'])
$c='selected';
else
$c='';
?>
<option value="<?php echo $row['sht_id']; ?>" <?php echo $c; ?> ><?php echo $row['name']; ?></option>
<?php
}
?>
</select>
</li>
<li>
Type of sole<br>
<select name="sol_id" class="txt_box" id="sol_id">
<option selected="selected" value="">-- Select --</option>
<?php
$rs=mysql_query("select * from soe_sole_type where active=1 order by name");
while($row=mysql_fetch_array($rs))
{
if($_POST['sol_id']==$row['sol_id'])
$c='selected';
else
$c='';
?>
<option value="<?php echo $row['sol_id']; ?>" <?php echo $c; ?> ><?php echo $row['name']; ?></option>
<?php
}
?>
</select>
</li>
<li>
Type of Closure<br>
<select name="clo_id" class="txt_box" id="clo_id">
<option selected="selected" value="">-- Select --</option>
<?php
$rs=mysql_query("select * from soe_closure where active=1 order by name");
while($row=mysql_fetch_array($rs))
{
if($_POST['clo_id']==$row['clo_id'])
$c='selected';
else
$c='';
?>
<option value="<?php echo $row['clo_id']; ?>" <?php echo $c; ?> ><?php echo $row['name']; ?></option>
<?php
}
?>
</select>
</li>
<li>
Shoe Lace<br>
<input name="shoe_lace" value="1" type="radio" <?php if($_POST['lace']=='1') { ?> checked="checked" <?php } ?> /> Yes
<input name="shoe_lace" value="0" type="radio" <?php if($_POST['lace']=='0') { ?> checked="checked" <?php } ?> />No
</li>
<li>
Materia<br>
<select name="mtr_id[]" size="5" class="txt_box" multiple="multiple" id="mtr_id[]" >
<option selected="selected" value="">Any....</option>
<?php
$rs=mysql_query("select * from soe_material where active=1 order by name");
while($row=mysql_fetch_array($rs))
{
if($_POST['mtr_id']==$row['mtr_id'])
$c='selected';
else
$c='';
?>
<option value="<?php echo $row['mtr_id']; ?>" <?php echo $c; ?> ><?php echo $row['name']; ?></option>
<?php
}
?>
</select>
</li>
<li>
Color<br>
<input name="color1" id="color1" size="7" maxlength="7" value="#00ffff" style="width: 80px; background-color: rgb(0, 255, 255);" type="text">
<img src="images/color.png" width="16" height="16" align="absmiddle" style="cursor: pointer;" onclick="openPicker('color1')">
</li>
</div>
<div id="advance_search_mid_portionn">
<li>
Shoe size <br>
<select name="siz_id" class="txt_box" id="siz_id">
<option selected="selected" value="">-- Select --</option>
<?php
$rs=mysql_query("select * from soe_shoe_size where active=1 order by name");
while($row=mysql_fetch_array($rs))
{
if($_POST['siz_id']==$row['siz_id'])
$c='selected';
else
$c='';
?>
<option value="<?php echo $row['siz_id']; ?>" <?php echo $c; ?> ><?php echo htmlentities($row['name']); ?></option>
<?php
}
?>
</select>
</li>
<li>
Shoe Width<br>
<select name="shw_id" class="txt_box" id="shw_id">
<option selected="selected" value="">-- Select --</option>
<?php
$rs=mysql_query("select * from soe_shoe_width where active=1 order by name");
while($row=mysql_fetch_array($rs))
{
if($_POST['shw_id']==$row['shw_id'])
$c='selected';
else
$c='';
?>
<option value="<?php echo $row['shw_id']; ?>" <?php echo $c; ?> ><?php echo $row['name']; ?></option>
<?php
}
?>
</select>
</li>
<li>
Heel Height<br>
<select name="hlh_id" class="txt_box" id="hlh_id">
<option selected="selected" value="">-- Select --</option>
<?php
$rs=mysql_query("select * from soe_heel_height where active=1 order by name");
while($row=mysql_fetch_array($rs))
{
if($_POST['hlh_id']==$row['hlh_id'])
$c='selected';
else
$c='';
?>
<option value="<?php echo $row['hlh_id']; ?>" <?php echo $c; ?> ><?php echo str_replace('""','',$row['name']); ?></option>
<?php
}
?>
</select>
</li>
<li>
Heel Size<br>
<select name="hls_id" class="txt_box" id="hls_id">
<option selected="selected" value="">-- Select --</option>
<?php
$rs=mysql_query("select * from soe_heel_size where active=1 order by name");
while($row=mysql_fetch_array($rs))
{
if($_POST['hls_id']==$row['hls_id'])
$c='selected';
else
$c='';
?>
<option value="<?php echo $row['hls_id']; ?>" <?php echo $c; ?> ><?php echo str_replace('""','',$row['name']); ?></option>
<?php
}
?>
</select>
</li>
<li>
Season<br>
<select name="sea_id" class="txt_box" id="sea_id">
<option selected="selected" value="">-- Select --</option>
<?php
$rs=mysql_query("select * from soe_season where active=1 order by name");
while($row=mysql_fetch_array($rs))
{
if($_POST['sea_id']==$row['sea_id'])
$c='selected';
else
$c='';
?>
<option value="<?php echo $row['sea_id']; ?>" <?php echo $c; ?> ><?php echo $row['name']; ?></option>
<?php
}
?>
</select>
</li>
<li>
Price<br>
<input type="text" name="price" class="txt_box" id="price">
</li>
<li>
Store name <br>
<input type="text" name="store_name" class="txt_box" id="store_name">
</li>
<li>
Country <br>
<select name="con_id" class="txt_box" id="con_id">
<option selected="selected" value="">-- Select --</option>
<?php
$rs=mysql_query("select * from soe_geo_countries order by name");
while($row=mysql_fetch_array($rs))
{
if($_POST['cnt_id']==$row['con_id'])
$c='selected';
else
$c='';
?>
<option value="<?php echo $row['con_id']; ?>" <?php echo $c; ?> ><?php echo $row['name']; ?></option>
<?php
}
?>
</select>
</li>
<li>
State <br>
<select name="sta_id" class="txt_box" id="sta_id">
<option selected="selected" value="">-- Select --</option>
<?php
$rs=mysql_query("select * from soe_geo_countries order by name");
while($row=mysql_fetch_array($rs))
{
if($_POST['cnt_id']==$row['con_id'])
$c='selected';
else
$c='';
?>
<option value="<?php echo $row['con_id']; ?>" <?php echo $c; ?> ><?php echo $row['name']; ?></option>
<?php
}
?>
</select>
</li>
<li>
City <br>
<input autocomplete="off" name="city" class="input_box txt_box" id="city" type="text" >
</li>
<li>
Zipcode <br>
<input type="text" name="zip_code" class="txt_box" id="zip_code">
</li>
</ul>
</div>
<div class="clear"></div>
<div><input name="Submit" type="submit" value="Submit">
</div>
</div>
</div>
</form>
<div id="content_area_right"> <?php echo showbanners('right'); ?></div>
<div class="clear"></div>
<!-- Content Area End -->
<div class="hei"></div>
<?php include("footer.php"); ?>