// underline commented fields and display a hover-title (CSS only) if (isset($comments_map[$row['Field']])) { $displayed_field_name = '<span class="commented_column" title="' . htmlspecialchars($comments_map[$row['Field']]) . '">' . $field_name . '</span>'; } if ($primary && $primary->hasColumn($field_name)) { $displayed_field_name .= PMA_Util::getImage('b_primary.png', __('Primary')); } if (in_array($field_name, $columns_with_index)) { $displayed_field_name .= PMA_Util::getImage('bd_primary.png', __('Index')); } $response->addHTML('<tr class="' . ($odd_row ? 'odd' : 'even') . '">'); $odd_row = !$odd_row; $isInCentralColumns = in_array($row['Field'], $central_list) ? true : false; $response->addHTML(PMA_getHtmlTableStructureRow($row, $rownum, $displayed_field_name, $type_nowrap, $extracted_columnspec, $type_mime, $field_charset, $attribute, $tbl_is_view, $db_is_system_schema, $url_query, $field_encoded, $titles, $table)); if (!$tbl_is_view && !$db_is_system_schema) { $response->addHTML(PMA_getHtmlForActionsInTableStructure($type, $tbl_storage_engine, $primary, $field_name, $url_query, $titles, $row, $rownum, $columns_with_unique_index, $isInCentralColumns)); } // end if (! $tbl_is_view && ! $db_is_system_schema) $response->addHTML('</tr>'); unset($field_charset); } // end foreach $response->addHTML('</tbody></table>'); $response->addHTML(PMA_getHtmlForCheckAllTableColumn($pmaThemeImage, $text_dir, $tbl_is_view, $db_is_system_schema, $tbl_storage_engine)); $response->addHTML('</form><hr class="print_ignore"/>'); $response->addHTML(PMA_getHtmlDivForMoveColumnsDialog()); /** * Work on the table */ $response->addHTML('<div id="structure-action-links">'); if ($tbl_is_view) {
$odd_row = !$odd_row; $response->addHTML( PMA_getHtmlTableStructureRow( $row, $rownum, $checked, $displayed_field_name, $type_nowrap, $extracted_columnspec, $type_mime, $field_charset, $attribute, $tbl_is_view, $db_is_information_schema, $url_query, $field_encoded, $titles, $table ) ); if (! $tbl_is_view && ! $db_is_information_schema) { $response->addHTML( PMA_getHtmlForActionsInTableStructure( $type, $tbl_storage_engine, $primary, $field_name, $url_query, $titles, $row, $rownum, $hidden_titles, $columns_with_unique_index ) ); } // end if (! $tbl_is_view && ! $db_is_information_schema) $response->addHTML('</tr>'); unset($field_charset); } // end foreach $response->addHTML('</tbody>' . "\n" .'</table>' . "\n"); $response->addHTML( PMA_getHtmlForCheckAllTableColumn( $pmaThemeImage, $text_dir, $tbl_is_view,