-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreserv.aspx
195 lines (138 loc) · 6.81 KB
/
reserv.aspx
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="reserv.aspx.vb" Inherits="Reservation_reserv" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<title>Make A Reservation</title>
<script language="javascript" type="text/javascript">
function checkClosingDate(sender, args)
{
if (sender._selectedDate < new Date())
{
alert("Day earlier than today cannot be selected.");
}
else if(sender._selectedDate >= new Date())
{
sender._textbox.set_Value(sender._selectedDate.format(sender._format))
}
}
</script>
<style>
#p {
text-align: justify;
}
#P {
text-align: center;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="Server">
<form id="form1" runat="server">
<style>
.sub_div {
width: 150px;
height: 100px;
margin-left: -7%;
position: absolute;
display: none;
}
.sub_div ul li {
list-style-type: none;
}
.car_di:hover .sub_div {
display: block;
}
</style>
<!-- Header -->
<header id="header" class="skel-layers-fixed">
<h1><a href="start.aspx">CAR RENTALS </a></h1>
<nav id="nav">
<ul>
<li><a href="aboutus.aspx">ABOUT US</a></li>
<%
If (Session("u_id") <> "") Then
%>
<li><a href="uaccount.aspx">ACCOUNT</a></li>
<%
End If
%>
<li class="car_di"><a href="car.aspx">CARS</a>
<div class ="sub_div">
<ul class="">
<li style="background-color:white; width:100px;"><a href="ceconomy.aspx">Economy</a></li>
<li style="background-color:white; width:100px;"><a href="cstandard.aspx">Standard</a></li>
<li style="background-color:white; width:100px;"><a href="cluxury.aspx">Luxury</a></li>
</ul>
</div>
</li>
<li><a href="ContactUs.aspx">CONTACT US</a></li>
<%
If (Session("u_id") <> "") Then
%>
<li><a href="Logout.aspx" class="button special">Log Out</a></li>
<%
Else
%>
<li><a href="Login.aspx" class="button special">Log In</a></li>
<%
End If
%>
</ul>
</nav>
</header>
<header class="major">
<br />
<br />
<h2><strong> Make A Reservation</strong></h2>
<hr />
</header>
<div class="container">
<div class="row">
<div class="4u">
<asp:TextBox ID="txtname" runat="server" placeholder="Name*"></asp:TextBox>
<br />
<asp:TextBox ID="txtmail" runat="server" placeholder="Email*" TextMode="Email"></asp:TextBox>
<br />
<asp:TextBox ID="txtcontact" runat="server" placeholder="Contact No.*" MaxLength="10"></asp:TextBox>
<br />
<br />
<asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="true" EnableScriptLocalization="true"></asp:ScriptManager>
<asp:TextBox ID="txtdedate" placeholder="Departure Date*" runat="server"></asp:TextBox>
<asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtdedate" PopupButtonID="txtdedate" Format="dd/MM/yyyy" OnClientDateSelectionChanged="checkClosingDate"></asp:CalendarExtender>
<br />
<asp:TextBox ID="txtredate" placeholder="Return Date*" runat="server"></asp:TextBox>
<asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtredate" PopupButtonID="txtredate" Format="dd/MM/yyyy"></asp:CalendarExtender>
<asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Only Date greater then 7 Days from Current Date can be entered." ForeColor="Red" Type="Date" ControlToCompare="txtdedate" ControlToValidate="txtredate" Operator="GreaterThanEqual" Display="Dynamic"></asp:CompareValidator>
<asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="CompareValidator1"></asp:ValidatorCalloutExtender>
<br />
<br />
<asp:TextBox ID="txtctype" placeholder="Car Type*" runat="server" Width="275px" Enabled="False"></asp:TextBox>
<br />
<asp:TextBox ID="txtcname" placeholder="Car Name*" runat="server" Width="275px" Enabled="False"></asp:TextBox>
<br />
<asp:TextBox ID="txtcrate" placeholder="Car Rate*" runat="server" Width="275px" Enabled="False"></asp:TextBox>
<br />
<asp:Label ID="lblMessage" runat="server" />
<br />
<br />
<center>
<asp:Button ID="btnsubmit" runat="server" Text="Submit" />
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:carrentalsConnection %>" SelectCommand="SELECT * FROM [reservation]"></asp:SqlDataSource>
</center>
</div>
</div>
</div>
<!--//reservation -->
<br />
<br />
<footer id="footer">
<center>
<div class="6u">
<ul class="copyright">
<li><strong>© Car Rentals. All rights reserved.</strong></li>
<li><strong>Design By: Shubham Ravani. </strong></li>
<%--<li>Images: <a href="http://unsplash.com">Google/Suport</a></li>--%>
</ul>
</center>
</footer>
</form>
</asp:Content>