-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanage_warehouse_inventory.php
50 lines (44 loc) · 1.56 KB
/
manage_warehouse_inventory.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
<?php
include('system_load.php');
//This loads system.
//user Authentication.
authenticate_user('subscriber');
//creating company object.
$new_store = new Store;
$store_access = new StoreAccess;
$warehouse = new Warehouse;
if(partial_access('admin') || $store_access->have_module_access('warehouse')) {} else {
HEADER('LOCATION: store.php?message=warehouse');
}//
if(!isset($_SESSION['store_id']) || $_SESSION['store_id'] == '') {
HEADER('LOCATION: stores.php?message=1');
} //select company redirect ends here.
$new_store->set_store($_SESSION['store_id']); //setting store.
$page_title = 'Manage Warehouse Inventory'; //You can edit this to change your page title.
require_once("includes/header.php"); //including header file.
//display message if exist.
if(isset($message) && $message != '') {
echo '<div class="alert alert-success">';
echo $message;
echo '</div>';
}
?>
<!--content here-->
<table cellpadding="0" cellspacing="0" border="0" class="table-responsive table-hover table display table-bordered" id="wc_table" width="100%">
<thead>
<tr>
<th>WH ID</th>
<th>WH NAME</th>
<th>Manager</th>
<th>Total Inventory</th>
<th>Inentory Details</th>
</tr>
</thead>
<tbody>
<?php $warehouse->ware_house_details(); ?>
</tbody>
</table>
<!--content Ends here.-->
<?php
require_once("includes/footer.php");
?>