-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccount.php
66 lines (66 loc) · 4.84 KB
/
account.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
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
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>CC Couriers</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">
<link rel="icon" type="image/png" sizes="32x32" href="Images/favicon-32x32.png">
<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">
</head>
<body style="font-family: Arial, Helvetica, sans-serif;">
<div ><img src="Images/logo.png" id="logo" style="height: 100px !important; margin-top: 10px !important;" ></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="background"></div>
<div class="container text-center" style="width : 50%; background-color: rgba(255, 255, 255, 0.7); margin-top: 10px; border-radius:15px; padding: 5px;">
<h3 >Account Details</h3>
<img src="Images/userlogo2.png" style="margin:0 auto; height: 140px; width: 140px; margin-bottom: 15px;">
<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;">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>
<div class="container-fluid text-center mt-5" style="background-color: rgba(255, 255, 255, 0.7); padding: 20px; position: relative;">
<div class="i-bar" style="display: flex; flex-direction: row; flex-wrap: wrap; justify-content:center; margin-bottom: 2em;">
<strong>Janesh Walia<a class="fa fa-github" href="https://github.com/Janesh7" target=blank style="border: none; text-decoration: none; margin: 0em 0.5em; color:black; font-size: xx-large;"></a></strong>
<a class="fa fa-envelope" href="mailto:[email protected]" style="border: none; text-decoration: none; margin: 0em 0.5em; color:black; font-size: xx-large;"></a>           
<strong>Gagan S<a class="fa fa-github" href="https://github.com/Astraxx04" target=blank style="border: none; text-decoration: none; margin: 0em 0.5em; color:black; font-size: xx-large;"></a></strong>
<a class="fa fa-envelope" href="mailto:[email protected]" style="border: none; text-decoration: none; margin: 0em 0.5em; color:black; font-size: xx-large;"></a>
</div>
<p class="credit" style="font-size: 20px; font-stretch: 3px; text-align: center; color: black;">© CC COURIERS</p>
</div>
</body>
</html>