-
Notifications
You must be signed in to change notification settings - Fork 1
/
visitor.jsp
198 lines (168 loc) · 5.99 KB
/
visitor.jsp
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
195
196
197
198
<%--
Document : visitor
Created on : 26 Apr, 2015, 12:51:41 AM
Author : ravi
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="images/favicon.jpg" type="image" rel="icon"/>
<title>Housing</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="layout/styles/layout.css" type="text/css" />
<script type="text/javascript" src="layout/scripts/jquery.min.js"></script>
<!-- Waterwheel Carousel -->
<script type="text/javascript" src="layout/scripts/carousel/jquery.waterwheelCarousel.min.js"></script>
<script type="text/javascript" src="layout/scripts/carousel/jquery.waterwheelCarousel.setup.js"></script>
<!-- / Waterwheel Carousel -->
<script type="text/javascript">
// State lists
var states = new Array();
states['Karnataka'] = new Array('Bangalore','Mysore','Mangalore');
states['Tamilnadu'] = new Array('Salem','Chennai','Pondicherry');
states['Andhra Pradesh'] = new Array('Hyderabad','Tirupati','Vizag');
// City lists
var cities = new Array();
cities['Karnataka'] = new Array();
cities['Karnataka']['Bangalore'] = new Array('Malleshwaram','Kormangla');
cities['Karnataka']['Mysore'] = new Array('Victoria','Vasanth nagar');
cities['Karnataka']['Mangalore'] = new Array('Indira nagar','Rajajinagar');
cities['Tamilnadu'] = new Array();
cities['Tamilnadu']['Salem'] = new Array('Anna nagar','Mettur');
cities['Tamilnadu']['Chennai'] = new Array('Subramanya Palya','MGR nagar');
cities['Tamilnadu']['Pondicherry'] = new Array('Lawspet','Brindavan Nagar');
cities['Andhra Pradesh'] = new Array();
cities['Andhra Pradesh']['Hyderabad'] = new Array('Kaziguda','Karim nagar');
cities['Andhra Pradesh']['Tirupati'] = new Array('Ranigunta','Chandragiri');
cities['Andhra Pradesh']['Vizag'] = new Array('Gandhi nagar','Kanlum gudda');
function setStates() {
cntrySel = document.getElementById('country');
stateList = states[cntrySel.value];
changeSelect('state', stateList, stateList);
setCities();
}
function setCities() {
cntrySel = document.getElementById('country');
stateSel = document.getElementById('state');
cityList = cities[cntrySel.value][stateSel.value];
changeSelect('city', cityList, cityList);
}
function changeSelect(fieldID, newOptions, newValues) {
selectField = document.getElementById(fieldID);
selectField.options.length = 0;
for (i=0; i<newOptions.length; i++) {
selectField.options[selectField.length] = new Option(newOptions[i], newValues[i]);
}
}
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
addLoadEvent(function() {
setStates();
});
</script>
</head>
<body id="top">
<div class="wrapper col1">
<div id="header">
<div class="fl_left">
<h1><a href="index.html">Housing</a></h1>
<p style="indent:20">- making life simpler..</p>
</div>
<div class="fl_right"><a href="#"><img src="images/demo/logo.jpg" alt="" /></a></div>
<br class="clear" />
</div>
</div>
<!-- ####################################################################################################### -->
<div class="wrapper col2">
<div id="topbar">
<div id="topnav">
<ul>
<li class="active"><a href="index.html">Home</a></li>
<li><a href="https://housing.com/about">About-Us</a></li>
<li><a href="https://housing.com/blog">Blog</a></li>
<li><a href="#">Services <b>⇩<b></a>
<ul>
<li><a href="login.jsp">Seller</a></li>
<li><a href="visitor.jsp">Buyer</a></li>
</ul>
</li>
<li class="last"><a href="contact.html">Contact-Us</a></li>
</ul>
</div>
<br class="clear" />
</div>
</div>
<!-- ####################################################################################################### -->
<form action="./visitormaster.jsp" name="vist">
<br> <h2 style="color:#A5066D">BUYER DETAILS</h2><br>
<table border="1">
<tr>
<td style="text-align: left;">State</td>
<td style="text-align: left;">
<select name="state" id="country" onchange="setStates();">
<option value="Karnataka">Karnataka</option>
<option value="Tamilnadu">Tamilnadu</option>
<option value="Andhra Pradesh">Andhra Pradesh</option>
</select>
</td>
</tr><tr>
<td style="text-align: left;">City</td>
<td style="text-align: left;">
<select name="city" id="state" onchange="setCities();">
</select>
</td>
</tr><tr>
<td style="text-align: left;">Area</td>
<td style="text-align: left;">
<select name="area" id="city">
</select>
</td>
</tr>
<tr> <td> School </td>
<td><select name="school">
<option value="1-2KM">1-2KM</option>
<option value="3-4km">3-4KM</option>
<option value="5KM">5KM</option>
</td>
</tr>
<tr> <td> Bus stand </td>
<td><select name="bus">
<option value="1-2KM">1-2KM</option>
<option value="3-4km">3-4KM</option>
<option value="5KM">5KM</option>
</td>
</tr>
<tr> <td> restaurants</td>
<td><select name="rest">
<option value="1-2KM">1-2KM</option>
<option value="3-4km">3-4KM</option>
<option value="5KM">5KM</option>
</td>
</tr>
</table>
<input type="submit" value="SEARCH" style="width: 80; height: 20; border: 1px solid #0000FF">
</form>
<hr color="grey">
<!-- ####################################################################################################### -->
<div class="wrapper col6">
<div id="copyright">
<p class="fl_left">Copyright © 2014 - All Rights Reserved</p>
<p class="fl_right"> Made by Hunters...</p>
<br class="clear" />
</div>
</div>
</body>
</html>