-
Notifications
You must be signed in to change notification settings - Fork 0
/
full-profile.php
262 lines (229 loc) · 8.18 KB
/
full-profile.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
<?php
session_start();
//include("includes/config.php");
define('DB_SERVER','localhost');
define('DB_USER','root');
define('DB_PASS' ,'');
define('DB_NAME', 'hostel');
$con = mysqli_connect(DB_SERVER,DB_USER,DB_PASS,DB_NAME);
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
?>
<script language="javascript" type="text/javascript">
function f2()
{
window.close();
}
function f3()
{
window.print();
}
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Student Information</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="hostel.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0">
<?php
$ret= mysqli_query($con,"SELECT * FROM registration where emailid = '".$_GET['id']."'");
while($row=mysqli_fetch_array($ret))
{
?>
<tr>
<td colspan="2" align="center" class="font1"> </td>
</tr>
<tr>
<td colspan="2" align="center" class="font1"> </td>
</tr>
<tr>
<td colspan="2" class="font"><?php echo ucfirst($row['firstName']);?> <?php echo ucfirst($row['lastName']);?>'S <span class="font1"> information »</span> </td>
</tr>
<tr>
<td colspan="2" class="font">
<div align="right">Reg Date : <span class="comb-value"><?php echo $row['postingDate'];?></span></div></td>
</tr>
<tr>
<td colspan="2" class="heading" style="color: red;">Room Related Info » </td>
</tr>
<tr>
<td colspan="2" class="font1"><table width="100%" border="0">
<tr>
<td width="32%" valign="top" class="heading">Room no : </td>
<td class="comb-value1"><span class="comb-value"><?php echo $row['roomno'];?></span></td>
</tr>
<tr>
<td width="22%" valign="top" class="heading">Seater : </td>
<td class="comb-value1"><span class="comb-value"><?php echo $row['seater'];?></span></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Fees PM : </td>
<td class="comb-value1"><?php echo $fpm=$row['feespm'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Food Status: </td>
<td class="comb-value1"><?php if($row['foodstatus']==0)
{
echo "Without Food";
}
else
{
echo "With Food";
}
;?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Staying From: </td>
<td class="comb-value1"><?php echo $row['stayfrom'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Duration: </td>
<td class="comb-value1"><?php echo $dr=$row['duration'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Total Fee: </td>
<td class="comb-value1">
<?php if($row['foodstatus']==1)
{
$fd=2000;
echo (($dr*$fpm)+$fd);
}
else
{
echo $dr*$fpm;
}
?></td>
</tr>
<tr>
<td colspan="2" align="left" class="heading" style="color: red;">Personal Info » </td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Course: </td>
<td class="comb-value1"><?php echo $row['course'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Reg no: </td>
<td class="comb-value1"><?php echo $row['regno'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">First Name: </td>
<td class="comb-value1"><?php echo $row['firstName'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Middle name: </td>
<td class="comb-value1"><?php echo $row['middleName'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Last: </td>
<td class="comb-value1"><?php echo $row['lastName'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Gender: </td>
<td class="comb-value1"><?php echo $row['gender'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Contact No: </td>
<td class="comb-value1"><?php echo $row['contactno'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Email id: </td>
<td class="comb-value1"><?php echo $row['emailid'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Emergency Contact: </td>
<td class="comb-value1"><?php echo $row['egycontactno'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Guardian Name: </td>
<td class="comb-value1"><?php echo $row['guardianName'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Guardian Relation: </td>
<td class="comb-value1"><?php echo $row['guardianRelation'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Guardian Contact: </td>
<td class="comb-value1"><?php echo $row['guardianContactno'];?></td>
</tr>
<tr>
<td colspan="2" class="heading" style="color: red;">Correspondence Address » </td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Address: </td>
<td class="comb-value1"><?php echo $row['corresAddress'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">City: </td>
<td class="comb-value1"><?php echo $row['corresCIty'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">State: </td>
<td class="comb-value1"><?php echo $row['corresState'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Pincode: </td>
<td class="comb-value1"><?php echo $row['corresPincode'];?></td>
</tr>
<tr>
<td colspan="2" class="heading" style="color: red;">Permanent Address » </td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Address: </td>
<td class="comb-value1"><?php echo $row['pmntAddress'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">City: </td>
<td class="comb-value1"><?php echo $row['pmntCity'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">State: </td>
<td class="comb-value1"><?php echo $row['pmnatetState'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">Pincode: </td>
<td class="comb-value1"><?php echo $row['pmntPincode'];?></td>
</tr>
<tr>
<td width="12%" valign="top" class="heading">State: </td>
<td class="comb-value1"><?php echo $row['pmnatetState'];?></td>
</tr>
<?php } ?>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" align="right" ><form id="form1" name="form1" method="post" action="">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="14%"> </td>
<td width="35%" class="comb-value"><label>
<input name="Submit" type="submit" class="txtbox4" value="Prints this Document " onClick="return f3();" />
</label></td>
<td width="3%"> </td>
<td width="26%"><label>
<input name="Submit2" type="submit" class="txtbox4" value="Close this document " onClick="return f2();" />
</label></td>
<td width="8%"> </td>
<td width="14%"> </td>
</tr>
</table>
</form> </td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table>
</body>
</html>