-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadminfacdashboard.php
More file actions
87 lines (80 loc) · 3.5 KB
/
Copy pathadminfacdashboard.php
File metadata and controls
87 lines (80 loc) · 3.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<title>Faculty management</title>
</head>
<body>
<div class="container">
<div class="jumbotron">
<div class="row">
<div class="col-md-6">
<h2>Faculty management</h2>
</div>
<div class="col-md-6">
<a href="adminfacinsertdata.php" class="btn btn-success" style="margin-left: 80%;"> ADD DATA </a>
</div>
<div class="col-md-12">
<hr>
</div>
</div>
<?php
$connection = mysqli_connect("localhost","root","");
$db = mysqli_select_db($connection, 'srms');
$query = "SELECT * FROM proflogintable";
$query_run = mysqli_query($connection, $query);
?>
<div class="row">
<div class="col-md-12">
<table class="table table-bordered" style="background-color: white;">
<thead class="table-dark">
<tr>
<th> ID </th>
<th> Professor Name </th>
<th> Action </th>
</tr>
</thead>
<tbody>
<?php
if($query_run)
{
while($row = mysqli_fetch_array($query_run))
{
?>
<tr>
<th> <?php echo $row['id']; ?> </th>
<th> <?php echo $row['username']; ?> </th>
<th>
<form action="adminfacdlt.php" method="post">
<input type="hidden" name="id" value="<?php echo $row['id'] ?>">
<input type="submit" name="delete" class="btn btn-danger" value="DELETE">
</form>
</th>
</tr>
<?php
}
}
else
{
?>
<tr>
<th colspan="6"> No Record Found </th>
</th>
<?php
}
?>
</tbody>
</table>
</div>
<div class="col-md-6">
<a href="admindashboard.php" class="btn btn-success" style="margin-left: 80%;"> Back </a>
<a href="logout.php" class="btn btn-success" style=" margin-top: 5%;margin-left: 80%;"> Logout </a>
</div>
</div>
</div>
</div>
</body>
</html>