-
Notifications
You must be signed in to change notification settings - Fork 3
/
full-profile.php
140 lines (117 loc) · 4.13 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
<?php
session_start();
include("includes/config.php");
$mysql_hostname = "localhost";
$mysql_user = "root";
$mysql_password = "";
$mysql_database = "hostel";
$prefix = "";
$bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die("Could not connect database");
mysql_select_db($mysql_database, $bd) or die("Could not select database");
?>
<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= mysql_query("SELECT * FROM registration where emailid = '".$_GET['id']."'");
while($row=mysql_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 colspan="2" align="left" class="heading" style="color: red;">Personal Info » </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">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>
</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>