This repository has been archived by the owner on Aug 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
/
add_product.php
166 lines (137 loc) · 3.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
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
<?php
session_start();
include_once("config.php");
//current URL of the Page. cart_update.php redirects back to this URL
$current_url = urlencode($url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
?>
<!DOCTYPE html>
<html>
<head>
<title>Add Product | ThinkGeek</title>
<link rel="icon" href="res/ThinkGeek-pt.png" sizes="16x16">
<link rel="stylesheet" type="text/css" href="css/head.css">
<link rel="stylesheet" type="text/css" href="css/navbar.css">
<link rel="stylesheet" type="text/css" href="css/sidebar2.css">
<link rel="stylesheet" type="text/css" href="css/content.css">
<!--BOOTSTRAP-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"/>
<style type="text/css">
body{
margin: 0;
}
#logo{
padding-top: 0.7%;
width: 14%;
height: 62px;
float: left;
position: fixed;
}
#addForm{
padding-top: 10px;
padding-left: 30px;
}
</style>
</head>
<body>
<div id="logo">
<a href="admin.php">
<img src="res/thinkgeek-png.png" width="100%">
</a>
</div>
<div id="sidebar">
<ul>
<li>Welcome <?php echo $_SESSION['username'];?></li>
<li>
<a href="destroy.php">
<table><tr><td><img src="res/icons/logout2.png" /></td>
<td> Logout</td></tr></table></a>
</li>
<li> </li>
</ul>
</div>
<div id="navbar">
<ul>
<li><a href="inventory.php">Inventory</a></li>
<li><a class="active" href="add_product.php">Add Product</a></li>
<li><a href="remove_product.php">Remove Product</a></li>
</ul>
</div>
<!-- BACK TO TOP-->
<a href="#" class="back-to-top">Back To Top </a>
<!--CONTENT-->
<div class="content" style="color: white;">
<section class="container">
<!-- FORM -->
<div id="addForm">
<form name="productForm" method="post" action="add.php">
<table width="45%">
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>
<label>Product Code </label>
</td>
<td colspan="2">
<input type="text" name="product_code" required>
</td>
</tr>
<tr>
<td>
<label>Fandom </label>
</td>
<td colspan="2">
<input type="text" name="fandom" required>
</td>
</tr>
<tr>
<td>
<label>Category </label>
</td>
<td colspan="2">
<input type="text" name="category" required>
</td>
</tr>
<tr>
<td>
<label>Product Name </label>
</td>
<td colspan="2">
<input type="text" name="product_name" required>
</td>
</tr>
<tr>
<td>
<label>Price </label>
</td>
<td colspan="2">
<input type="text" name="price" required>
</td>
</tr>
<tr>
<td>
<label>Quantity </label>
</td>
<td colspan="2">
<input type="text" name="product_qty" required>
</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td> </td>
<td>
<input type="submit" name="addproduct" value="Add Product" class="click">
</td>
<td> </td>
</tr>
</table>
</form>
</div>
</section>
</div>
</body>
</html>