// foreach end
    echo "</table>";
}
echo '</head>';
?>

<body>
<?php 
printLogoAndLinks();
?>
<div id="main">
<a name="top"></a>
<?php 
printTabs();
// getting the counts
$albumcount = $gallery->getNumAlbums(true);
$albumscount_unpub = $albumcount - $gallery->getNumAlbums(true, true);
$imagecount = $gallery->getNumImages();
$imagecount_unpub = $imagecount - $gallery->getNumImages(true);
?>
<div id="content">
<?php 
zp_apply_filter('admin_note', 'statistics', '');
?>
<h1><?php 
echo gettext("Gallery Statistics");
?>
</h1>
<p><?php 
echo gettext("This page shows more detailed statistics of your gallery. For album statistics the bar graph always shows the total number of images in that album. For image statistics always the album the image is in is shown.<br />Un-published items are marked in dark red. Images are marked un-published if their (direct) album is, too.");
?>
Exemplo n.º 2
0
</h2>
			<ul>
				<li>
				<?php 
        $t = $gallery->getNumImages();
        $c = $t - $gallery->getNumImages(true);
        if ($c > 0) {
            printf(ngettext('<strong>%1$u</strong> Image (%2$u un-published)', '<strong>%1$u</strong> Images (%2$u un-published)', $t), $t, $c);
        } else {
            printf(ngettext('<strong>%u</strong> Image', '<strong>%u</strong> Images', $t), $t);
        }
        ?>
				</li>
				<li>
				<?php 
        $t = $gallery->getNumAlbums(true);
        $c = $t - $gallery->getNumAlbums(true, true);
        if ($c > 0) {
            printf(ngettext('<strong>%1$u</strong> Album (%2$u un-published)', '<strong>%1$u</strong> Albums (%2$u un-published)', $t), $t, $c);
        } else {
            printf(ngettext('<strong>%u</strong> Album', '<strong>%u</strong> Albums', $t), $t);
        }
        ?>
				</li>
				<li>
				<?php 
        $t = $gallery->getNumComments(true);
        $c = $t - $gallery->getNumComments(false);
        if ($c > 0) {
            printf(ngettext('<strong>%1$u</strong> Comment (%2$u in moderation)', '<strong>%1$u</strong> Comments (%2$u in moderation)', $t), $t, $c);
        } else {