-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin_access.php
More file actions
115 lines (106 loc) · 2.98 KB
/
admin_access.php
File metadata and controls
115 lines (106 loc) · 2.98 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
115
<? ob_start(); ?>
<?php
session_start();
ob_start();
include("config.php");
$admin="select*from users";
$query="select *from application";
$connect=mysqli_query($con,$query);
$connect_admin=mysqli_query($con,$admin);
//$data=mysqli_fetch_assoc($connect);
$num=mysqli_num_rows($connect); //check in database dava available or not
$num1=mysqli_num_rows($connect_admin);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Access</title>
<link href="style1.css" rel="stylesheet">
</head>
<body>
<div class="admin_head">
<h1>Admin Access</h1>
</div>
<h2>Users Details</h2>
<center>
<table id="user_table" align="center">
<tr>
<th>ID</th>
<th>NAME</th>
<th>EMAIL</th>
<th>USER NAME</th>
<th>PASSWORD</th>
<th>QUESTION</th>
<th>ANSWER</th>
</tr>
<?php
if($num1>0)
{
while($data=mysqli_fetch_assoc($connect_admin))
{
echo
"
<tr>
<td>".$data['ID']."</td>
<td>".$data['NAME']."</td>
<td>".$data['EMAIL']."</td>
<td>".$data['USERNAME']."</td>
<td>".$data['PASSWORD']."</td>
<td>".$data['QUESTION']."</td>
<td>".$data['ANSWER']."</td>
</tr>
";
}
}
?>
</table>
</center>
<h2>
Applicant Details
</h2>
<div class="split">
<center>
<table id="applicant_table">
<tr>
<th>ID</th>
<th>FIST NAME</th>
<th>LAST NAME</th>
<th>EMIAL</th>
<th>JOB NAME</th>
<th>ADDRESS</th>
<th>CITY</th>
<th>PINCODE</th>
<th>DATE</th>
<th>RESUME</th>
</tr>
<?php
if($num>0)
{
while($data=mysqli_fetch_assoc($connect))
{
echo
"
<tr>
<td>".$data['ID']."</td>
<td>".$data['FIRST']."</td>
<td>".$data['LAST']."</td>
<td>".$data['EMAIL']."</td>
<td>".$data['JOB']."</td>
<td>".$data['ADDRESS']."</td>
<td>".$data['CITY']."</td>
<td>".$data['PINCODE']."</td>
<td>".$data['DATE']."</td>
<td><a href='files/".$data['RESUME']."'>View</a></td>
</tr>
";
}
}
?>
</table>
</center>
</div>
</body>
</html>