-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvendor_add_product.php
114 lines (98 loc) · 4.22 KB
/
vendor_add_product.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
<?php
include "includes/vendor_session.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="images/shirtlogo.png" type="image/x-icon">
<link rel="stylesheet" href="styles/template.css" />
<link rel="stylesheet" href="styles/vendor.css" />
<link rel="stylesheet" href="styles/pagetopbar.css" />
<script src="scripts/yeap.js"></script>
<title>Chapalang Clothes</title>
</head>
<body>
<!-- ----------------------------------- TOP-BAR ----------------------------------- -->
<?php include "includes/pagetopbar.php" ?>
<!-- ----------------------------------- TOP-BAR ----------------------------------- -->
<div class="body-wrapper">
<div></div>
<!-- ----------------------------------- BODY ----------------------------------- -->
<div class="content-wrapper container">
<div class="vendor-container">
<?php
include("includes/vendor_sidenav.php");
?>
<div class="vendor-body card-generic p-2">
<form action="vendor_adding_products.php" method="POST" enctype="multipart/form-data" name="vendoraddprod" onsubmit="return validateProduct()">
<h3>Add Product</h3>
<hr><br>
<label for="productname">Name
<input placeholder="Enter product name" type="text" name="productname" id="prodname" required>
</label>
<br><br>
<label for="desc">Description
<textarea placeholder="Enter description" name="productdesc" id="proddesc" required></textarea>
</label>
<br><br>
<div class="addimages flex-wrapper">
<div class="addimg">
<img class="img-upload" id="output1">
<br>
<input type="file" accept="image/*" name="file[]" required onchange="displayproduct(event, 'output1')">
</div>
<div class="addimg">
<img class="img-upload" id="output2">
<br>
<input type="file" accept="image/*" name="file[]" onchange="displayproduct(event, 'output2')">
</div>
<div class="addimg">
<img class="img-upload" id="output3">
<br>
<input type="file" accept="image/*" name="file[]" onchange="displayproduct(event, 'output3')">
</div>
<div class="addimg">
<img class="img-upload" id="output4">
<br>
<input type="file" accept="image/*" name="file[]" onchange="displayproduct(event, 'output4')">
</div>
<div class="addimg">
<img class="img-upload" id="output5">
<br>
<input type="file" accept="image/*" name="file[]" onchange="displayproduct(event, 'output5')">
</div>
<div class="addimg">
<img class="img-upload" id="output6">
<br>
<input type="file" accept="image/*" name="file[]" onchange="displayproduct(event, 'output6')">
</div>
</div>
<br><br>
<label for="tag">Tag
<input placeholder="Enter tag" type="text" name="producttag" id="prodtag" required>
</label>
<br><br>
<label for="value">Value
<input placeholder="Enter value" type="number" name="productvalue" id="prodval" step="0.01" required>
</label>
<br><br>
<label for="stock">Stock
<input placeholder="Enter stock" type="number" name="productstock" id="prodstock" required>
</label>
<br><br>
<input type="submit" value="Add">
<br><br>
</form>
</div>
</div>
</div>
<!-- ----------------------------------- BODY ----------------------------------- -->
<!-- ----------------------------------- FOOTER ----------------------------------- -->
<?php include "includes/footeremployee.html" ?>
<!-- -----------------------------------FOOTER----------------------------------- -->
</div>
</body>
<script src="scripts/vendor_page.js"></script>
</html>