-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.php
74 lines (70 loc) · 2.15 KB
/
admin.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
<!doctype html>
<?php
if(isset($_COOKIE["access"])){
echo "<div class='welcome'>Welcome Admin</div>";
}
else{
printf("<script>location.href='adminaccess.php'</script>");
}
?>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="Springtea.css">
<script src="files/jquery.min.js"></script>
<script src="files/jquery.validate.min.js"></script>
<script src="files/validation.js"></script>
<script src="files/login.js"></script>
<title>Spring Tea - Admin</title>
</head>
<body>
<h1><em>Spring Tea - Admin</em></h1>
<div class ="navbar">
<ul>
<li><a href="Springtea.php">Home</a></li>
<li class="confirm"><a href="account.php">Your Account</a>
<ul class="subnavbar">
<li><a href="confirmation.php">Your Orders</a></li>
</ul>
</li>
<li><a href="teainfo.php">Tea Info</a>
<ul class="subnavbar">
<li><a href="regular_tea.php">Regular Tea</a></li>
<li><a href="pu-erh_tea.php">Pu-erh Tea</a></li>
<li><a href="teapot.php">Teapot</a></li>
</ul>
</li>
<li class="order"><a href="cart.php">Cart</a>
</li>
<li><a href="contact_info.php">Contact Info</a></li>
</ul>
</div>
<br><br><br><br><br>
<fieldset>
<h1 class="info">Admin</h1>
<form id="form" action="upload_file.php" method="post" enctype="multipart/form-data">
<p class="redp">
Product:<input type="text" name="product"><br>
Category: <select name="category">
<option value="regular_tea">Regular Tea</option>
<option value="pu-erh_tea">Pu-erh Tea</option>
<option value="teapot">Teapot</option>
</select><br>
Price:<input type="text" name="price"><br><br>
Can't upload files larger than 2MB<br>
<label for="file">Filename:</label>
<input type="file" name="file" id="file"><br><br>
Description:<br>
<textarea class="description" name="description" rows="10" cols="50"></textarea><br>
<input type="submit" name="submit" value="Submit">
</p>
</form>
<h1 class="info"><a class= 'back' href='filemanagement.php'>Go to File Management</a></h1>
<h1 class="info"><a class= 'back' href='chart.php'>Go to My Chart</a></h1>
<h1 class="info"><a class= 'back' href='visitor.php'>Go to My Visitor</a></h1>
</fieldset>
<hr>
<p class="red"><a href="Credit.html">Credits</a>
</p>
</body>
</html>