-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadminwelcome.php
More file actions
110 lines (96 loc) · 2.82 KB
/
Copy pathadminwelcome.php
File metadata and controls
110 lines (96 loc) · 2.82 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
<?php
session_start();
if ($_SESSION['status'] != "Active") {
header("location:login.html");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>DS</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="index.css">
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
</head>
<body>
<!-- navbar -->
<header class="header">
<nav class="navbar">
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Contact</a>
<a href="#">Help</a>
<a href="login.html">Log out</a>
</nav>
<div class="company">
<h2 class="logo"></i>DOCSAFE</h2>
</div>
</header>
<!-- login -->
<div class="background"></div>
<div class="container">
<center><br>
<div class="des">
<p>User Files<p>
</div>
<br>
<table>
<tr>
<th>First Name</th>
<th>Last name</th>
<th>Status</th>
<th>Action</th>
</tr>
<!-- <tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td>Germany</td>
<td><button class="btn">verify</button></td>
<tr>
<td>Centro comercial Moctezuma</td>
<td>Francisco Chang</td>
<td>Mexico</td>
<td><button class="btn">verify</button></td>
</tr>
<tr>
<td>Ernst Handel</td>
<td>Roland Mendel</td>
<td>Austria</td>
<td><button class="btn">verify</button></td>
</tr> -->
<tbody>
<?php
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "";
$db = "db";
$conn = new mysqli($dbhost,$dbuser,$dbpass,$db)
or die("Connection Failes: %s \n". $conn->error);
$sql="SELECT * FROM `user` WHERE priv=1";
$result = $conn->query($sql);
if($result->num_rows > 0){
// Data starts from here
while($row = $result->fetch_assoc())
{
echo "<tr>
<td>" . $row['fname'] . "</td>
<td>" . $row['lname'] . "</td>
<td>" . $row['validation'] . "</td>
<td><button><a class='btn' href='verify.php?id=" . $row['id'] . "'>verify</a></button></td>
</tr>";
}
}
else {
echo "0 records";
}
$conn->close();
?>
</tbody>
</table></center>
</div>
<!-- SIGN UP FORM CREATION -->
<script src="index.js"></script>
</body>
</html>