-
Notifications
You must be signed in to change notification settings - Fork 0
/
reservation.html
115 lines (94 loc) · 3.45 KB
/
reservation.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Reservation</title>
<link rel="stylesheet" href="reservation.css">
</head>
<body>
<nav>
<ul class="nav-flex-row">
<li class="nav-item">
<a href="index.html">Home</a>
</li>
<li class="nav-item">
<a href="about.html">About</a>
</li>
<li class="nav-item">
<a href="menu.html">Menu</a>
</li>
<li class="nav-item" id="spec">
<a href="speciality.html">Speciality</a>
</li>
</ul>
</nav>
<div>
<header>
<h1>
Reservation
</h1>
</header>
<br>
<form action="test.php" method="post">
<h2>Name</h2>
<input type="text" placeholder="Enter Your Name" required name="name">
<h2>Email ID</h2>
<input type="text" placeholder="Enter Your Email ID" required name="email">
<H2>Mobile no.</H2>
<input type="number" placeholder="Enter yout Mobile no." required name="mobile">
<h2>No. of seats</h2>
<select required name="seats">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
</select>
<h2>Date</h2>
<input type="date" name="Date" id="date" name="date">
<h2>Time Slot</h2>
<!-- <select name="Time">
<option value="10:00 am">10:00 am</option>
<option value="11:00 am">12:00 am</option>
<option value="12:00 pm">12:00 pm</option>
<option value="1:00 pm">1:00 pm</option>
<option value="2:00 pm">2:00 pm</option>
<option value="3:00 pm">3:00 pm</option>
<option value="4:00 pm">4:00 pm</option>
<option value="7:00 pm">7:00 pm</option>
<option value="8:00 pm">8:00 pm</option>
<option value="9:00 pm">9:00 pm</option>
<option value="10:00 pm">10:00 pm</option>
<option value="11:00 pm">11:00 pm</option>
</select> -->
<input type="time" name="time" id="time" min="10:00" max="22:00">
<!-- <script>
var date = new Date();
var current_time = date.getHours()+":"+date.getMinutes()+":"+ date.getSeconds();
document.getElementById("time").setAttribute("min", current_time);
</script> -->
<br><br><br><br>
<!-- <a href="booked.html" name="book"><button>Book Table</button> </a> -->
<input id="button" type="submit" value="Book Table" name="book">
</form>
<script>
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1;
var yyyy = today.getFullYear();
if(dd<10){
dd='0'+dd
}
if(mm<10){
mm='0'+mm
}
today = yyyy+'-'+mm+'-'+dd;
document.getElementById("date").setAttribute("min", today);
</script>
</div>
</body>
</html>