PMA\libraries\DbQbe::_getShowRow PHP Method

_getShowRow() private method

Provides search form's row containing SHOW checkboxes
private _getShowRow ( ) : string
return string HTML for search table's row
    private function _getShowRow()
    {
        $html_output = '<tr class="noclick">';
        $html_output .= '<th>' . __('Show:') . '</th>';
        $new_column_count = 0;
        for ($column_index = 0; $column_index < $this->_criteria_column_count; $column_index++) {
            if (!empty($this->_criteriaColumnInsert) && isset($this->_criteriaColumnInsert[$column_index]) && $this->_criteriaColumnInsert[$column_index] == 'on') {
                $html_output .= '<td class="center">';
                $html_output .= '<input type="checkbox"' . ' name="criteriaShow[' . $new_column_count . ']" />';
                $html_output .= '</td>';
                $new_column_count++;
            }
            // end if
            if (!empty($this->_criteriaColumnDelete) && isset($this->_criteriaColumnDelete[$column_index]) && $this->_criteriaColumnDelete[$column_index] == 'on') {
                continue;
            }
            if (isset($_REQUEST['criteriaShow'][$column_index])) {
                $checked_options = ' checked="checked"';
                $this->_formShows[$new_column_count] = $_REQUEST['criteriaShow'][$column_index];
            } else {
                $checked_options = '';
            }
            $html_output .= '<td class="center">';
            $html_output .= '<input type="checkbox"' . ' name="criteriaShow[' . $new_column_count . ']"' . $checked_options . ' />';
            $html_output .= '</td>';
            $new_column_count++;
        }
        // end for
        $html_output .= '</tr>';
        return $html_output;
    }