-
Notifications
You must be signed in to change notification settings - Fork 2
/
sell.html
165 lines (147 loc) · 4.29 KB
/
sell.html
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
<!DOCTYPE html>
<html>
<title>PaperPlant</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="CSS/mycss.css">
<style>
input, select {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type=submit] {
width: 100%;
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
input[type=submit]:hover {
background-color: #45a049;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* Firefox */
input[type=number] {
-moz-appearance: textfield;
}
</style>
<script>
Date.prototype.addDays = function(days) {
var date = new Date(this.valueOf());
date.setDate(date.getDate() + days);
return date;
}
function adddate()
{
var list= document.getElementById('date');
var i;
for(i=0;i<5;i++)
{
var today= new Date();
today=today.addDays(i);
var dd=String(today.getDate()).padStart(2,'0');
var mm=String(today.getMonth()+1).padStart(2,'0');
var yyyy= today.getFullYear();
today=dd+'/'+mm+'/'+yyyy;
var option= document.createElement("option");
option.text= today;
option.value= today;
list.add(option);
}
}
function addtime()
{
var list= document.getElementById('time');
var b=10,a=11;
while(a<=18)
{
var option= document.createElement("option");
var time= b+' to '+a;
option.text= time;
option.value= time;
list.add(option);
a++;
b++;
}
}
function ClearForm()
{
document.getElementById("sell").reset();
}
</script>
<body onload="adddate(), addtime(), ClearForm()">
<?php
session_start();
require("head.php");
?>
<div style="margin:5%;border-radius: 5px;background-color: #f2f2f2;padding: 20px; ">
<form id="sell" action="sellaction.php" method="post">
<label>Name</label>
<input type="text" id="name" name="name" placeholder="Your name..">
<label>Mobile No.</label>
<input type="number" placeholder="Enter Mobile No." id="num" name="num" maxlength="10" required>
<label>House No.</label>
<input type="text" id="Hno" name="Hno" placeholder="House no.">
<label>Street</label>
<input type="text" id="street" name="street" placeholder="Street name...">
<label>Locality</label>
<input type="text" id="locality" name="locality" placeholder="Locality...">
<label>Exchange</label>
<select id="exchange" name="exchange">
<option selected disabled value>What do you want in exchange of scrap</option>
<option value="plant">Plant</option>
<option value="money">Money</option>
</select>
<label>Date</label>
<select id="date" name="date">
<option selected disabled value>Select date</option>
</select>
<label>Time</label>
<select id="time" name="slot">
<option selected disabled value>Select Time</option>
</select>
<input type="submit" value="Submit">
</form>
</div>
<footer id="footer">
<div class="pp-row pp-black">
<div class="pp-third" style="font-size:1.5vw">
Download The App Now
<br>
<a><img src="Images/gplay.png" width="25%"></a>
<a><img src="Images/astore.png" width="22%"></a>
</div>
<div class="pp-third pp-center" style="font-size:1.5vw">
About Us
<br>
Privacy Policies
<br>
Careers
<br>
Advertise With Us
</div>
<div class="pp-third" style="font-size:1.5vw">
                      
                    Join Us <br>
<a><img src="Images/google.png" width="15%" style="float:right"></a>
<a><img src="Images/twitter.png" width="15%" style="float:right"></a>
<a><img src="Images/facebook.png" width="15%" style="float:right"></a>
</div>
</div>
</footer>
<div style=" background-color:#dd4b39; color:white ;font-size:14px;">
<div style="text-align:center;">© - Paper Plant Technologies</div>
</div>
</body>
</html>