-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpharmmainpage.php
86 lines (66 loc) · 1.99 KB
/
pharmmainpage.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="table1.css">
<link rel="stylesheet" type="text/css" href="nav2.css">
<title>
Pharmacist Dashboard
</title>
</head>
<style>
body {font-family:Arial;}
</style>
<body>
<div class="sidenav">
<h2 style="font-family:Arial; color:white; text-align:center;"> Pharmacy Management System </h2>
<a href="pharmmainpage.php">Dashboard</a>
<a href="pharm-inventory.php">View Inventory</a>
<a href="pharm-pos1.php">Add New Sale</a>
<button class="dropdown-btn">Customers
<i class="down"></i>
</button>
<div class="dropdown-container">
<a href="pharm-customer.php">Add New Customer</a>
<a href="pharm-customer-view.php">View Customers</a>
</div>
</div>
<?php
include "config.php";
session_start();
$sql="SELECT E_FNAME from EMPLOYEE WHERE E_ID='$_SESSION[user]'";
$result=$conn->query($sql);
$row=$result->fetch_row();
$ename=$row[0];
?>
<div class="topnav">
<a href="logout1.php">Logout(signed in as <?php echo $ename; ?>)</a>
</div>
<center>
<div class="head">
<h2> PHARMACIST DASHBOARD </h2>
</div>
</center>
<a href="pharm-pos1.php" title="Add New Sale">
<img src="carticon1.png" style="padding:8px;margin-left:550px;margin-top:40px;width:200px;height:200px;border:2px solid black;" alt="Add New Sale">
</a>
<a href="pharm-inventory.php" title="View Inventory">
<img src="inventory.png" style="padding:8px;margin-left:100px;margin-top:40px;width:200px;height:200px;border:2px solid black;" alt="Inventory">
</a>
</body>
<script>
var dropdown = document.getElementsByClassName("dropdown-btn");
var i;
for (i = 0; i < dropdown.length; i++) {
dropdown[i].addEventListener("click", function() {
this.classList.toggle("active");
var dropdownContent = this.nextElementSibling;
if (dropdownContent.style.display === "block") {
dropdownContent.style.display = "none";
}
else {
dropdownContent.style.display = "block";
}
});
}
</script>
</html>