$tab = "circulation"; $restrictToMbrAuth = TRUE; $nav = "locdelete"; require_once "../shared/logincheck.php"; require_once "../classes/Location.php"; require_once "../classes/LocationQuery.php"; require_once "../classes/BiblioSearchQuery.php"; require_once "../classes/Localize.php"; $loc = new Localize(OBIB_LOCALE, $tab); $locationid = $_GET["locationid"]; #**************************************************************************** #* Getting Location name #**************************************************************************** $locQ = new LocationQuery(); $locQ->connect(); $location = $locQ->get($locationid); $locQ->close(); $locationName = $location->getAddressOne() . " " . $location->getAddressTwo(); #**************************************************************************** #* Check to see if there are any books checked out #**************************************************************************** $biblioQ = new BiblioSearchQuery(); $biblioQ->connect(); if ($biblioQ->errorOccurred()) { $biblioQ->close(); displayErrorPage($biblioQ); } if (!$biblioQ->checkoutLocationQuery($locationid)) { $biblioQ->close(); $checkoutCount = 5; }
} #**************************************************************************** #* Retrieving get location id #**************************************************************************** $locationid = $_GET["locationid"]; if (isset($_GET["msg"])) { $msg = "<font class=\"error\">" . H($_GET["msg"]) . "</font><br><br>"; } else { $msg = ""; } #**************************************************************************** #* Search database for location #**************************************************************************** $lotQ = new LocationQuery(); $lotQ->connect(); $lot = $lotQ->get($locationid); $lotQ->close(); $staffQ = new StaffQuery(); $staffQ->connect(); $staff = $staffQ->getFirstNameLastName($lot->getStaffid()); $staffQ->close(); #************************************************************************** #* Show location information #************************************************************************** require_once "../shared/header.php"; ?> <?php echo $msg; ?>