-
Notifications
You must be signed in to change notification settings - Fork 0
/
view.php
85 lines (69 loc) · 2.3 KB
/
view.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
<?php// include("include/config.php");?>
<?php include("include/header.php");?>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<script src="js/bootstrap.min.js"></script>
<a href="index.php"><li> Home </li> </a>
<a href="donor.php"><li class='active'> Donors </li></a>
<a href="registration.php" target="_blank"><li> Apply </li> </a>
<a href="gallery.php"><li> Gallery </li> </a>
<a href="rules.php"><li> Rules </li> </a>
<a href="login.php"><li> Login </li></a>
</ul>
<div style="margin: 50px 0px 50px 0px ; border: 2px solid black;">
<h1> Donor Profile </h1>
<?php $sql="select * from user where id='$_REQUEST[id]' ";
$res=mysql_query($sql);
$arr=mysql_fetch_array($res);
?>
<tr>
<td><img src="images/donors/<?php echo $arr['photo']; ?>" height="150" width="180" style="border:2px solid black;" alt="Donor's Picture"></td>
<td></td>
</tr>
<table style="text-align: center; margin: 15px 0px 0px 0px; font-family: times new roman; font-size: 18px" class="table table-hover">
<tr>
<td>Name</td>
<td> <?php echo $arr['full_name']; ?></td>
</tr>
<tr>
<td>Father Name</td>
<td> <?php echo $arr['father_name']; ?></td>
</tr>
<tr>
<td>Mother Name</td>
<td><?php echo $arr['mother_name']; ?></td>
</tr>
<tr>
<td>Phone</td>
<td><?php echo $arr['phone']; ?>
</tr>
<tr>
<td>Email</td>
<td><?php echo $arr['email']; ?>
</tr>
<tr>
<td>Blood Group</td>
<td><?php
if($arr['blood_group']=="A+"){ echo "A(+ve)"; }
if($arr['blood_group']=="A-"){ echo "A(-ve)"; }
if($arr['blood_group']=="B+"){ echo "B(+ve)"; }
if($arr['blood_group']=="B-"){ echo "B(-ve)"; }
if($arr['blood_group']=="O+"){ echo "O(+ve)"; }
if($arr['blood_group']=="O-"){ echo "O(-ve)"; }
if($arr['blood_group']=="AB+"){ echo "AB(+ve)"; }
if($arr['blood_group']=="AB-"){ echo "AB(-ve)"; }
?>
</td>
</tr>
<tr>
<td>Gender</td>
<td><?php echo $arr['gender']; ?>
</tr>
<tr>
<td>Status</td>
<td><?php echo $arr['status']; ?>
</td>
</tr>
</table>
</div>
<div>
<?php include("include/footer.php"); ?> </div>