|
<%@ 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
Rental properties in Puerto Aventuras Mexico and Puerto Aventuras Mexico house rentals
Rent house Isla Holbox, Isla Holbox Mexico vacation rentals, and apartments for rent Isla Holbox
Teotitlan del Valle Mexico condos for rent, apartment rentals, Teotitlan del Valle Mexico home rentals, and Teotitlan del Valle Mexico bed and breakfast rentals
House rentals in Puerto Escondido Mexico and real estate rentals
Aticama Mexico vacation homes for rent by owner, homes for rent by owner in Aticama Mexico, and rental apartment in Aticama Mexico
Vacation homes for rent by owner in La Paz Mexico, holiday rentals, vacation rentals, and La Paz Mexico real estate rentals
Homes for rent and rental properties Nuevo Vallarta Mexico
Rental home Todos Santos, condo rentals, and vacation rental Todos Santos Mexico
Vacation rentals in Zihuatanejo, vacation homes Zihuatanejo, houses for rent in Zihuatanejo, and homes for rent
Vacation homes in Cozumel Island Mexico and vacation homes for rent by owner Cozumel Island Mexico
Rent houses Lo De Marcos, home rentals Lo De Marcos, and condo rentals Lo De Marcos Mexico
Puerto Escondido Mexico houses for rent, rental properties Puerto Escondido, short term rentals Puerto Escondido, and Puerto Escondido Mexico rental houses
Cabo San Lucas Mexico bed and breakfast rentals and rent houses in Cabo San Lucas
Holiday rentals, rental homes in Chacala Mexico, and for rent by owner homes Chacala
Puerto Nuevo rental home, Puerto Nuevo Mexico rental properties, condo rentals Puerto Nuevo, and homes for rent by owner in Puerto Nuevo Mexico
Oaxaca Mexico condos for rent and rental home in Oaxaca Mexico
Merida Mexico homes for rent by owner, homes for rent by owner in Merida, and Merida rent house
Oaxaca Mexico holiday rentals, apartments for rent in Oaxaca, Oaxaca Mexico rent houses, and rent houses Oaxaca Mexico
La Cruz de Huanacaxtle Mexico real estate rentals and bed and breakfast rentals in La Cruz de Huanacaxtle Mexico
Morelia Mexico bed and breakfast rentals, vacation homes for rent by owner in Morelia Mexico, and Morelia Mexico house rentals
Playa del Carmen homes for rent, Playa del Carmen condo rentals, apartments for rent Playa del Carmen, and Playa del Carmen Mexico rental properties
Chacala home rentals and Chacala rent houses
Short term rentals, Bucerias Mexico condo rentals, and apartment rentals Bucerias
Condo rentals La Ribera, La Ribera Mexico house rentals, rental home, and real estate rentals La Ribera
Xcalak home rentals and house rentals Xcalak
#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
|
|