PMA\libraries\DbQbe::_getTablesList PHP Method

_getTablesList() private method

Provides a select list of database tables
private _getTablesList ( ) : string
return string HTML for table select list
    private function _getTablesList()
    {
        $html_output = '<div class="floatleft">';
        $html_output .= '<fieldset>';
        $html_output .= '<legend>' . __('Use Tables') . '</legend>';
        // Build the options list for each table name
        $options = '';
        $numTableListOptions = 0;
        foreach ($this->_criteriaTables as $key => $val) {
            $options .= '<option value="' . htmlspecialchars($key) . '"' . $val . '>' . str_replace(' ', '&nbsp;', htmlspecialchars($key)) . '</option>';
            $numTableListOptions++;
        }
        $html_output .= '<select name="TableList[]"' . ' multiple="multiple" id="listTable"' . ' size="' . ($numTableListOptions > 30 ? '15' : '7') . '">';
        $html_output .= $options;
        $html_output .= '</select>';
        $html_output .= '</fieldset>';
        $html_output .= '<fieldset class="tblFooters">';
        $html_output .= '<input type="submit" name="modify" value="' . __('Update Query') . '" />';
        $html_output .= '</fieldset>';
        $html_output .= '</div>';
        return $html_output;
    }