Exemplo n.º 1
0
    foreach ($result as $article) {
        $list[] = $article[$sortorder];
    }
    if ($sortorder == 'title') {
        $rangeset = getPageSelector($list, $articles_page);
    } else {
        $rangeset = getPageSelector($list, $articles_page, 'dateDiff');
    }
    $options = array_merge(array('page' => 'news', 'tab' => 'articles'), getNewsAdminOption(NULL));
    $result = array_slice($result, $offset, $articles_page);
} else {
    $rangeset = $options = array();
}
?>
					<span class="zenpagestats"><?php 
printNewsStatistic($articles, count($resultU));
?>
</span>
					</h1>
					<div class="floatright">
						<?php 
printAuthorDropdown();
printCategoryDropdown();
printNewsDatesDropdown();
printUnpublishedDropdown();
printSortOrderDropdown();
printArticlesPerPageDropdown($subpage);
?>
						<span class="buttons">
							<a href="admin-edit.php?newsarticle&amp;add&amp;XSRFToken=<?php 
echo getXSRFToken('add');
Exemplo n.º 2
0
    } else {
        printf(ngettext('<strong>%u</strong> Comment', '<strong>%u</strong> Comments', $t), $t);
    }
    ?>
							</li>
							<?php 
    if (extensionEnabled('zenpage')) {
        ?>
								<li>
									<?php 
        printPagesStatistic();
        ?>
								</li>
								<li>
									<?php 
        printNewsStatistic();
        ?>
								</li>
								<li>
									<?php 
        printCategoriesStatistic();
        ?>
								</li>
								<?php 
    }
    ?>
						</ul>
					</div><!-- overview-gallerystats -->

					<?php 
    zp_apply_filter('admin_overview');