-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanage_teacher.php
More file actions
100 lines (79 loc) · 2.65 KB
/
Copy pathmanage_teacher.php
File metadata and controls
100 lines (79 loc) · 2.65 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
<?php
session_start();
if(isset($_SESSION['uname']))
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<title>Show Teacher Info</title>
</head>
<body>
</div>
<h1> </h1>
<center><h2 style="-webkit-text-fill-color:hsl(234, 92%, 33%);font-family:sans-serif ;"><b>Teachers Information</b></h2></center>
<div class="container my-5">
<button class="btn btn-primary"><a href="teacher_registration.php" class="text-light"> Add New Teacher</a></button>
<button class="btn btn-primary"><a href="admin_homepage.php" class="text-light">Back</a></button><br>
<table class="table table-striped table-hover my-5" border= "3">
<thead>
<tr>
<th scope="col">Serial Number</th>
<th scope="col">First Name</th>
<th scope="col">Last Name</th>
<th scope="col">Username</th>
<th scope="col">Gender</th>
<th scope="col">Phone Number</th>
<th scope="col">Address</th>
<th scope="col">Password</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody>
<?php
@include 'dbcon.php';
$sql=" SELECT *FROM teacher_registration";
$result=mysqli_query($conn,$sql);
if($result)
{
while($row=mysqli_fetch_assoc($result))
{
$t_id=$row['t_id'];
$fname=$row['fname'];
$lname=$row['lname'];
$uname=$row['uname'];
$gender=$row['gender'];
$phone=$row['phone'];
$address=$row['address'];
$password=$row['password'];
echo '<tr>
<th scope="row">'.$t_id.'</th>
<td>'. $fname.'</td>
<td>'. $lname.'</td>
<td>'. $uname.'</td>
<td>'. $gender.'</td>
<td>'. $phone.'</td>
<td>'. $address.'</td>
<td>'. $password.'</td>
<td>
<button class="btn btn-primary"><a href="update_teacher.php?updatet_id='.$t_id.' " class="text-light">Update</a></button>
<button class="btn btn-danger"><a href="delete_teacher.php?deletet_id='.$t_id.' " class="text-light">Delete</a></button>
</td>
</tr>';
}
}
?>
</tbody>
</table>
</div>
<footer class="footer">
<center>© copyright @ 2023 by <span>Code Lab</span> | all rights reserved!</center>
</footer>
<!-- custom js file link -->
<script src="JavaScript_Student/script.js"></script>
</body>
</html>