-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabpositiverecipient.php
90 lines (68 loc) · 4.38 KB
/
abpositiverecipient.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.25/css/dataTables.bootstrap4.min.css">
<div style="background-image:url('inventory.jpg'); height: 300px;">
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<h1><center><font color="white" size="20px">AB+</font><font size="20px"> BLOOD</font><font color="white" size="20px"> INVENTORY</font></center></h1>
<h3><center><font color="white" size="5px">RECIPIENT</font><font size="5px"> RESISTER</font><font color="white" size="5px"> LIST</font></center></h3>
</div>
</head>
<body>
<?php
include 'recipientconfig.php';
error_reporting(0);
session_start();
$query = " select * from abpositiverecipientdetail ";
$query_run =mysqli_query($conn,$query);
?>
<table id="datatableid" class="table table-dark table-hover">
<thead>
<tr>
<th scope="col"><h4>ID</h4></th>
<th scope="col"><h4>RECIPIENT NAME</h4></th>
<th scope="col"><h4>EMAIL</h4></th>
<th scope="col"><h4>MOBILE NO.</h4></th>
<th scope="col"><h4>ADDRESS</h4></th>
</tr>
</thead>
<?php
if($query_run)
{
foreach($query_run as $row)
{
?>
<tbody>
<tr>
<td><?php echo $row['id']; ?></td>
<td><?php echo $row['abpos_recipient_name']; ?> </td>
<td><?php echo $row['abpos_recipient_email']; ?> </td>
<td><?php echo $row['abpos_recipient_mobno']; ?> </td>
<td><?php echo $row['abpos_recipient_address']; ?> </td>
</tr>
</tbody>
<?php
}
}
else
{
echo "No Records Found";
}
?>
<script src="https://cdn.datatables.net/1.10.25/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.25/js/dataTables.bootstrap4.min.js"></script>
<script>
$(document).ready(function() {
$('#datatableid').DataTable();
} );
</script>
</table>
</body>
</html>