<link href="css/theme.css" rel="stylesheet"> <title>Search data</title> <!-- <link rel='stylesheet' href = 'css/search.css' type = 'text/css'/> --> </head> <body> <?php include '/includes/content/topNav.php'; ?> <div class="page-header"> <h1>Property Search</h1> <form class="searchBox" method="post" action="searchProperties.php"> <fieldset> <?php include 'includes/functions/formControls.php'; $wHouseDetails = db_getWHouseDetails($propertyId); ctrl_input_field($errors, 'text', 'REQUIRED', 'searchinput', 'Address ', 'txtAddress', $wHouseDetails['address']); $value_propertytype = array('Property Type', 'WholeHouse', 'ShareHouse'); $value_bedMin = array('Min Beds', '1', '2', '3', '4', '5'); $value_bedMax = array('Max Beds', '1', '2', '3', '4', '5'); $value_priceMin = array('Min Price', '50000', '100000', '200000', '300000', '400000', '500000', '1000000', '10000000'); $value_priceMax = array('Max Price', '50000', '100000', '200000', '300000', '400000', '500000', '1000000', '10000000'); ctrl_select($errors, 'propertyType', $value_propertytype, 'Class_1', ''); ctrl_select($errors, 'MinBed', $value_bedMin, 'Class_2', ''); ctrl_select($errors, 'MaxBed', $value_bedMax, 'Class_3', ''); ctrl_select($errors, 'MinPrice', $value_priceMin, 'Class_4', true); ctrl_select($errors, 'MaxPrice', $value_priceMax, 'Class_5', true); ctrl_submit('Search', 'submit'); ?> </fieldset> </form>
<link href="css/bootstrap-theme.min.css" rel="stylesheet"> <link href="css/theme.css" rel="stylesheet"> <title>Property Data</title> <link rel='stylesheet' href = 'css/page.css' type = 'text/css'/> </head> <body> <div class="page-header"> <h1>Property View</h1> </div> <?php include 'includes/accountSessions.php'; include 'includes/functions/db.php'; include 'includes/content/topNav.php'; $id = isset($_GET["data"]) ? (int) $_GET["data"] : 1; $result = db_getWHouseDetails($id); echo '<div id=content>'; echo '<div id=Address>' . $result["Address"] . '</div>'; ?> <div id=Picture><img src="data:image/jpeg;base64,<?php echo base64_encode($result["image"]); ?> " /></div> <?php echo '<div id=RoomNum>Number of rooms: ' . $result["NumberofRooms"] . '</div>'; echo '<div id=Price>Buying Price: $' . $result["BuyingPrice"] . '</div>'; echo '<div id=Description>Description: ' . $result["Description"] . '</div>'; echo '</div>'; ?>