PMA\libraries\DisplayResults::_getMoveForwardButtonsForTableNavigation PHP Method

_getMoveForwardButtonsForTableNavigation() private method

Prepare move forward buttons - next and last
See also: _getTableNavigation()
private _getMoveForwardButtonsForTableNavigation ( string $html_sql_query, integer $pos_next, boolean $is_innodb ) : string
$html_sql_query string the sql encoded by htmlspecialchars()
$pos_next integer the offset for the "next" page
$is_innodb boolean whether it's InnoDB or not
return string $buttons_html html content
    private function _getMoveForwardButtonsForTableNavigation($html_sql_query, $pos_next, $is_innodb)
    {
        // display the Next button
        $buttons_html = $this->_getTableNavigationButton('>', _pgettext('Next page', 'Next'), $pos_next, $html_sql_query, false);
        // prepare some options for the End button
        if ($is_innodb && $this->__get('unlim_num_rows') > $GLOBALS['cfg']['MaxExactCount']) {
            $input_for_real_end = '<input id="real_end_input" type="hidden" ' . 'name="find_real_end" value="1" />';
            // no backquote around this message
            $onclick = '';
        } else {
            $input_for_real_end = $onclick = '';
        }
        $maxRows = $_SESSION['tmpval']['max_rows'];
        $onsubmit = 'onsubmit="return ' . ($_SESSION['tmpval']['pos'] + $maxRows < $this->__get('unlim_num_rows') && $this->__get('num_rows') >= $maxRows ? 'true' : 'false') . '"';
        // display the End button
        $buttons_html .= $this->_getTableNavigationButton('&gt;&gt;', _pgettext('Last page', 'End'), @((ceil($this->__get('unlim_num_rows') / $_SESSION['tmpval']['max_rows']) - 1) * $maxRows), $html_sql_query, false, $onsubmit, $input_for_real_end, $onclick);
        return $buttons_html;
    }
DisplayResults