-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin_adminview.php
More file actions
114 lines (102 loc) · 3.46 KB
/
admin_adminview.php
File metadata and controls
114 lines (102 loc) · 3.46 KB
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
<?php
include("connect.php");
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>adminview_admin</title>
<style>
* {
background-color: #000000;
color: #ffffff;
margin-top: 20px;
}
.link {
border: 1px solid #3ff7f1d7;
border-radius: 3px;
padding: 10px 27px;
background-color: #3ff7f1d7;
width: 200px;
height: 30px;
margin-left: 20px;
text-decoration: none;
font-size: 19px;
font-weight: 550;
color: #000000;
}
h2 {
font-family: algerian;
}
.link:hover {
background-color: #0ef9f1;
}
table {
width: 100%;
justify-content: center;
align-items: center;
}
table th {
height: 50px;
font-size: 20px;
width: 45px;
}
table td {
height: 40px;
font-size: 20px;
width: 45px;
}
</style>
</head>
<body>
<div class="form">
<div>
<a class="link" href="add_admin.php">Click To Add Admin</a>
</div>
<center>
<h2>View Records</h2>
</center>
<table width="100%" border="1" style="border-collapse:collapse;">
<thead>
<tr>
<th><strong>S No.</strong></th>
<th><strong>admin_id</strong></th>
<th><strong>username</strong></th>
<th><strong>email</strong></th>
<th><strong>password</strong></th>
<th><strong>Full Name</strong></th>
<th><strong>mobile</strong></th>
<th><strong>type</strong></th>
<th><strong>Edit</strong></th>
<th><strong>Delete</strong></th>
</tr>
</thead>
<tbody>
<?php
$count = 1;
$sel_query = "Select * from admin ORDER BY admin_id asc;";
$result = mysqli_query($con, $sel_query);
while ($row = mysqli_fetch_assoc($result)) { ?>
<tr>
<td align="center"><?php echo $count; ?></td>
<td align="center"><?php echo $row["admin_id"]; ?></td>
<td align="center"><?php echo $row["username"]; ?></td>
<td align="center"><?php echo $row["email"]; ?></td>
<td align="center"><?php echo $row["password"]; ?></td>
<td align="center"><?php echo $row["fullName"]; ?></td>
<td align="center"><?php echo $row["mobile"]; ?></td>
<td align="center"><?php echo $row["type"]; ?></td>
<td align="center">
<a href="edit_admin.php?admin_id=<?php echo $row["admin_id"]; ?>">Edit</a>
</td>
<td align="center">
<a href="delete_admin.php?admin_id=<?php echo $row["admin_id"]; ?>">Delete</a>
</td>
</tr>
<?php $count++;
} ?>
</tbody>
</table>
</div>
</body>
</html>