<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> </div>
?> </td></tr> <tr><td>New Password</td><td><?php ctrl_input_field($errors, 'text', 'REQUIRED', 'password', '', 'txtPassword', $ownerDetails['password']); ?> </td></tr> <tr><td>First Name</td><td><?php ctrl_input_field($errors, 'text', 'REQUIRED', 'firstName', '', 'txtFirstName', $ownerDetails['firstName']); ?> </td></tr> <tr><td>Last Name</td><td><?php ctrl_input_field($errors, 'text', 'OPTIONAL', 'lastName', '', 'txtLastName', $ownerDetails['lastName']); ?> </td></tr> <tr><td>Date of Birth</td><td><?php ctrl_input_field($errors, 'date', 'OPTIONAL', 'DOB', '', 'dtpDOB', $ownerDetails['DOB']); ?> </td></tr> <?php $genderValues = array('male', 'female'); $genderLabels = array('Male', 'Female'); ?> <tr><td><?php ctrl_input_radio($errors, 'gender', $genderValues, $genderLabels, 'classNameNotImplemented', $selectedGender); ?> </td></tr> <tr><td><?php ctrl_submit('Save'); ?> </td></tr> </tbody>
ctrl_input_field($errors, 'number', 'REQUIRED', 'defaultRent', '', ''); ?> </td></tr> <tr><td>Default Period</td><td><?php ctrl_input_field($errors, 'number', 'REQUIRED', 'defaultPeriod', '', ''); ?> </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
require 'includes/functions/validate.php'; validateText($errors, $_POST, 'address'); if (!$errors) { // echo "The number of rooms is *". $_POST['description'].'*'; db_addProperty($_POST['numOfRooms'], $_POST['defaultRent'], $_POST['defaultPeriod'], $_POST['buyingPrice'], $_POST['address'], $_POST['description']); header("location: http://{$_SERVER['HTTP_HOST']}/property-Management-application/searchProperties.php"); exit; } } ?> <html> <head> <title>Add Whole House </title> </head> <body> <?php include '/includes/content/topNav.php'; ?> <form class= 'editForm' action = "addProperty.php" method = "POST" name = "addWHouse"> <?php ctrl_input_field($errors, 'number', 'REQUIRED', 'defaultRent', 'Default Rent (Weekly)', 'txtDefaultRent'); ctrl_input_field($errors, 'number', 'REQUIRED', 'numOfRooms', 'Number of Rooms', 'txtNumRooms'); ctrl_input_field($errors, 'number', 'REQUIRED', 'defaultPeriod', 'Default Rental Period', 'txtDefaultRentalPeriod'); ctrl_input_field($errors, 'number', 'REQUIRED', 'buyingPrice', 'Buying Price', 'txtBuyingPrice'); ctrl_input_field($errors, 'text', 'OPTIONAL', 'description', 'Description', 'txtDescription'); ctrl_input_field($errors, 'text', 'REQUIRED', 'address', 'Address', 'txtAddress'); ctrl_submit('Save'); ?> </form> </body> </html>
?> <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>Tenant Profile</title> <head> <link rel='stylesheet' href = 'css/global.css' type = 'text/css'/> <link rel='stylesheet' href = 'css/tenantProfile.css' type = 'text/css'/> </head> <body> <?php include '/includes/content/topNav.php'; ?> <form class= 'editForm' action = "tenantProfile.php" method = "POST" name = "updateTenantAccount"> <?php $tenantDetails = db_getTenantDetails($loginId); $selectedGender; if ($tenantDetails['isMale'] == "1") { $selectedGender = 'male'; } else { $selectedGender = 'female'; } ctrl_input_field($errors, 'text', 'REQUIRED', 'email', 'Your Email', 'txtEmail', $tenantDetails['email']); ctrl_input_field($errors, 'text', 'REQUIRED', 'password', 'New Password', 'txtPassword', $tenantDetails['password']); ctrl_input_field($errors, 'text', 'REQUIRED', 'firstName', 'First Name', 'txtFirstName', $tenantDetails['firstName']); ctrl_input_field($errors, 'text', 'OPTIONAL', 'lastName', 'Last Name', 'txtLastName', $tenantDetails['lastName']); ctrl_input_field($errors, 'date', 'OPTIONAL', 'DOB', 'Date of Birth', 'dtpDOB', $tenantDetails['DOB']); $genderValues = array('male', 'female'); $genderLabels = array('Male', 'Female'); ctrl_input_radio($errors, 'gender', $genderValues, $genderLabels, 'classNameNotImplemented', $selectedGender); ctrl_submit('Save'); ?> </form> </body> </html>