-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsearch.php
310 lines (293 loc) · 11 KB
/
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
<?php include_once("includes/basic_includes.php");?>
<?php include_once("functions.php"); ?>
<?php
if(isloggedin()){
//do nothing stay here
} else{
header("location:login.php");
}
?>
<?php
$result=search();
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Find Your Perfect Partner - Makemylove
| Search :: Make My Love
</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<link href="css/bootstrap-3.1.1.min.css" rel='stylesheet' type='text/css' />
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<!-- Custom Theme files -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href='//fonts.googleapis.com/css?family=Oswald:300,400,700' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'>
<!--font-Awesome-->
<link href="css/font-awesome.css" rel="stylesheet">
<!--font-Awesome-->
<script>
$(document).ready(function(){
$(".dropdown").hover(
function() {
$('.dropdown-menu', this).stop( true, true ).slideDown("fast");
$(this).toggleClass('open');
},
function() {
$('.dropdown-menu', this).stop( true, true ).slideUp("fast");
$(this).toggleClass('open');
}
);
});
</script>
</head>
<body>
<!-- ============================ Navigation Start =========================== -->
<?php include_once("includes/navigation.php");?>
<!-- ============================ Navigation End ============================ -->
<div class="grid_3">
<div class="container">
<div class="breadcrumb1">
<ul>
<a href="index.php"><i class="fa fa-home home_1"></i></a>
<span class="divider"> | </span>
<li class="current-page">Regular Search</li>
</ul>
</div>
<!--<script type="text/javascript">
$(function () {
$('#btnRadio').click(function () {
var checkedradio = $('[name="gr"]:radio:checked').val();
$("#sel").php("Selected Value: " + checkedradio);
});
});
</script>-->
<div class="col-md-9 search_left">
<form action="" method="post">
<div class="form_but1">
<label class="col-sm-5 control-lable1" for="sex">Gender : </label>
<div class="col-sm-7 form_radios">
<input type="radio" class="radio_1" name="sex" value="male" <?php echo "checked";?>/> Groom
<input type="radio" class="radio_1" name="sex" value="female"/> Bride
<!--<hr />
<p id="sel"></p><br />
<input id="btnRadio" type="button" value="Get Selected Value" />-->
</div>
<div class="clearfix"> </div>
</div>
<div class="form_but1">
<label class="col-sm-5 control-lable1" for="Marital Status">Marital Status : </label>
<div class="col-sm-7 form_radios">
<input type="checkbox" class="radio_1" name="maritalstatus" value="Single" <?php echo "checked" ?>/> Single
<input type="checkbox" class="radio_1" name="maritalstatus" value="divorced" /> Divorced
<input type="checkbox" class="radio_1" name="maritalstatus" value="widowed" /> Widowed
<input type="checkbox" class="radio_1" name="maritalstatus" value="seperated"/> Separated
<input type="checkbox" class="radio_1" name="maritalstatus" value="any" /> Any
</div>
<div class="clearfix"> </div>
</div>
<div class="form_but1">
<label class="col-sm-5 control-lable1" for="country">Country : </label>
<div class="col-sm-7 form_radios">
<div class="select-block1">
<select name="country">
<option value="">Country</option>
<option value="Japan">Japan</option>
<option value="Kenya">Kenya</option>
<option value="Dubai">Dubai</option>
<option value="Italy">Italy</option>
<option value="Greece">Greece</option>
<option value="Iceland">Iceland</option>
<option value="China">China</option>
<option value="India">India</option>
<option value="Irland">Irland</option>
<option value="Srilanka">Srilanka</option>
<option value="Russia">Russia</option>
<option value="Hong Kong">Hong Kong</option>
<option value="Germany">Germany</option>
</select>
</div>
</div>
<div class="clearfix"> </div>
</div>
<div class="form_but1">
<label class="col-sm-5 control-lable1" for="District / City">District / City : </label>
<div class="col-sm-7 form_radios">
<div class="select-block1">
<select name="district">
<option value="">District / City</option>
<option value="Wayanad">Wayanad</option>
<option value="Calicut">Calicut</option>
<option value="Malappuram">Malappuram</option>
<option value="Trivandrum">Trivandrum</option>
<option value="Kannur">Kannur</option>
<option value="Kasargode">Kasargode</option>
</select>
</div>
</div>
<div class="clearfix"> </div>
</div>
<div class="form_but1">
<label class="col-sm-5 control-lable1" for="State">State : </label>
<div class="col-sm-7 form_radios">
<div class="select-block1">
<select name="state">
<option value="">State</option>
<option value="Kerala">Kerala</option>
<option value="Tamilnadu">Tamilnadu</option>
<option value="Karnataka">Karnataka</option>
<option value="Madhyapradesh">Madhyapradesh</option>
</select>
</div>
</div>
<div class="clearfix"> </div>
</div>
<div class="form_but1">
<label class="col-sm-5 control-lable1" for="Religion">Religion : </label>
<div class="col-sm-7 form_radios">
<div class="select-block1">
<select name="religion">
<option value="">Religion</option>
<option value="Hindu">Hindu</option>
<option value="Sikh">Sikh</option>
<option value="Jain-All">Jain-All</option>
<option value="Jain-Digambar">Jain-Digambar</option>
<option value="Jain-Others">Jain-Others</option>
<option value="Muslim-All">Muslim-All</option>
<option value="Muslim-Shia">Muslim-Shia</option>
<option value="Muslim-Sunni">Muslim-Sunni</option>
<option value="Muslim-Others">Muslim-Others</option>
<option value="Christian-All">Christian-All</option>
<option value="Christian-Catholic">Christian-Catholic</option>
<option value="Jewish">Jewish</option>
<option value="Inter-Religion">Inter-Religion</option>
</select>
</div>
</div>
<div class="clearfix"> </div>
</div>
<div class="form_but1">
<label class="col-sm-5 control-lable1" for="Mother Tongue">Mother Tongue : </label>
<div class="col-sm-7 form_radios">
<div class="select-block1">
<select name="mothertounge">
<option value="Malayalam">Malayalam</option>
<option value="English">English</option>
<option value="French">French</option>
<option value="Telugu">Telugu</option>
<option value="Bengali">Bengali</option>
<option value="Bihari">Bihari</option>
<option value="Hindi">Hindi</option>
<option value="Tamil">Tamil</option>
<option value="Urdu">Urdu</option>
<option value="Manipuri">Manipuri</option>
</select>
</div>
</div>
<div class="clearfix"> </div>
</div>
<div class="form_but1">
<label class="col-sm-5 control-lable1" for="Age">Age : </label>
<div class="col-sm-7 form_radios">
<div class="col-sm-5 input-group1">
<input class="form-control has-dark-background" name="agemin" id="slider-name" placeholder="18" type="text" required=""/>
</div>
<div class="col-sm-5 input-group1">
<input class="form-control has-dark-background" name="agemax" id="slider-name" placeholder="40" type="text" required=""/>
</div>
<div class="clearfix"> </div>
</div>
<div class="clearfix"> </div>
<input type="submit" name="search" value="Search"/>
</div>
</form>
<div class="paid_people">
<h1>Profiles</h1>
<?php
//only start display profiles if and only if search is triggered
if(isset($_POST['search'])){
//code to print matching profiles
// couloumn count
$c_count = '1';
while ($row = mysqli_fetch_assoc($result))
{
$profid=$row['cust_id'];
//getting photo for display
$sql="SELECT * FROM photos WHERE cust_id=$profid";
$result2=mysqlexec($sql);
$photo=mysqli_fetch_assoc($result2);
$pic=$photo['pic1'];
// printing left side profile
echo "<div class=\"row_1\">"; //starting row
if ($c_count == '1')
{
echo "<div class=\"col-sm-6 paid_people-left\">"; //left statrted
echo "<ul class=\"profile_item\">";
echo "<a href=\"view_profile.php?id=$profid\">";
echo "<li class=\"profile_item-img\"><img src=\"profile/". $profid."/".$pic ."\"" . "class=\"img-responsive\" alt=\"\"/></li>";
echo "<li class=\"profile_item-desc\">";
echo "<h4>" . $row['firstname'] . " " . $row['lastname'] . "</h4>";
echo "<p>" . $row['age']. "Yrs," . $row['religion'] . "</p>";
echo "<h5>" . "View Full Profile" . "</h5>";
echo "</li>";
echo "</a>";
echo "</ul>";
echo "</div>"; //left end
$c_count++;
}
else
{
echo "<div class=\"col-sm-6\">"; //right statrted
echo "<ul class=\"profile_item\">";
echo "<a href=\"view_profile.php?id=$profid\">";
echo "<li class=\"profile_item-img\"><img src=\"profile/". $profid."/".$pic ."\"" . "class=\"img-responsive\"" ;
echo "alt=\"\"/></li>";
echo "<li class=\"profile_item-desc\">";
echo "<h4>" . $row['firstname'] . " " . $row['lastname'] . "</h4>";
echo "<p>" . $row['age']. "Yrs," . $row['religion'] . "</p>";
echo "<h5>" . "View Full Profile" . "</h5>";
echo "</li>";
echo "</a>";
echo "</ul>";
echo "</div class=\"test\">"; //right end
// end of right side
$c_count = '1';
}
echo "</div>"; //row end
} //loop end
}//end of if
?>
</div>
</div>
<!-- Match Right Starts -->
<div class="col-md-3 match_right">
<?php include_once("matchright.php");?>
</div>
<!-- Match Right ends -->
<div class="clearfix"> </div>
</div>
</div>
<?php include_once("footer.php");?>
<!-- FlexSlider -->
<link href="css/flexslider.css" rel='stylesheet' type='text/css' />
<script defer src="js/jquery.flexslider.js"></script>
<script type="text/javascript">
$(function(){
SyntaxHighlighter.all();
});
$(window).load(function(){
$('.flexslider').flexslider({
animation: "slide",
start: function(slider){
$('body').removeClass('loading');
}
});
});
</script>
<!-- FlexSlider -->
</body>
</html>