-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd-product.php
65 lines (58 loc) · 2.62 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
<!DOCTYPE html>
<?php
// Start the session
session_start();
?>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Add Products</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/dist/css/bootstrap.min.css" >
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="vender/css/all.css">
</head>
<body>
<?php
if($_SESSION["username"] === ""){
echo $_SESSION['username'];
echo "login";
header("Location: index.php ");
}
?>
<div class="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-white border-bottom shadow-sm">
<a class="navbar-brand my-0 mr-md-auto" href="dashboard.php">
<img src="images/logo.svg" alt="logo" width="130" height="30" alt="Logo" loading="lazy">
</a>
<button class="btn btn-outline logout-btn" onclick="location.href='user-logout.php'">Logout</button>
</div>
<div class="container h-100">
<div class="row align-items-center h-100" >
<div class="col-8 mx-auto">
<div class="shadow-lg bg-white mt-4">
<div class="col form-header text-center p-3">
Add Products
</div>
<form action="add-product-action.php" method="get">
<div class="form-group mx-4 mt-4">
<input type="text" required name="productid" class="form-control" placeholder="Product ID">
</div>
<div class="form-group mx-4 mt-4">
<input type="text" required name="productname" class="form-control" placeholder="Product Name">
</div>
<div class="form-group mx-4 mt-4">
<input type="text" required name="productprice" class="form-control" placeholder="Product Price">
</div>
<div class="form-group mx-4 mt-4">
<input type="number" required name="qty" class="form-control" placeholder="Quantity">
</div>
<button type="submit" class="btn login-btn btn-block my-4">Add Product</button>
</form>
</div>
</div>
</div>
</div>
</body>
</html>