-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
126 lines (113 loc) · 4.96 KB
/
index.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
<?php
session_start();
// Redirect the user to login page if he is not logged in.
if(!isset($_SESSION['loggedIn'])){
header('Location: login.php');
exit();
}
require_once('Admin/inc/config/constants.php');
require_once('Admin/inc/config/db.php');
require_once('inc/header.html');
?>
<body>
<?php
require 'inc/navigation.php';
?>
<!-- Page Content -->
<div class="container-fluid">
<div class="row">
<div class="col-lg-2">
<h1 class="my-4"></h1>
<div class="nav flex-column nav-pills" id="v-pills-tab.," role="tablist" aria-orientation="vertical">
<a class="nav-link active" id="v-pills-sale-tab" href="#v-pills-sale" role="tab" aria-controls="v-pills-sale" aria-selected="false">Sale</a>
</div>
<img src="mlogo.png" alt="" width="80%">
</div>
<div class="col-lg-10">
<div class="card card-outline-secondary my-4">
<div class="card-header">Sale Details</div>
<div class="card-body">
<div id="saleDetailsMessage"></div>
<form>
<div class="form-row">
<div class="form-group col-md-2">
<label for="saleDetailsUser">User In Charge</label>
<input type="text" class="form-control invTooltip" id="saleDetailsUser" name="saleDetailsUser" readonly value="<?php echo $_SESSION['user_name'] ?>">
</div>
<div class="form-group col-md-2">
<label for="saleDetailsItemNumber">Select Item<span class="requiredIcon">*</span></label>
<select id="saleDetailsItemNumber" name="saleDetailsItemNumber" class="form-control chosenSelect">
<option value="">Select Item</option>
<?php include('model/item/itemDropdownList.php'); ?>
</select>
</div>
<div class="form-group col-md-2">
<label for="saleDetailsSaleID">Sale ID</label>
<input type="text" class="form-control invTooltip" id="saleDetailsSaleID" name="saleDetailsSaleID" title="This will be auto-generated when you add a new record" autocomplete="off">
<div id="saleDetailsSaleIDSuggestionsDiv" class="customListDivWidth"></div>
</div>
<div class="form-group col-md-2">
<label for="saleDetailsCategoryName">Category</label>
<input type="text" class="form-control invTooltip" id="saleDetailsCategory" name="saleDetailsCategory" readonly>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-2">
<label for="saleDetailsItemName">Item Name</label>
<input type="text" class="form-control invTooltip" id="saleDetailsItemName" name="saleDetailsItemName" readonly>
</div>
<!-- <div class="form-group col-md-2">
<label for="saleDetailsSaleDate">Sale Date<span class="requiredIcon">*</span></label>
<input type="text" class="form-control datepicker" id="saleDetailsSaleDate" value="2018-05-24" name="saleDetailsSaleDate" readonly>
</div> -->
<div class="form-group col-md-2">
<label for="saleDetailsTotalStock">Total Stock</label>
<input type="text" class="form-control" name="saleDetailsTotalStock" id="saleDetailsTotalStock" readonly>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-2">
<label for="saleDetailsQuantity">Quantity<span class="requiredIcon">*</span></label>
<input type="number" class="form-control" id="saleDetailsQuantity" name="saleDetailsQuantity" value="0">
</div>
<div class="form-group col-md-2">
<label for="saleDetailsUnitPrice">Unit Price<span class="requiredIcon">*</span></label>
<input type="text" class="form-control" id="saleDetailsUnitPrice" name="saleDetailsUnitPrice" value="0" readonly>
</div>
<div class="form-group col-md-2">
<label for="saleDetailsTotal">Total</label>
<input type="text" class="form-control" id="saleDetailsTotal" name="saleDetailsTotal">
</div>
</div>
<div class="form-row">
<div class="form-group col-md-3">
<div id="saleDetailsImageContainer"></div>
</div>
</div>
<button type="button" id="addSaleButton" class="btn btn-success">Add Sale</button>
<button type="button" id="updateSaleDetailsButton" class="btn btn-primary">Update</button>
<button type="reset" id="saleClear" class="btn">Clear</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-row">
<div class="col-lg-2"></div>
<div class="col-lg-10">
<div class="card card-outline-secondary my-4">
<div class="card-header">Sales <button id="searchTablesRefresh" name="searchTablesRefresh" class="btn btn-warning float-right btn-sm">Refresh</button></div>
<div class="card-body">
<div class="table-responsive" id="saleDetailsTableDiv"></div>
</div>
</div>
</div>
</div>
<?php
require 'inc/footer.php';
?>
</body>
</html>