-
Notifications
You must be signed in to change notification settings - Fork 3
/
adminInventory.php
134 lines (120 loc) · 4.6 KB
/
adminInventory.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?php
include('session.php');
$sql = 'SELECT * FROM sales';
$result = mysqli_query($db,$sql);
$rows = array();
while($row = mysqli_fetch_array($result)){
$rows[] = $row;
}
include('inventoryAction.php');
?>
<html>
<head>
<title>Admin Inventory</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="css/ionicons.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/dashboard.css">
<link rel="stylesheet" type="text/css" href="css/sales.css">
<script type="text/javascript">
var products = <?php echo json_encode( $rows ) ?>;
</script>
<script src="js/dashboard.js"></script>
<script src="js/sales.js"></script>
</head>
<body>
<div id="top-bar">
<nav>
<ul>
<li><a href="dashboard.php">Home</a></li>
<li><a href="comment.php">Message</a></li>
<li><a href="reference.php" target="_blank">About</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</nav>
</div>
<div id = "side-navagate-bar">
<div class = "toggle-btn" onclick="toggleSideBar()">
<span></span>
<span></span>
<span></span>
</div>
<ul>
<li><h2 id="logo">Lab Stock Management</h2></li>
<li><h6 class="fontsub text-light">Welcome <?php echo $login_session; ?></h6></li>
<li><a href="dashboard.php">Dashboard</a></li>
<li><a href="admininventory.php">Admin Inventory</a></li>
<ul><br>
<li><a href="currentstock.php">Current Stock</a></li>
<li><a href="orderplaced.php">Order Placed</a></li>
<li><a href="deadstock.php">Dead Stock</a></li>
</ul>
</ul>
</div>
<div id="block" class="maindiv">
<div id="main-area">
<div id="welcome">
<h1 class="fonthead text-light">Admin Inventory</h1>
<div class="row">
<!-- ./col -->
<div class="col-lg-3 col-xs-4 cell">
<div class="shadow p-4 mb-4 rounded-lg">
<!-- small box -->
<div class="info-box bg-info text-body img-rounded">
<div>
<h1><a href="currentstock.php" ><span class="info-box-icon box"><img src="img/available.png"></i></span></a></h1>
</div>
<div class="info-box-content">
<h1>
<a href="currentstock.php" class="text-light fontsub box">Current Stock</a>
</h1>
</div>
</div>
</div>
</div>
<!-- ./col -->
<div class="col-lg-3 col-xs-4 cell">
<div class="shadow p-4 mb-4 rounded-lg">
<!-- small box -->
<div class="info-box bg-warning text-body img-rounded">
<div>
<h1><a href="orderplaced.php" ><span class="info-box-icon box"><img src="img/order.png"></i></span></a></h1>
</div>
<div class="info-box-content">
<h1>
<a href="orderplaced.php" class="text-light fontsub box">Order Placed</a>
</h1>
</div>
</div>
</div>
</div>
<!-- ./col -->
<div class="col-lg-3 col-xs-4 cell">
<div class="shadow p-4 mb-4 rounded-lg">
<!-- small box -->
<div class="info-box bg-danger text-body img-rounded">
<div>
<h1><a href="deadstock.php" ><span class="info-box-icon box img" ><img src="img/deprecated.png"></span></a></h1>
</div>
<div class="info-box-content">
<h1>
<a href="deadstock.php" class="text-light fontsub box">Dead Stock</a>
</h1>
</div>
</div>
</div>
</div>
<!-- ./col -->
</div>
<br>
</div>
</div>
</div>
</body>
</html>