<?php require_once 'XNC/HTML.php'; ?>
<?php require_once 'GoogleMapsHelper.php'; ?>
<?php echo GoogleMapsHelper::displayGoogleMapForArray($subjects, '99%', '300px', Config::$googleMapsInitialExtentURL); ?>

<h2>All <?php echo HTMLHelper::pluralize(Config::$subjectDescription, 2) ?></h2>
<p>Displaying <?php echo $query->getTotalCount() . " " . HTMLHelper::pluralize(Config::$subjectDescription, $query->getTotalCount()) ?> , out of a total of <?php  echo $stats[strtolower(Config::$subjectType)] ?>.</p>
<p class="sortBy">
<strong>Sort by:</strong> 
<?php echo XNC_HTML::buildLinkList('sort', Config::$sortNames); ?>
</p>

<?php include 'html/subjectTable.php'; ?>

<h4>
<a href="addSubject.php">+ Add A <?php echo Config::$subjectType; ?></a>
</h4>

<p class="xnc_html_nav"><a href='/?<?php echo ($_GET['sort'] ? "sort=".$_GET['sort']."&" : "") ?>mode=rss&xn_auth=no'><?php 
if (file_exists('/' . XN_Application::load()->relativeUrl . '/images/xml.gif')) { 
    echo '<img src="/images/xml.gif" alt="RSS Feed" style="border:0px;" />'; 
}
else {
    echo "RSS Feed"; 
}
?></a></p>
<p class="xnc_html_nav">
<?php 
$pageStart = $start;
$numItems = $query->getTotalCount();
$pageEnd = $query->getResultTo();
$page = $_GET['start']/Config::$pageSize;
include "html/paginate.bot.php";
 ?>
</p>
<?php include 'html/contentManagerLink.php'; ?>
