?> </select> </div> <input type="submit" value="Add New Booking"> </form> </div> <?php } else { //if user is not a manager, just allow them to register for open houses echo "<h2> Register for Open Houses </h2>"; ShowBookingsForHouse($house->ID, IsManager()); } ?> </div> <?php if (IsManager()) { //Include manage property box include "ManagerForms.php"; } else { //Include enquire box and apply box include "UserForms.php"; } ?> </Body> <script> //Cycle through different images for house view //Images array should contain the image urls from database var Images = ["http://52.64.24.127/Houses/HillHouse.jpg","http://52.64.24.127/Houses/NambungHouse.jpg","http://52.64.24.127/Houses/EnglefieldHouse.jpg"]; var CurrentImage = 0; $(document).ready(function() {
?> <div class="ProfilePage"> <h1> Profile Page </h1> <div class="UserDetails"> <?php $user = GetUserByUsername(Username()); echo "<div class='InputLine'> <div class='boldlabel'> Username: </div> {$user->Username} </div>"; echo "<div class='InputLine'> <div class='boldlabel'> Name: </div>{$user->Name} </div>"; echo "<div class='InputLine'> <div class='boldlabel'> Email: </div>{$user->Email} </div>"; echo "<div class='InputLine'> <div class='boldlabel'> Phone Number: </div> {$user->PhoneNumber} </div>"; ?> </div> <?php //Show user applications if (!IsManager()) { echo "<h2> Current Applications </h2>"; $apps = GetUserApplications(Username()); foreach ($apps as $app) { ShowUserApplication($app); } if (count($apps) == 0) { echo "<h3> You haven't applied to any properties </h3>"; } } ?> </div> </body> </html>