-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfaculty_profile.php
More file actions
104 lines (81 loc) · 4.42 KB
/
faculty_profile.php
File metadata and controls
104 lines (81 loc) · 4.42 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
<?php
session_start();
if (!isset($_SESSION['logged_in_fac_id'])) {
echo '<script type="text/javascript"> location.href = "faculty_login.php" </script>';
} else {
$host = "localhost";
$username = "root";
$password = "";
$dbname = "hac";
$conn = new mysqli($host, $username, $password, $dbname);
include("sidebar_faculty.php");
$id = $_SESSION['logged_in_fac_id'];
$sql = "SELECT * FROM faculty where id ='$id'";
$result = $conn->query($sql);
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>FACULTY PROFILE</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"> -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--===============================================================================================-->
<link rel="icon" type="image/png" href="images_add/icons/favicon.ico" />
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor_add/bootstrap/css/bootstrap.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="fonts_add/font-awesome-4.7.0/css/font-awesome.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="fonts_add/iconic/css/material-design-iconic-font.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor_add/animate/animate.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor_add/css-hamburgers/hamburgers.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor_add/animsition/css/animsition.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor_add/select2/select2.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor_add/daterangepicker/daterangepicker.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor_add/noui/nouislider.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="css_add/util.css">
<link rel="stylesheet" type="text/css" href="css_add/main.css">
</head>
<body>
<div class="container-contact100" style="background-image: url('images_add/bg-01.jpg');">
<div class="wrap-contact100">
<table class="table table-hover">
<thead class="table-dark" style="background-color: black;">
<tr>
<th scope="col" colspan="2" style="text-align:center">PROFILE</th>
</tr>
</thead>
<tbody>
<?php
$row = $result->fetch_assoc();
echo "<tr><td>ID</td><td>" . $row["id"] . "</td>";
echo "<tr><td>NAME</td><td>" . $row["name"] . "</td>";
echo "<tr><td>AGE</td><td>" . $row["age"] . "</td>";
echo "<tr><td>GENDER</td><td>" . $row["gender"] . "</td>";
echo "<tr><td>BLOOD GROUP</td><td>" . $row["bloodGroup"] . "</td>";
echo "<tr><td>DEPARTMENT</td><td>" . $row["department"] . "</td>";
echo "<tr><td>JOIN DATE</td><td>" . $row["join_date"] . "</td>";
echo "<tr><td>PHONE</td><td>" . $row["phone"] . "</td>";
echo "<tr><td>DOB</td><td>" . $row["dob"] . "</td>";
?>
</tbody>
</table>
<form action="faculty.php" method="post">
<center><button type="submit" class="btn btn-outline-dark">BACK</button></center>
</form>
</div>
</div>
</body>
</html>