<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> </div> <div id=searchResults> <?php if (isset($_POST['submit'])) { if ($_POST['propertyType'] == 2) { $results = db_searchProperties_s_house($_POST['searchinput'], $_POST['MinBed'], $maxBed); foreach ($results as $row) { ?> <div class="panel panel-primary">
</td></tr> <tr><td>Buying Price</td><td><?php ctrl_input_field($errors, 'number', 'REQUIRED', 'buyingPrice', '', ''); ?> </td></tr> <tr><td>Image</td><td><?php ctrl_input_field($errors, 'file', 'REQUIRED', 'userfile', '', ''); ?> </td></tr> <tr><td></td><td><div align="right"><button class="btn btn-sm btn-primary" type="submit" value=" Send" id="submit" >Save</button></div> <br><?php ctrl_submit('Save'); ?> </td></tr> </tbody> </table> </form> <?php if (isset($_POST['submit'])) { require 'includes/functions/validate.php'; validateText($errors, $_POST, 'address'); if (!$errors) { // echo "The number of rooms is *". $_POST['description'].'*'; db_addProperty($_POST['numOfRooms'], $_POST['numberofBaths'], $_POST['numberOfCarParks'], $_POST['defaultRent'], $_POST['defaultPeriod'], $_POST['buyingPrice'], $_POST['address'], $_POST['description'], $_POST['suburb'], $_POST['state'], $_POST['postcode'], $_FILES['userfile']); header("location: http://{$_SERVER['HTTP_HOST']}/property-Management-application/searchProperties.php");
?> <tr><td>Max Overnight Guests</td><td> <?php ctrl_input_field($errors, 'number', 'REQUIRED', 'maxOvernightGuests', '', 'txtmaxOvernightGuests', $sHouseDetails['maxOvernightGuests']); ?> </td></tr> <tr><td><?php ctrl_submit('Save'); ?> </td></tr> </tbody> </table> </form> </div> </div> <form class='centredEditForm' action = 'updateSHouse.php' method="POST" name="deleteSHouse"> <?php ctrl_input_field($errors, 'hidden', 'REQUIRED', 'sHouseId', 'sHouseId', 'txtsHouseId', $sHouseDetails['sHouseId']); ?> <?php ctrl_input_field($errors, 'hidden', 'REQUIRED', 'toDelete', 'toDelete', 'txtToDelete', 'YES'); ?> <?php ctrl_submit('Delete'); ?> </form> </body> </html>
<form class= 'loginForm' action = "login.php" method = "POST" name = "login"> <?php require 'includes/functions/formControls.php'; ctrl_input_field($errors, 'text', 'REQUIRED', 'email', 'Username (Email)', 'txtInput'); ctrl_input_field($errors, 'password', 'REQUIRED', 'password', 'Password', 'txtInput'); ctrl_submit('Login'); ?> </form>
?> </td></tr> </tbody> </table> ======= <html> <title>Register Tenant</title> <head> <link rel='stylesheet' href = 'css/global.css' type = 'text/css'/> <link rel='stylesheet' href = 'css/registerTenant.css' type = 'text/css'/> </head> <body> <?php include '/includes/content/topNav.php'; ?> <form class= 'regForm' action = "register.php" method = "POST" name = "registerTenantAccount"> <?php ctrl_input_field($errors, 'text', 'REQUIRED', 'email', 'Your Email', 'txtEmail'); ctrl_input_field($errors, 'text', 'REQUIRED', 'password', 'New Password', 'txtPassword'); ctrl_input_field($errors, 'text', 'REQUIRED', 'firstName', 'First Name', 'txtFirstName'); ctrl_input_field($errors, 'text', 'OPTIONAL', 'lastName', 'Last Name', 'txtLastName'); ctrl_input_field($errors, 'date', 'OPTIONAL', 'DOB', 'Date of Birth', 'dtpDOB'); $genderValues = array('male', 'female'); $genderLabels = array('Male', 'Female'); ctrl_input_radio($errors, 'gender', $genderValues, $genderLabels, 'classNameNotImplemented', 'male'); ctrl_submit('Register'); ?> >>>>>>> origin/master </form> </body> </html>
<title>Search data</title> <head> <link rel='stylesheet' href = 'css/global.css' type = 'text/css'/> </head> <body> <?php include '/includes/content/topNav.php'; ?> <form method="post" action="search1.php"> <fieldset> <?php $wHouseDetails = db_getWHouseDetails($propertyId); ctrl_input_field($errors, 'text', 'REQUIRED', 'address', 'Address', 'txtAddress', $wHouseDetails['address']); ctrl_submit('submit', 'submit'); ?> <input type="submit" name="submit" value="Search"/><br> <table> <tr><td>Property Type</td><td>Min Bed</td><td>Max Bed</td><td>Min Price</td><td>Max Price</td></tr> </table> <select id="propertytype" name="propertytype"> <option value="any">Any</option> <option value="wholehouse">Whole House</option> <option value="sharehouse">Share House</option> </select> <select name="Min Bed"> <option value="Any">Any</option> <option value="1">1</option> <option value="2">2</option>