-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.php
177 lines (160 loc) · 4.98 KB
/
admin.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
<link rel="stylesheet" href="common.css">
<style>
body {
background-image: url('images/5.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
</style>
<div class="nav">
<div class="topnav">
<a class="active" href="welcome.html">Home</a>
<a href="contact.html">Contact</a>
</div>
</div>
<br><br>
<?php
$mysql_id=mysqli_connect("localhost","root","","bloodbank_db");
$query="SELECT * FROM `EMPLOYEE_INFO` ;";
$res=mysqli_query($mysql_id,$query);
?>
<table align="center" border="1px" style ="color:yellow;background-color:black;opacity:0.7; line-height:30px; line-height:30px; line-height:30px;">
<tr>
<th colspan="9">
<h2>Delete employee's account</h2>
</th>
</tr>
<tr>
<th>ID</th>
<th>NAME</th>
<th>Date of birth</th>
<th>Email</th>
<th>Mobile number</th>
<th>SEX</th>
<th>Designation</th>
<th>Passwords</th>
</tr>
<?php
while($rows=mysqli_fetch_assoc($res))
{
?>
<tr>
<td><?php echo $rows['ID'];?></td>
<td><?php echo $rows['NAME'];?></td>
<td><?php echo $rows['DOB']; ?></td>
<td><?php echo $rows['EMAIL']; ?></td>
<td><?php echo $rows['PHONE']; ?></td>
<td><?php echo $rows['SEX'];?></td>
<td><?php echo $rows['DESIGNATION']; ?></td>
<td><?php echo $rows['PASSWORDS']; ?></td>
</tr>
<?php
}
?>
</table>
<center><form action="employee del.php" method="POST">
<div class="emp">
<label for="">Deleteing employee</label>
<input type="text" name="delete_emp_id" class="form-control">
</div>
<div class="froum-group mb-3">
<button type="submit" name="emp_delete_btn" class="btn btn-primary">Delete Data</button>
<br>
</div>
<br>
</form></center>
<?php
$mysql_id=mysqli_connect("localhost","root","","bloodbank_db");
$query="SELECT * FROM `DONOR_STATIC`; ";
$res=mysqli_query($mysql_id,$query);
?>
<table align="center" border="1px"style ="color:red;background-color:black;opacity:0.7; line-height:30px; line-height:30px; line-height:30px;">
<tr>
<th colspan="8">
<h2>Delete donor's account</h2>
</th>
</tr><tr>
<th>DONOR ID</th>
<th>DONOR NAME</th>
<th>GENDER</th>
<th>BIRTH DATE</th>
<th>ADDRESS</th>
<th>MOBILE NUMBER</th>
<th>EMAIL</th>
<th>BLOOD GROUP</th>
</tr>
<?php
while($rows=mysqli_fetch_assoc($res))
{
?>
<tr>
<td><?php echo $rows['ID']; ?></td>
<td><?php echo $rows['NAME']; ?></td>
<td><?php echo $rows['SEX']; ?></td>
<td><?php echo $rows['DOB']; ?></td>
<td><?php echo $rows['ADDRESS']; ?></td>
<td><?php echo $rows['PHONE']; ?></td>
<td><?php echo $rows['EMAIL']; ?></td>
<td><?php echo $rows['BLOODGROUP']; ?></td>
</tr>
<?php
}
?>
</table>
<center><form action="donor del.php" method="POST">
<div class="emp">
<label for="">Deleteing donor</label>
<input type="text" name="delete_don_id" class="form-control">
</div>
<div class="froum-group mb-3">
<button type="submit" name="don_delete_btn" class="btn btn-primary">Delete Data</button><br>
</div>
<br>
</form></center>
<?php
$mysql_id=mysqli_connect("localhost","root","","bloodbank_db");
$query="SELECT * FROM `RECEIVER_STATIC` ;";
$res=mysqli_query($mysql_id,$query);
?>
<table align="center" border="1px" style ="color:white;background-color:black;opacity:0.7; line-height:30px; line-height:30px; line-height:30px;">
<tr>
<th colspan="9">
<h2>Delete receiver's account</h2>
</th>
</tr>
<tr>
<th>ID</th>
<th>NAME</th>
<th>Date of birth</th>
<th>Email</th>
<th>Mobile number</th>
<th>SEX</th>
<th>Address</th>
</tr>
<?php
while($rows=mysqli_fetch_assoc($res))
{
?>
<tr>
<td><?php echo $rows['ID'];?></td>
<td><?php echo $rows['NAME'];?></td>
<td><?php echo $rows['DOB']; ?></td>
<td><?php echo $rows['EMAIL']; ?></td>
<td><?php echo $rows['PHONE']; ?></td>
<td><?php echo $rows['SEX'];?></td>
<td><?php echo $rows['ADDRESS']; ?></td>
</tr>
<?php
}
?>
</table>
<center><form action="receiver del.php" method="POST">
<div class="emp">
<label for="">Deleteing receiver</label>
<input type="text" name="delete_rev_id" class="form-control">
</div>
<div class="froum-group mb-3">
<button type="submit" name="rev_delete_btn" class="btn btn-primary">Delete Data</button>
</div>
</form></center>