|
<%@ include file="../WEB-INF/jsp/city_side_menu2.jspf" %>
|
|
<%@ include file="../WEB-INF/jsp/top_menu.jspf" %>
|
<%=city_name%>, <%=region_name%>
Filter the results on the map and on the property list by changing criteria.
All properties meeting criteria are shown automatically.
|
|
Properties in <%=city_name%>
| Property ID |
Address |
City |
Bedrooms |
Bathrooms |
Square feet |
<%@ include file="/WEB-INF/jsp/radius_function.jsp" %>
<%
Connection con = null;
try {
// lat and lng definition are on file city_scriptlet.jspf
double[] cords = getRadiusCords(60, lat, lng);
Class.forName("com.mysql.jdbc.Driver");
con = DriverManager.getConnection("jdbc:mysql://localhost/sstrehli1?user=sstrehli1&password=frboadmin2007");
String query = "SELECT property_id, address, country_id, country_name, bedrooms, bathrooms, sqft, property.latitude, property.longitude, cities.city, property.city_id FROM property, cities WHERE property.city_id = cities.city_id AND property.enabled = 1 AND property.latitude >= " + cords[0] + " AND property.longitude >= " + cords[1] + " AND property.latitude <= " +cords[2] + " AND property.longitude <= " +cords[3];
PreparedStatement Ps = con.prepareStatement(query);
//Ps.setInt(1,city_id);
ResultSet Rs = Ps.executeQuery();
while(Rs.next()) {
long property_id = Rs.getLong("property_id");
int country_id = Rs.getInt("country_id");
double latitude = Rs.getDouble("latitude");
double longitude = Rs.getDouble("longitude");
String address = Rs.getString("address");
String country_name = Rs.getString("country_name");
String city_name2 = Rs.getString("city");
int city_id2 = Rs.getInt("city_id");
int bedrooms = Rs.getInt("bedrooms");
int bathrooms = Rs.getInt("bathrooms");
int sqft = Rs.getInt("sqft");
String query2 = "SELECT date_in, date_out FROM rates WHERE property_id = ?";
PreparedStatement Ps2 = con.prepareStatement(query2);
Ps2.setLong(1, property_id);
ResultSet Rs2 = Ps2.executeQuery();
%>
| #<%=property_id%> |
<%=address%> |
<%=city_name2%> |
<%=bedrooms%> |
<%=bathrooms%> |
<%=sqft%> |
<%
Rs2.close();
Ps2.close();
}
Rs.close();
Ps.close();
con.close();
con = null;
} catch(Exception e) {out.print(e.toString()); out.print(e.getMessage());
}
finally {
if(con!=null) {
con.close();
con = null;
}
}
%>
| |
|
|
|
|
|
<%@ include file="../WEB-INF/jsp/footer.jspf" %>
|
Mexico Rental Links
Vacation rentals in Costa Careyes Mexico and rental apartment Costa Careyes Mexico
Rental properties in Costa Bella, Costa Bella houses for rent, and rental homes Costa Bella Mexico
Short term rentals Colima Mexico, bed and breakfast rentals in Colima, Colima condos for rent, and Colima Mexico rental home
Vacation rentals Mar de Coral Mexico and Mar de Coral Mexico holiday rentals
Rent house in Puerto Escondido Mexico, homes for rent by owner Puerto Escondido Mexico, and Puerto Escondido rental home
Villas del Mar real estate rentals, Villas del Mar Mexico house rentals, real estate rentals, and rental home in Villas del Mar Mexico
Vacation homes for rent by owner and condos for rent
Rental properties in Bahia Kino-Kino Bay Mexico, vacation homes, and vacation rental
Vacation homes for rent by owner in Nuevo Vallarta Mexico, Nuevo Vallarta Mexico homes for rent by owner, holiday rentals Nuevo Vallarta Mexico, and rental apartment in Nuevo Vallarta Mexico
Real estate rentals and vacation homes in El Placer Mexico
House rentals in Las Gaviotas Mexico, Las Gaviotas Mexico rental properties, and real estate rentals Las Gaviotas
Rental home in Rincon de Guayabitos, Rincon de Guayabitos real estate rentals, Rincon de Guayabitos Mexico houses for rent, and Rincon de Guayabitos Mexico rent houses
Vacation rental in Alamos Mexico and vacation rental in Alamos
Aticama Mexico rental homes, homes for rent in Aticama, and rent house Aticama
Real estate rentals Los Barriles Mexico, homes for rent in Los Barriles Mexico, Los Barriles Mexico rental houses, and rental properties Los Barriles
Huatulco Mexico apartments for rent and real estate rentals in Huatulco Mexico
Vacation homes in La Ventana Mexico, La Ventana bed and breakfast rentals, and La Ventana Mexico apartment rentals
Dolores Hidalgo Mexico vacation homes for rent by owner, Dolores Hidalgo Mexico condo rentals, rent houses Dolores Hidalgo Mexico, and house rentals Dolores Hidalgo Mexico
Bahia Kino-Kino Bay Mexico home rentals and real estate rentals in Bahia Kino-Kino Bay
For rent by owner homes in Calafia Mexico, homes for rent in Calafia Mexico, and condo rentals in Calafia Mexico
Villas del Mar vacation homes, vacation rental in Villas del Mar Mexico, real estate rentals in Villas del Mar Mexico, and Villas del Mar Mexico vacation rental
Short term rentals Telchac Puerto Mexico and vacation homes for rent by owner
Rent houses Villas del Mar, holiday rentals in Villas del Mar Mexico, and Villas del Mar vacation homes for rent by owner
Apartments for rent in Club Marena Mexico, Club Marena condos for rent, homes for rent in Club Marena, and rental houses in Club Marena Mexico
For rent by owner homes Bacalar and condo rentals Bacalar Mexico
San Antonio del Mar Mexico rental apartment, vacation rental in San Antonio del Mar, and home rentals in San Antonio del Mar Mexico
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
|
|