-
Notifications
You must be signed in to change notification settings - Fork 1
/
add_product.php
116 lines (84 loc) · 4.17 KB
/
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
115
<?php require_once("config.php"); ?>
<?php add_product_user();?>
<!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>New Product</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class="container">
<?php include("navbar.php") ?>
<h6 style="text-align: center;" class="text-center bg-warning"><?php display_message();?></h6>
<div class="add-product-page">
<div class="container">
<h3 style="padding-left: 580px;">Add New Product</h3>
<br>
<br>
<div class="row" style="justify-content: space-between;">
<div class="col-2" style="padding-left: 200px;">
<div class="form-container2">
<div class="form-btn">
</div>
<form class="" action="" method="post" enctype="multipart/form-data">
<div class="col-md-8">
<div class="form-group" style="align-items: center;">
<label for="product-title">Product Title </label>
<input type="text" name="product_title" placeholder="Title"></label>
</div>
<br>
<div class="form-group">
<div class="col-xs-3">
<label for="product-price">Product Price</label>
<input type="number" name="product_price" class="form-control" placeholder="Price" size="60">
</div>
<br>
<label for="product-title">Product Description</label>
<br>
<textarea name="product_description" id="" cols="76" rows="10" class="form-control" placeholder="Write product description here..."></textarea>
</div>
<br>
<div class="form-group">
<label for="product-title">Product Category </label>
<select name="product_category_id" class="form-control">
<option value="">Select Category</option>
<?php show_categories_add_product(); ?>
</select>
</div>
<br>
<div class="form-group">
<label for="product-title">Product Quantity</label>
<input type="number" name="product_quantity" class="form-control" placeholder="Change Quantity">
</div>
<br>
<div class="form-group">
<label for="product-title">Product Short Description</label>
<input type="text" name="product_short_desc" class="form-control" placeholder="Write a short description">
</div>
<br>
<div class="form-group">
<label for="product-title">Product Image</label>
<input type="file" name="file">
</div>
<div class="form-group">
<div class="row">
<div class="col-2">
<input type="submit" name="back" class="btn" value="Back">
</div>
<div class="col-2">
<input type="submit" name="publish" class="btn" value="Publish">
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<br>
</div>
</div>
</div>
<?php include("footer.php") ?>