-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstock.htm
214 lines (186 loc) · 6.08 KB
/
stock.htm
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html>
<html>
<title>Stock Management</title>
<style>
body {
background-image: url(https://i.pinimg.com/originals/b4/f9/f9/b4f9f97ef17f943e969494a3f8e57cfb.jpg);
background-repeat: no-repeat;
background-size: cover;
}
input[type=text], input[type=date], input[type=number],
select {
width: 240px;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
.button {
width: 115px;
background-color: #4CAF50;
color: white;
position: absolute;
z-index: 0;
display: inline-block;
padding: 14px 20px;
margin: 80px -240px;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #4574a0e0;
}
.button1 {
margin: 80px -100px;
background-color: red;
}
.button2 {
width: 65px;
height: 20px;
margin: 20px 40px;
position: absolute;
z-index: 10;
border: none;
border-radius: 4px;
cursor: pointer;
background-color: #4c66afb2;
padding-left: 10px;
}
.div {
background-color: rgba(187, 182, 182, 0.938);
margin: 30px 200px;
width: 900px;
height: 350px;
padding: 50px;
}
.div1 {
margin: 0px 0px;
width: 250px;
height: 400px;
padding: 30px;
}
.div2 {
margin: -460px 600px;
position: absolute;
z-index: 5;
width: 250px;
height: 400px;
padding: 30px;
float: right;
}
.log>button{top: 35px;
right: 30px;
background-color: rgb(161, 152, 152);
color: rgb(146, 62, 62);
border: solid rgb(130, 131, 130) 3px;
position:absolute;
z-index: 10;}
.divh{
height: 70px;
border: solid;
background-color: dimgrey;
}
.btn-group button {
background-color: rgba(243, 224, 224, 0.849);
/* Green background */
border: 2px solid rgba(11, 16, 27, 0.931);
/* Green border */
margin-left: -2px;
margin-top: 20px;
color: rgba(0, 0, 0, 0.89);
/* White text */
padding: 3px 6px;
/* Some padding */
cursor: pointer;
/* Pointer/hand icon */
width:150px;
height: 35px;
font-weight: bold;
/* Set a width if needed */
display: block;
border-top-right-radius:20px ;
border-bottom-right-radius:20px
/* Make the buttons appear below each other */
}
/* Add a background color on hover */
.btn-group button:hover {
background-color: rgba(127, 102, 216, 0.795);
}
.sidenav {
height: 400px;
width: 165px;
position: fixed;
z-index: 1;
top: 100px;
left: 0;
background-color: rgba(187, 187, 187, 0.924);
border: solid darkslategrey 2px;
border-radius:5px;
border-left: none;
overflow-x: hidden;
transition: 0.5s;
padding-top: 10px;
}
.sidenav a:hover {
color: #f1f1f1;
}
@media screen and (max-height: 450px) {
.sidenav {
padding-top: 15px;
}
.sidenav a {
font-size: 18px;
}
}
</style>
<body>
<div class="divh"><center><h1>Stock Management</h1></center><form action="index" method="POST" class="log"><button type="submit" >Logout</button></form> </div>
<div id="mySidenav" class="sidenav">
<div class="btn-group">
<form action="" method="POST">
<button type="submit" formaction="register">Manage Employee</button>
<button type="submit" formaction="Stock">Manage Stocks</button>
<button type="submit" formaction="Price">Price Management</button>
<button type="submit" formaction="billreport">Billing report</button>
<button type="submit" formaction="locator">Product Locator</button>
<button type="submit" formaction="change details">Other Details</button>
<button type="submit" formaction="index">Logout</button></form>
</div>
</div>
<div class="div">
<form method="post" action="sstock">
<div class="div1">
<script>
var v=
document.write('<label for="itid">Item ID</label>')
document.write('<input type="text" id="sid" name="itmid" value="'+v[0][0]+'" placeholder="Enter itemid">')
document.write('<button type="submit" class="button2" name="status" value="1">Search</button>')
document.write('<label for="fname">Item Name</label>')
document.write('<input type="text" id="iname" value="'+v[0][1]+'">')
document.write('<label for="Mname">Supplier Name</label>')
document.write('<input type="text" id="mname" value="'+v[0][2]+'">')
document.write('<label for="dos">Date</label>')
document.write('<input type="date" id="date" name="date" >')
document.write('</select>')
</script>
</div>
<div class="div2">
<script>
document.write('<label for="stock">Stock</label>')
document.write('<input type="text" id="stock" name="stock" value="'+v[0][3]+'" readonly>')
document.write('<label for="tsale">Total Sale</label>')
document.write('<input type="text" id="tsale" name="TSale" value="'+v[0][4]+'" readonly>')
</script>
<label for="nstock">New Stock</label>
<input type="number" id="nstock" name="nstock" placeholder="Enter new stock">
</select>
<button type="submit" class="button">Submit</button>
<button type="reset" class="button button1">Cancel</button>
</div>
</form>
</div>
</body>
</html>