PMA\libraries\Util::getStartAndNumberOfRowsPanel PHP Method

getStartAndNumberOfRowsPanel() public static method

Function to get html for the start row and number of rows panel
public static getStartAndNumberOfRowsPanel ( string $sql_query ) : string
$sql_query string sql query
return string html
    public static function getStartAndNumberOfRowsPanel($sql_query)
    {
        $pos = isset($_REQUEST['pos']) ? $_REQUEST['pos'] : $_SESSION['tmpval']['pos'];
        if (isset($_REQUEST['session_max_rows'])) {
            $rows = $_REQUEST['session_max_rows'];
        } else {
            if ($_SESSION['tmpval']['max_rows'] != 'all') {
                $rows = $_SESSION['tmpval']['max_rows'];
            } else {
                $rows = $GLOBALS['cfg']['MaxRows'];
            }
        }
        return Template::get('startAndNumberOfRowsPanel')->render(array('pos' => $pos, 'unlim_num_rows' => intval($_REQUEST['unlim_num_rows']), 'rows' => $rows, 'sql_query' => $sql_query));
    }
Util