-
Notifications
You must be signed in to change notification settings - Fork 2
/
partner_preference.php
256 lines (243 loc) · 9.69 KB
/
partner_preference.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
<?php include_once("includes/basic_includes.php");?>
<?php include_once("functions.php"); ?>
<?php require_once("includes/dbconn.php");?>
<?php
if(isloggedin()){
//do nothing stay here
} else{
header("location:login.php");
}
$id=$_GET['id'];
writepartnerprefs($id);
///reading partnerprefs from db
$sql="SELECT * FROM partnerprefs WHERE custId = $id";
$result=mysqlexec($sql);
if($result){
$row=mysqli_fetch_assoc($result);
$agemin=$row['agemin'];
$agemax=$row['agemax'];
$marital_status=$row['maritalstatus'];
$complexion=$row['complexion'];
$height=$row['height'];
$diet=$row['diet'];
$religion=$row['religion'];
$caste=$row['caste'];
$sub_caste=$row['subcaste'];
$mother_tounge=$row['mothertounge'];
$education=$row['education'];
$occupation=$row['occupation'];
$country=$row['country'];
$descr=$row['descr'];
}
else{
echo mysqli_error($conn);
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Partner Prefs</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">Partner Prefernce</li>
</ul>
</div>
<div class="profile">
<div class="col-md-12 profile_left">
<div class="col_4">
<div class="bs-example bs-example-tabs" role="tabpanel" data-example-id="togglable-tabs">
<ul id="myTab" class="nav nav-tabs nav-tabs1" role="tablist">
<li role="presentation" class="active"><a href="#home" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true">Partner Preference</a></li>
</ul>
<form action="" method="post" name="partner">
<div id="myTabContent" class="tab-content">
<div role="tabpanel" class="tab-pane fade in active" id="home" aria-labelledby="home-tab">
<div class="tab_box">
<h1>My Ideal Partner would be</h1>
<p><textarea name="descr" rows="5" cols="150" Placeholder="Enter your message here"><?php echo $descr;?></textarea></p>
</div>
<div class="basic_1-left">
<table class="table_working_hours">
<tbody>
<tr class="opened">
<td class="day_label">Age :</td>
<td class="day_value">
<input type="text" name="agemin" value="<?php echo $agemin; ?>">to <input type="text" name ="agemax" value="<?php echo $agemax; ?>">
</td>
</tr>
<tr class="opened">
<td class="day_label">Marital Status :</td>
<td class="day_value">
<div class="select-block1">
<select name="maritalstatus">
<option value="<?php if($marital_status="Single"){echo "Single";} elseif ($marital_status="Married") {echo "Married";} else{echo "Divorced";}?>"><?php echo $marital_status;?></option>
<option value="Single">Single</option>
<option value="Married">Married</option>
<option value="Divorsed">Divorsed</option>
</select>
</div>
</td>
</tr>
<tr class="opened">
<td class="day_label">Complexion :</td>
<td class="day_value closed">
<div class="select-block1">
<select name="colour">
<option value="">Black</option>
<option value="">Fair</option>
<option value="">Normal</option>
</select>
</div>
</td>
</tr>
<tr class="opened">
<td class="day_label">Height</td>
<td class="day_value closed"><input type="text" id="edit-name" name="height" value="<?php echo $height;?>" size="60" maxlength="60" class="form-text">cm</td>
</tr>
<tr class="opened">
<td class="day_label">Diet :</td>
<td class="day_value closed"><div class="select-block1">
<select name="diet">
<option value="Veg">Veg</option>
<option value="Non Veg">Non Veg</option>
</select>
</div>
</td>
</tr>
<tr class="opened">
<td class="day_label">Religion :</td>
<td class="day_value closed"><span>
<div class="select-block1">
<select name="religion">
<option value="Not Applicable">Not Applicable</option>
<option value="Hindu">Hindu</option>
<option value="Christian">Christian</option>
<option value="Muslim">Muslim</option>
<option value="Jain">Jain</option>
<option value="Sikh">Sikh</option>
</select>
</div></span>
</td>
</tr>
<tr class="opened">
<td class="day_label">Caste :</td>
<td class="day_value closed">
<div class="select-block1">
<select name="caste">
<option value="Roman Cathaolic">Roman Cathaolic</option>
<option value="Latin Catholic">Latin Catholic</option>
<option value="Penthecost">Penthecost</option>
<option value="Mappila">Mappila</option>
<option value="Thiyya">Thiyya</option>
</select>
</div></td>
</tr>
<tr class="opened">
<td class="day_label">Mother Tongue :</td>
<td class="day_value closed">
<div class="select-block1">
<select name="mothertounge">
<option value="">Malayalam</option>
<option value="">Hindi</option>
<option value="">English</option>
</select>
</div>
</td>
</tr>
<tr class="opened">
<td class="day_label">Education :</td>
<td class="day_value closed"><div class="select-block1">
<select name="education">
<option value="Primary">Primary</option>
<option value="Tenth level">Tenth level</option>
<option value="+2">+2</option>
<option value="Degree">Degree</option>
<option value="PG">PG</option>
<option value="Doctorate">Doctorate</option>
</select>
</div>
</td>
</tr>
<tr class="opened">
<td class="day_label">Occupation :</td>
<td class="day_value closed"> <input type="text" id="edit-name" name="occupation" value="" size="60" maxlength="60" value="<?php echo $occupation;?>" class="form-text"></td>
</tr>
<tr class="opened">
<td class="day_label">Country of Residence :</td>
<td class="day_value closed">
<div class="select-block1">
<select name="country">
<option value="Not Applicable">Country</option>
<option value="Hindu">India</option>
<option value="Christian">China</option>
<option value="Muslim">UAE</option>
</select>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<input type="submit" value="Update Preferences">
</div>
</form>
</div>
</div>
</div>
<div class="clearfix"> </div>
</div>
</div>
</div>
<?php include_once("footer.php");?>
<!-- FlexSlider -->
<script defer src="js/jquery.flexslider.js"></script>
<link rel="stylesheet" href="css/flexslider.css" type="text/css" media="screen" />
<script>
// Can also be used with $(document).ready()
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide",
controlNav: "thumbnails"
});
});
</script>
</body>
</html>