$locationFK = $row['LocationFK'];
        $userPK = $row['UserPk'];
        $userRole = $row['RoleFk'];
    }
    $_SESSION['userLoc'] = $locationFK;
    $_SESSION['userPK'] = $userPK;
    $_SESSION['userRole'] = $userRole;
    $_SESSION['userLocationDesc'] = $location;
    $_SESSION['fullName'] = $fullName;
}
//echo $locationFK;
$bookCount = $obj->getArtefactCount($locationFK, 'Book');
$videoCount = $obj->getArtefactCount($locationFK, 'Video');
$audioCount = $obj->getArtefactCount($locationFK, 'Audio');
$magazineCount = $obj->getArtefactCount($locationFK, 'Magazine');
$pages = $obj->getPages($_SESSION['userPK']);
// 	/print_r($pages);
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
 <link rel="icon"
          type="image/png"
          href="../../images/logo.png"/>

    <LINK REL="SHORTCUT ICON"
<?php

define("PAGENAME", "Report");
include '../common/Config.php';
session_start();
if (!isset($_SESSION['artefactUser'])) {
    header("Location: ../../index.php");
}
include '../common/DatabaseConnection.php';
$db = new DatabaseConnection();
$db->createConnection();
$pages = $db->getPages($_SESSION['userPK']);
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <link rel="icon"
          type="image/png"
          href="../../images/logo.png"/>

    <LINK REL="SHORTCUT ICON"
          HREF="../../images/logo.png">


    <title>Global Archive</title>
    <link href="../../css/bootstrap.min.css" rel="stylesheet">