-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathadmin-product-add.php
72 lines (51 loc) · 2.32 KB
/
admin-product-add.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
<?php include('includes/connection.php') ?>
<?php include('includes/session.php') ?>
<?php
//Unauthorized Access Check
checkSession();
if(!isset($_SESSION['usertype']) || $_SESSION['usertype'] != 'a'){
$message = base64_encode(urlencode("Please Login"));
header('Location:login.php?msg=' . $message);
exit();
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Add Products | Ceylon Beverages</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<?php include('includes/header.php') ?>
<hr>
<div class="row-25 bg-grey">
<h1 class="div-c">Add Products</h1>
</div>
<div class="row-75 bg-grey">
<div class="row-100 navigation">
<ul class="right-nav bg-green">
<li><a href="admin-product-view.php" class="bg-green" >View Products</a></li>
<li><a href="admin-product-add.php" class="bg-green" >Add Products</a></li>
<li><a href="admin-product-delete.php" class="bg-green" >Delete Products</a></li>
</ul>
</div>
</div>
<div class="row-100">
<form class="form-box" action="admin-product-add-submit.php" method="post" enctype="multipart/form-data">
<p>Enter Vendor ID:</p>
<input type="text" name="vendorID" placeholder="Vendor ID" required>
<p>Enter Product Name:</p>
<input type="text" name="name" placeholder="Product Name" required>
<p>Enter Volume (Amount in mlss):</p>
<input type="text" name="volume" placeholder="Volume" required>
<p>Enter Price (Amount in Rs.):</p>
<input type="text" name="price" placeholder="Price" required>
<p>Select product image (200x300) to upload:</p>
<input type="file" name="fileToUpload" id="fileToUpload">
<br><br>
<input class="form-button" type="submit" name="submit" value="Add Product">
<h3 class="error-msg"><?php include_once('includes/message.php'); ?></h3>
</form>
</div>
</body>
</html>