-
Notifications
You must be signed in to change notification settings - Fork 0
/
staff_view.php
53 lines (45 loc) · 1.4 KB
/
staff_view.php
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
<?php
include"database.php";
session_start();
if(!isset($_SESSION["AID"]))
{
echo"<script>window.open('index.php?mes=Access not granted','_self');</script>";
}
$sql="SELECT * FROM staff WHERE TID={$_GET["id"]}";
$res=$db->query($sql);
if($res->num_rows>0)
{
$row=$res->fetch_assoc();
}
?>
<!DOCTYPE html>
<html>
<head>
<title>ASP - Admin</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<?php include"navbar.php";?><br>
<div id="section">
<?php include"sidebar.php";?><br><br><br>
<h3 class="text">Welcome <?php echo $_SESSION["ANAME"]; ?></h3><br><hr><br>
<div class="content1">
<h3 > View Teacher Details</h3><br>
<div class="ibox">
<img src="<?php echo $row["IMG"]; ?>" height="230" width="230">
</div>
<div class="tsbox">
<table border="1px">
<tr><th>Name </th> <td> <?php echo $row["TNAME"]; ?></td></tr>
<tr><th>Qualification </th> <td> <?php echo $row["QUAL"]; ?></td></tr>
<tr><th>Salary </th> <td> <?php echo $row["SAL"]; ?></td></tr>
<tr><th>Phone No </th> <td> <?php echo $row["PNO"]; ?></td></tr>
<tr><th>E - Mail </th> <td> <?php echo $row["MAIL"]; ?></td></tr>
<tr><th>Address </th> <td> <?php echo $row["PADDR"]; ?></td></tr>
</table>
</div>
</div>
</div>
<?php include"footer.php";?>
</body>
</html>