/** * Display a pagination, for listings controllers * * @static * @access public * @param integer [$p] Current page * @param integer [$max] Maximum pages available * @param string [$link] Additional GET parameter, if in a search * @param string [$text] Text to display after older/newest */ public static function pagination($p, $max, $link, $text) { echo '<nav id="pagination">'; if ($p < $max) { echo '<a class="a_button" href="index.php?ns=' . VGet::ns() . '&ctl=' . VGet::ctl('manage') . $link . '&p=' . ($p + 1) . '">Older ' . $text . '</a>'; } if ($p > 1) { echo '<a class="a_button" href="index.php?ns=' . VGet::ns() . '&ctl=' . VGet::ctl('manage') . $link . '&p=' . ($p - 1) . '">Newest ' . $text . '</a>'; } echo '</nav>'; }
* * This file is part of Lynxpress. * * Lynxpress is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Lynxpress is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Lynxpress. If not, see http://www.gnu.org/licenses/. */ require_once 'needed.php'; use Library\Variable\Get as VGet; try { $controller = '\\Admin\\' . ucfirst(VGet::ns('timeline')) . '\\' . ucfirst(VGet::ctl('manage')); $page = new $controller(); if ($page->html === true) { require_once INC . 'html/header.php'; } $page->display_content(); if ($page->html === true) { require_once INC . 'html/footer.html'; } } catch (Exception $e) { die('<h1>' . $e->getMessage() . '</h1>'); }
images/lynxpress-mini.png" /> <link rel="stylesheet" type="text/css" href="<?php echo PATH; ?> css/admin.css" /> <link rel="stylesheet" type="text/css" href="<?php echo PATH; ?> fancybox/jquery.fancybox.css" media="screen" /> <link rel="stylesheet" type="text/css" href="<?php echo PATH; ?> fancybox/helpers/jquery.fancybox-buttons.css?v=2.0.3" /> <?php if (file_exists(PATH . 'css/' . VGet::ns() . '.css')) { echo '<link rel="stylesheet" type="text/css" href="' . PATH . 'css/' . VGet::ns() . '.css" />'; } ?> <script type="text/javascript" src="<?php echo PATH; ?> js/jquery-1.7.1.min.js"></script> <script type="text/javascript" src="<?php echo PATH; ?> js/jquery.mousewheel-3.0.6.pack.js"></script> <script type="text/javascript" src="<?php echo PATH; ?> fancybox/jquery.fancybox.js"></script>