forked from tyren1995/Rentit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
item-creation-form.htm
91 lines (80 loc) · 3.61 KB
/
item-creation-form.htm
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
<html>
<title>
Item Creation Form
</title>
<head>
<!--Include css for bars-->
<link rel="stylesheet" type="text/css" href="bars-style.css">
</head>
<!--Set background color-->
<body style="background-color:#66C0F4;">
<!--Title-->
<h1 style=padding-left:40px; align=Left>Rentit</h1>
<!--navigation bar-->
<div class="topnav">
<input type="text" placeholder="Search..">
<a href="index.htm">Home</a>
<a href="about-us.htm">About</a>
<a href="#contact">Contact</a>
<a href="registration-form.htm">Sign Up</a>
<a href="login.php">Login</a>
<a class="active" href="#ItemCreationForm">New Item</a>
</div>
<!--Sidebar HTML Links-->
<div id="mySidebar" class="sidebar">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<a href="r-autos.htm">Automobiles and Vehicles</a>
<a href="r-appliances.htm">Appliances</a>
<a href="r-clothing.htm">Clothing and Accessories</a>
<a href="r-furniture.htm">Furniture</a>
<a href="r-gamesetc.htm">Games and Movies</a>
<a href="r-hobbies.htm">Hobbies</a>
<a href="r-housing.htm">Houses,Rooms,and Apartments</a>
<a href="r-instruments.htm">Instruments</a>
<a href="r-other.htm">Other</a>
<a href="r-outdoors.htm">Outdoors</a>
<a href="r-services.htm">Services</a>
<a href="r-tools.htm">Tools</a>
</div>
<!--Click Button HTML sidebar-->
<div id="main">
<button class="openbtn" onclick="openNav()">☰</button>
</div>
<script>
function openNav() {
document.getElementById("mySidebar").style.width="250px";
document.getElementByID("main").style.marginLeft="250px";
}
function closeNav() {
document.getElementById("mySidebar").style.width = "0"
document.getElementById("main").style.marginLeft="0";
}
</script>
<form action="insert-item.php" id="iteminsert" method="post" enctype="multipart/form-data" >
Title : <br> <input type="text" name="title"> <br>
Price : <br> <input type="number" placeholder="0.00" step="0.01" name="amount"> <br>
Description :
</form>
<textarea name="desc" form="iteminsert" rows="4" cols="50"></textarea><br>
Category: <br> <br>
<select name="category" form="iteminsert">
<option value="AUTO">Automobiles and Vehicles</option>
<option value="APPL">Appliances</option>
<option value="CLOT">Clothing and Accessories</option>
<option value="FURN">Furniture</option>
<option value="GAME">Games and Movies </option>
<option value="HOBB">Hobbies</option>
<option value="HOUS">Houses,Rooms,and Apartments</option>
<option value="INST">Instruments</option>
<option value="OTHE">Other</option>
<option value="OUTD">Outdoors</option>
<option value="SERV">Services</option>
<option value="TOOL">Tools</option>
</select> <br> <br>
Image : <input form="iteminsert" type="file" name="imageone"/> <br> <br>
Image 2 : <input form="iteminsert" type="file" name="imagetwo"/> <br> <br>
Image 3: <input form="iteminsert" type="file" name="imagethree"/> <br> <br>
Image 4: <input form="iteminsert" type="file" name="imagefour"/> <br> <br>
<input form="iteminsert" type="submit" value="insert" >
</body>
</html>