} } if ($articles_page) { $offset = $_zp_zenpage->getOffset($articles_page); $total = ceil($articles / $articles_page); $result = array_slice($result, $offset, $articles_page); } ?> <span class="zenpagestats"><?php printNewsStatistic($articles, count($resultU)); ?> </span></h1> <div class="floatright"> <?php printCategoryDropdown(); printArticleDatesDropdown(); printUnpublishedDropdown(); ?> <?php //echo "optionpath: ".getNewsAdminOptionPath(true,true,true); // debugging only; ?> <span class="buttons"> <a href="admin-edit.php?newsarticle&add&add&XSRFToken=<?php echo getXSRFToken('add'); ?> " title="<?php echo gettext('New Article'); ?> "><img src="images/add.png" alt="" /> <strong><?php echo gettext("New Article"); ?>
$rangeset = getPageSelector($list, $articles_page); } $options = array_merge(array('page' => 'news', 'tab' => 'articles'), getNewsAdminOption(array('category' => 0, 'date' => 0, 'published' => 0, 'sortorder' => 0, 'articles_page' => 1))); $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 printCategoryDropdown($subpage); printArticleDatesDropdown($subpage); printUnpublishedDropdown($subpage); printSortOrderDropdown($subpage); printArticlesPerPageDropdown($subpage); ?> <span class="buttons"> <a href="admin-edit.php?newsarticle&add&XSRFToken=<?php echo getXSRFToken('add'); ?> "> <img src="images/add.png" alt="" /> <strong><?php echo gettext("New Article"); ?> </strong></a> </span> <br style="clear: both" /> </div>