This repository was archived by the owner on Aug 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathprofilepub.php
110 lines (106 loc) · 4.05 KB
/
profilepub.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
<!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=utf-8" />
<title>Profile</title>
<style type="text/css">
<!--
.style1 {font-size: x-large}
-->
</style>
</head>
<body>
<?php
// Class and Age calculation
require "./calculate_class.php";
require "./cnn.php";
$regid = $_GET['regid'];
$sql = "select * from registration WHERE Regid=$regid ";
$rst = mysql_query($sql);
$row = mysql_fetch_array($rst);
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="900" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="900" colspan="3"><img alt="Title image" src="images/title.jpg" width="1000" height="121" /></td>
</tr>
<tr bgcolor="#CC9933">
<td height="292" colspan="3"><form name="formcheck" id="formcheck" onsubmit="" action="" method="post">
<table width="888" border="0" align="center" cellpadding="5" cellspacing="0" >
<tr>
<td height="56" colspan="11"><div align="center"><span class="style3 style1"><strong><?php echo $row['Name']?>'s Profile</strong></span></div></td>
</tr>
<tr>
<td width="104">Name</td>
<td width="1"> </td>
<td colspan="0"><label><?php echo $row['Name']; ?></label></td>
<td width="1"> </td>
<td width="133">Contact No</td>
<td width="136"><label><?php
if($row['Publish'] == 1){
echo $row['ContactNo'];
} else {
echo "Requested Privacy";
}
?></label></td>
</tr>
<tr>
<td height="29">Age</td>
<td> </td>
<td colspan="0"><label><?php echo getAge(date2timestamp($row['DOB'])); ?></label></td>
<td> </td>
<td>Email ID</td>
<td colspan="3"><label><?php echo $row['Emailid']; ?></label></td>
</tr>
<tr>
<td height="37">Blood Group</td>
<td rowspan="2"> </td>
<?php
if($row['Gender'] == 1)
$gender = "Male";
else
$gender = "Female";
?>
<td width="92"><?php echo $row['Bloodgroup']; ?></td>
<td> </td>
<td width="105" height="30">
<?php
// If designation != Student, then print Designation else class
if ($row['Designation'] != 'Student')
echo 'Designation';
else {
echo 'Class';
}
?>
</td>
<td width="65"><?php echo calculate_class($row['Regid']); ?></td>
<td rowspan="0"></td>
<td>District</td>
<td colspan="0"><label><?php echo $row['District']; ?></label></td>
</tr>
<tr>
<td height="29">Gender</td>
<td width="92"><?php echo $gender; ?></td>
<td> </td>
<td height="29">Weight</td>
<td width="65"><?php echo $row['Weight']; ?> Kg</td>
<td>Address</td>
<td colspan="0"><?php echo $row['Post']; ?></td>
</tr>
<tr>
<td height="32">Last Donation</td>
<td></td>
<td><?php echo change_date_format($row['LastDonation']); ?></td>
</tr>
</table>
</form></td>
</tr>
<tr bgcolor="#990000">
<td height="15" colspan="3"><div align="right"><span class="style4"><a href="main.php">HOME</a> </span> </div></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>