forked from neyamulhasan/DropEx-Logistics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaccount.php
More file actions
95 lines (95 loc) · 4.55 KB
/
Copy pathaccount.php
File metadata and controls
95 lines (95 loc) · 4.55 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
<?php
session_start();
include("db_connect.php");
session_start();
$id = $_SESSION['id'];
$sql = "SELECT * FROM staff WHERE StaffID='$id'";
$result = mysqli_query($conn, $sql);
$staff = mysqli_fetch_assoc($result);
?>
<!DOCTYPE html>
<html>
<head>
<title>DropEx</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="style/bootstrap.css">
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="style/index_styles.css">
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body {
font-family: 'Roboto', sans-serif;
background: linear-gradient(to right, #6a11cb, #2575fc);
color: #333;
}
.navbar {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.container {
background-color: rgba(255, 255, 255, 0.9);
border-radius: 15px;
padding: 20px;
margin-top: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
table {
margin-top: 20px;
}
table td {
padding: 10px;
}
footer {
text-align: center;
padding: 20px;
background: #0056b3;
color: #fff;
margin-top: 20px;
border-radius: 0 0 15px 15px;
}
footer p {
margin: 0;
font-size: 0.9em;
}
</style>
</head>
<body>
<div class="text-center"><img src="Images/logo.png" id="logo" style="height: 100px; margin-top: 10px;" ></div>
<nav class="navbar navbar-toggleable-md navbar-expand-lg navbar-default navbar-light mb-10" style="background-color: rgba(255, 255, 255, 0.8);">
<div class="container">
<button class="navbar-toggler text-dark" data-toggle="collapse" data-target="#mainNav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="mainNav">
<div class="navbar-nav" style="margin: 0 auto; font-size: large;">
<a class="nav-item nav-link text-dark mr-5" href="staff.php">Back</a>
<a class="nav-item nav-link text-dark" href="logout.php">Logout</a>
</div>
</div>
</div>
</nav>
<div class="container text-center">
<h3>Account Details</h3>
<img src="Images/pp2.png" id="logo" style="height: 90px; border-radius: 50%; object-fit: cover;">
<table class="text-left table table-bordered table-striped">
<tr><td style="font-weight:bold;">Name</td><td><?php echo $staff['Name']; ?></td></tr>
<tr><td style="font-weight:bold;">Staff ID</td><td><?php echo $staff['StaffID']; ?></td></tr>
<tr><td style="font-weight:bold;">Designation</td><td><?php echo $staff['Designation']; ?></td></tr>
<tr><td style="font-weight:bold;">Branch</td><td><?php echo $staff['branch']; ?></td></tr>
<tr><td style="font-weight:bold;">Gender</td><td><?php echo $staff['Gender']; ?></td></tr>
<tr><td style="font-weight:bold;">DOB</td><td><?php echo $staff['DOB']; ?></td></tr>
<tr><td style="font-weight:bold;">DOJ</td><td><?php echo $staff['DOJ']; ?></td></tr>
<tr><td style="font-weight:bold;">Email</td><td><?php echo $staff['Email']; ?></td></tr>
<tr><td style="font-weight:bold;">Mobile</td><td><?php echo $staff['Mobile']; ?></td></tr>
<tr><td style="font-weight:bold;">Credits</td><td><?php echo $staff['Credits']; ?></td></tr>
</table>
</div>
<footer>
<p>© 2025 DropEx. All Rights Reserved. | Delivering Beyond Borders</p>
</footer>
</body>
</html>