<?php require 'UsersDatabase.php'; session_start(); // Array to store login errors if they occur $loginerrors = isset($_SESSION['loginerrors']) ? $_SESSION['loginerrors'] : []; $fields = isset($_SESSION['fields']) ? $_SESSION['fields'] : []; $usersData = new UsersDatabase('data/users.json'); if (isset($_SESSION['username'])) { $username = $_SESSION['username']; $name = $usersData->userFullName($username); } ?> <!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>100Acres - Login</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> <link rel="stylesheet" href="css/font-awesome.min.css"> <link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" href="css/styles.css"> </head>
<div role="tabpanel" class="tab-pane active" id="all_properties"> <?php foreach ($allProperties as $property) { ?> <div class="report__propertyRow"> <div class="row"> <!-- Property Name --> <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 report__propertyRow__name"> <?php echo $property['name']; ?> </div> <!-- Property Owner --> <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3"> <?php echo $usersDatabase->userFullName($property['owner']); ?> </div> <!-- Propertry Buyer if exists --> <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3"> <?php echo $usersDatabase->userFullName($property['buyer']); ?> </div> <!-- Property price --> <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 report__propertyRow__price"> ₹<?php $currentPropertyPrice = $property['price']; $totalPriceAllProperties += $currentPropertyPrice; echo $currentPropertyPrice; ?>