Example #1
0
    }
    $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');
?>
"> <img src="<?php 
echo WEBPATH . '/' . ZENFOLDER;
?>
/images/add.png" alt="" /> <strong><?php 
echo gettext("New Article");
?>
    } else {
        $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&amp;add&amp;XSRFToken=<?php 
echo getXSRFToken('add');
?>
"> <img src="images/add.png" alt="" /> <strong><?php 
echo gettext("New Article");
?>
</strong></a>
          </span>
          <br style="clear: both" />