PMA\libraries\DisplayResults::_getAdditionalFieldsForTableNavigation PHP Méthode

_getAdditionalFieldsForTableNavigation() private méthode

Prepare fields for table navigation Number of rows
See also: _getTableNavigation()
private _getAdditionalFieldsForTableNavigation ( string $html_sql_query ) : string
$html_sql_query string the sql encoded by htmlspecialchars()
Résultat string $additional_fields_html html content
    private function _getAdditionalFieldsForTableNavigation($html_sql_query)
    {
        $additional_fields_html = '';
        $additional_fields_html .= '<input type="hidden" name="sql_query" ' . 'value="' . $html_sql_query . '" />' . '<input type="hidden" name="goto" value="' . $this->__get('goto') . '" />' . '<input type="hidden" name="pos" size="3" value="' . $_SESSION['tmpval']['pos'] . '" />' . '<input type="hidden" name="is_browse_distinct" value="' . $this->__get('is_browse_distinct') . '" />';
        $numberOfRowsPlaceholder = null;
        if ($_SESSION['tmpval']['max_rows'] == self::ALL_ROWS) {
            $numberOfRowsPlaceholder = __('All');
        }
        $numberOfRowsChoices = array('25' => 25, '50' => 50, '100' => 100, '250' => 250, '500' => 500);
        $additional_fields_html .= __('Number of rows:') . ' ';
        $additional_fields_html .= Util::getDropdown('session_max_rows', $numberOfRowsChoices, $_SESSION['tmpval']['max_rows'], '', 'autosubmit', $numberOfRowsPlaceholder);
        return $additional_fields_html;
    }
DisplayResults