|
<%@ 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
Puerto Vallarta Mexico apartment rentals and rental homes Puerto Vallarta
Short term rentals in Ensenada Mexico, homes for rent, and bed and breakfast rentals in Ensenada
La Jolla de Rosarito bed and breakfast rentals, La Jolla de Rosarito real estate rentals, La Jolla de Rosarito Mexico vacation rentals, and La Jolla de Rosarito homes for rent by owner
Home rentals and holiday rentals Oaxaca
Rental properties San Jose del Cabo Mexico, for rent by owner homes San Jose del Cabo Mexico, and apartment rentals in San Jose del Cabo Mexico
Vacation homes San Carlos, San Carlos Mexico vacation homes for rent by owner, San Carlos Mexico houses for rent, and house rentals in San Carlos Mexico
Houses for rent and rent house in Colima
Progreso Mexico vacation homes, Progreso Mexico rental homes, and vacation homes for rent by owner in Progreso Mexico
Rental houses La Manzanilla, apartment rentals, La Manzanilla Mexico for rent by owner homes, and La Manzanilla Mexico rental apartment
Homes for rent by owner in Patzcuaro Mexico and short term rentals in Patzcuaro Mexico
San Antonio del Mar rent houses, condo rentals, and apartment rentals San Antonio del Mar Mexico
Vacation homes for rent by owner Guanajuato Mexico, rental apartment in Guanajuato, home rentals Guanajuato, and Guanajuato Mexico rental houses
Queretaro Mexico vacation homes for rent by owner and condos for rent in Queretaro Mexico
La Ventana Mexico rent houses, rental home in La Ventana Mexico, and houses for rent in La Ventana Mexico
Vacation rentals in Playa Las Tortugas-Turtle Beach Mexico, homes for rent Playa Las Tortugas-Turtle Beach, house rentals, and Playa Las Tortugas-Turtle Beach Mexico houses for rent
House rentals and rental apartment Playa Las Tortugas-Turtle Beach
Rental home in Las Olas de Rosarito, Las Olas de Rosarito Mexico vacation rental, and condo rentals in Las Olas de Rosarito Mexico
Houses for rent Puerto Vallarta Mexico, Puerto Vallarta Mexico apartments for rent, vacation homes for rent by owner in Puerto Vallarta Mexico, and Puerto Vallarta Mexico houses for rent
Rent house in San Felipe and condo rentals in San Felipe Mexico
Rose Mexico holiday rentals, Rose Mexico apartments for rent, and for rent by owner homes in Rose Mexico
Homes for rent Mexico City Mexico, for rent by owner homes in Mexico City Mexico, Mexico City Mexico houses for rent, and rental homes Mexico City
Holiday rentals in Puerto Nuevo and Puerto Nuevo Mexico rent houses
Costa Bella Mexico rental houses, Costa Bella Mexico short term rentals, and rent houses in Costa Bella Mexico
Condos for rent in Tankah, houses for rent Tankah Mexico, homes for rent in Tankah Mexico, and real estate rentals in Tankah Mexico
Rental homes in Chacala Mexico and vacation rental in Chacala Mexico
Houses for rent in Playa del Secreto Mexico, Playa del Secreto rent houses, and houses for rent Playa del Secreto
Short term rentals, vacation homes, for rent by owner homes, and Lo De Marcos Mexico apartment rentals
Puerto Penasco-Rocky Point Mexico rental home and Puerto Penasco-Rocky Point Mexico vacation rentals
Houses for rent in Alamos Mexico, Alamos Mexico rent house, and vacation homes for rent by owner in Alamos
Vacation rentals Alamos, condo rentals in Alamos, vacation rental in Alamos Mexico, and Alamos Mexico rent house
#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
|
|