-
Notifications
You must be signed in to change notification settings - Fork 0
/
donor-list.php
99 lines (75 loc) · 1.98 KB
/
donor-list.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
<?php
include('connection.php');
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>
Donor Registration
</title>
<link rel="stylesheet" type="text/css" href="css/s1.css">
<style type="text/css">
td{
width: 200px;
height: 50px;
}
#body{
background-color: olive;
}
#header{
margin-top: 60px;
}
</style>
</head>
<body>
<div id="full">
<div id="inner_full">
<div id="header"><h2><a href="admin-home.php" style="text-decoration: none;color: black;">Blood Bank</a></h2></div>
<div id="body">
<br>
<?php
$un=$_SESSION['un'];
if(!$un){
header("Location:index.php");
}
?>
<h1>Donor List</h1>
<center><div id="form">
<table>
<tr>
<td><center><b>Name</b></center></td>
<td><center><b>Father's Name</b></center></td>
<td><center><b>Address</b></center></td>
<td><center><b>City</b></center></td>
<td><center><b>Age</b></center></td>
<td><center><b>Blood Group</b></center></td>
<td><center><b>Mobile No</b></center></td>
<td><center><b>E-mail</b></center></td>
</tr>
<?php
$q=$db->query("SELECT *FROM donor_registration");
while($r1=$q->fetch(PDO::FETCH_OBJ))
{
?>
<tr>
<td><center><?=$r1->name; ?></center></td>
<td><center><?=$r1->fname; ?></center></td>
<td><center><?=$r1->address; ?></center></td>
<td><center><?=$r1->city; ?></center></td>
<td><center><?=$r1->age; ?></center></td>
<td><center><?=$r1->bgroup; ?></center></td>
<td><center><?=$r1->mno; ?></center></td>
<td><center><?=$r1->email; ?></center></td>
</tr>
<?php
}
?>
</table>
</div></center>
</div>
<div id="footer"><p align="center"><a href="logout.php" style="font-size: 25px;"><font color="black">Logout</font></a></p></div>
</div>
</div>
</body>
</html>