-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAddCard.php
145 lines (117 loc) · 2.51 KB
/
AddCard.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
<?php
session_start();
if (!isset($_SESSION['email'])) {
header("Location: loginHTML.php");
exit();
}
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: "Lato", sans-serif;
}
.sidebar {
height: 100%;
width: 250px;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: rgb(101, 35, 227);
overflow-x: hidden;
padding-top: 60px;
}
.sidebar a {
padding: 8px 8px 8px 32px;
text-decoration: none;
font-size: 25px;
color: white;
display: block;
transition: 0.3s;
}
.sidebar a:hover {
color: black;
}
#main {
margin-left: 250px;
padding: 16px;
}
.form-container {
margin-top: 80px;
}
@media screen and (max-height: 450px) {
.sidebar {padding-top: 15px;}
.sidebar a {font-size: 18px;}
}
.form-container {
margin-top: 80px;
}
.form-container form {
border: 1px solid rgb(101, 35, 227);
width: 50%;
margin: 0 auto;
padding: 20px;
border-radius: 5px;
}
.form-container label {
display: block;
margin-bottom: 2px;
font-weight: bold;
}
.form-container input[type="text"],
.form-container textarea {
width: 95%;
padding: 10px;
border: 1px solid rgb(101, 35, 227);;
border-radius: 4px;
}
.form-container input[type="submit"] {
background-color: rgb(101, 35, 227);
color: white;
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
}
.form-container input[type="submit"]:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div id="mySidebar" class="sidebar">
<a href="profile.php">Profile</a>
<a href="AddCard.php">Add card</a>
<a href="ViewCard.php">View Card</a>
<a href="Home.php">Home</a>
</div>
<div id="main">
<div class="form-container">
<form method="POST" action="AdSubmit.php" enctype="multipart/form-data">
<label for="image">Image:</label>
<input type="file" name="image" required>
<br><br>
<label for="tagline">Tagline:</label>
<input type="text" name="tagline" required>
<br><br>
<label for="hyperlink">Hyperlink:</label>
<input type="text" name="hyperlink" required>
<br><br>
<label for="redeem_condition">How to Redeem:</label>
<textarea name="redeem_condition" rows="4" cols="50" required></textarea>
<br><br>
<label for="category">Category:</label>
<input type="text" name="category" required>
<br><br>
<label for="company">Company:</label>
<input type="text" name="company" required>
<br><br>
<input type="submit" name="submit" value="Submit">
</form>
</div>
</div>
</body>
</html>