Compare commits
2 Commits
6180c4ec60
...
83bdc9bbd7
Author | SHA1 | Date | |
---|---|---|---|
83bdc9bbd7 | |||
ff375abc90 |
@@ -438,6 +438,9 @@ class PMA_Index
|
||||
$r .= '<table>';
|
||||
$r .= '<thead>';
|
||||
$r .= '<tr>';
|
||||
if (! $print_mode) {
|
||||
$r .= '<th colspan="2">' . __('Action') . '</th>';
|
||||
}
|
||||
$r .= '<th>' . __('Keyname') . '</th>';
|
||||
$r .= '<th>' . __('Type') . '</th>';
|
||||
$r .= '<th>' . __('Unique') . '</th>';
|
||||
@@ -447,9 +450,6 @@ class PMA_Index
|
||||
$r .= '<th>' . __('Collation') . '</th>';
|
||||
$r .= '<th>' . __('Null') . '</th>';
|
||||
$r .= '<th>' . __('Comment') . '</th>';
|
||||
if (! $print_mode) {
|
||||
$r .= '<th colspan="2">' . __('Action') . '</th>';
|
||||
}
|
||||
$r .= '</tr>';
|
||||
$r .= '</thead>';
|
||||
$r .= '<tbody>';
|
||||
@@ -460,29 +460,6 @@ class PMA_Index
|
||||
|
||||
$r .= '<tr class="' . ($odd_row ? 'odd' : 'even') . '">';
|
||||
|
||||
$r .= '<th ' . $row_span . '>' . htmlspecialchars($index->getName()) . '</th>';
|
||||
$r .= '<td ' . $row_span . '>' . htmlspecialchars($index->getType()) . '</td>';
|
||||
$r .= '<td ' . $row_span . '>' . $index->isUnique(true) . '</td>';
|
||||
$r .= '<td ' . $row_span . '>' . $index->isPacked(true) . '</td>';
|
||||
|
||||
foreach ($index->getColumns() as $column) {
|
||||
if ($column->getSeqInIndex() > 1) {
|
||||
$r .= '<tr class="' . ($odd_row ? 'odd' : 'even') . '">';
|
||||
}
|
||||
$r .= '<td>' . htmlspecialchars($column->getName());
|
||||
if ($column->getSubPart()) {
|
||||
$r .= ' (' . $column->getSubPart() . ')';
|
||||
}
|
||||
$r .= '</td>';
|
||||
$r .= '<td>' . htmlspecialchars($column->getCardinality()) . '</td>';
|
||||
$r .= '<td>' . htmlspecialchars($column->getCollation()) . '</td>';
|
||||
$r .= '<td>' . htmlspecialchars($column->getNull()) . '</td>';
|
||||
|
||||
if ($column->getSeqInIndex() == 1) {
|
||||
$r .= '<td ' . $row_span . '>'
|
||||
. htmlspecialchars($index->getComments()) . '</td>';
|
||||
}
|
||||
|
||||
if (! $print_mode) {
|
||||
$this_params = $GLOBALS['url_params'];
|
||||
$this_params['index'] = $index->getName();
|
||||
@@ -514,6 +491,28 @@ class PMA_Index
|
||||
. '</td>' . "\n";
|
||||
}
|
||||
|
||||
$r .= '<th ' . $row_span . '>' . htmlspecialchars($index->getName()) . '</th>';
|
||||
$r .= '<td ' . $row_span . '>' . htmlspecialchars($index->getType()) . '</td>';
|
||||
$r .= '<td ' . $row_span . '>' . $index->isUnique(true) . '</td>';
|
||||
$r .= '<td ' . $row_span . '>' . $index->isPacked(true) . '</td>';
|
||||
|
||||
foreach ($index->getColumns() as $column) {
|
||||
if ($column->getSeqInIndex() > 1) {
|
||||
$r .= '<tr class="' . ($odd_row ? 'odd' : 'even') . '">';
|
||||
}
|
||||
$r .= '<td>' . htmlspecialchars($column->getName());
|
||||
if ($column->getSubPart()) {
|
||||
$r .= ' (' . $column->getSubPart() . ')';
|
||||
}
|
||||
$r .= '</td>';
|
||||
$r .= '<td>' . htmlspecialchars($column->getCardinality()) . '</td>';
|
||||
$r .= '<td>' . htmlspecialchars($column->getCollation()) . '</td>';
|
||||
$r .= '<td>' . htmlspecialchars($column->getNull()) . '</td>';
|
||||
|
||||
if ($column->getSeqInIndex() == 1) {
|
||||
$r .= '<td ' . $row_span . '>'
|
||||
. htmlspecialchars($index->getComments()) . '</td>';
|
||||
}
|
||||
$r .= '</tr>';
|
||||
} // end foreach $index['Sequences']
|
||||
|
||||
|
Reference in New Issue
Block a user