|
<%@ 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
Costa Bella Mexico rental houses and vacation homes for rent by owner Costa Bella
Holiday rentals Mission Viejo Mexico, real estate rentals in Mission Viejo Mexico, and homes for rent by owner in Mission Viejo Mexico
Rental apartment San Jose del Cabo, rental home in San Jose del Cabo Mexico, real estate rentals in San Jose del Cabo Mexico, and rental home
Houses for rent in San Miguel de Allende and San Miguel de Allende Mexico vacation rental
Vacation rental in Los Cabos Corridor, Los Cabos Corridor real estate rentals, and for rent by owner homes Los Cabos Corridor
Apartment rentals in San Jose del Cabo Mexico, vacation homes for rent by owner San Jose del Cabo Mexico, San Jose del Cabo Mexico apartment rentals, and San Jose del Cabo Mexico rental homes
Short term rentals in El Cuyo Mexico and for rent by owner homes El Cuyo Mexico
For rent by owner homes in Sayulita, rental homes in Sayulita Mexico, and vacation rental
Vacation homes for rent by owner in San Jose del Cabo, vacation homes San Jose del Cabo, house rentals in San Jose del Cabo Mexico, and rental home in San Jose del Cabo Mexico
Vacation rentals in Lo De Marcos and vacation rentals
Tzintzuntzan vacation homes for rent by owner, holiday rentals in Tzintzuntzan Mexico, and vacation rentals in Tzintzuntzan
Rental properties, Los Frailes Mexico apartments for rent, rental home Los Frailes Mexico, and holiday rentals Los Frailes
Rental apartment and house rentals Jocotepec
For rent by owner homes in Baja del Mar, home rentals in Baja del Mar Mexico, and vacation rentals
Rental properties in San Luis Potosi Mexico, San Luis Potosi rent houses, San Luis Potosi Mexico rental homes, and homes for rent by owner
Houses for rent in Dolores Hidalgo Mexico and real estate rentals in Dolores Hidalgo Mexico
Vacation homes Bajamar Mexico, rent houses in Bajamar Mexico, and Bajamar Mexico vacation rental
Rent house in Las Gaviotas Mexico, short term rentals Las Gaviotas, rent house in Las Gaviotas Mexico, and Las Gaviotas Mexico bed and breakfast rentals
Home rentals Chicxulub and rental apartment in Chicxulub Mexico
Huatulco Mexico real estate rentals, condo rentals in Huatulco, and Huatulco Mexico homes for rent
Rent house, vacation homes La Jolla de Rosarito, rental houses in La Jolla de Rosarito, and La Jolla de Rosarito Mexico rental apartment
Short term rentals in Los Frailes Mexico and Los Frailes vacation rental
Houses for rent, rent house, and apartments for rent Oaxaca
Platanitos Mexico vacation homes, real estate rentals Platanitos Mexico, Platanitos rental homes, and condo rentals in Platanitos
Los Cabos Corridor homes for rent and Los Cabos Corridor Mexico apartments for rent
Tzintzuntzan Mexico rental apartment, condos for rent, and rental home in Tzintzuntzan Mexico
Bed and breakfast rentals, rent houses Loreto, houses for rent Loreto, and Loreto Mexico rental apartment
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
|
|