';
if (! $print_mode) {
$this_params = $GLOBALS['url_params'];
$this_params['index'] = $index->getName();
$r .= '| '
. ' ' . PMA_getIcon('b_edit.png', $GLOBALS['strEdit']) . ''
. ' | ' . "\n";
$this_params = $GLOBALS['url_params'];
if ($index->getName() == 'PRIMARY') {
$this_params['sql_query'] = 'ALTER TABLE ' . PMA_backquote($table) . ' DROP PRIMARY KEY';
$this_params['zero_rows'] = $GLOBALS['strPrimaryKeyHasBeenDropped'];
$js_msg = PMA_jsFormat('ALTER TABLE ' . $table . ' DROP PRIMARY KEY');
} else {
$this_params['sql_query'] = 'ALTER TABLE ' . PMA_backquote($table) . ' DROP INDEX ' . PMA_backquote($index->getName());
$this_params['zero_rows'] = sprintf($GLOBALS['strIndexHasBeenDropped'], $index->getName());
$js_msg = PMA_jsFormat('ALTER TABLE ' . $table . ' DROP INDEX ' . $index->getName());
}
$r .= ''
. ' '
. PMA_getIcon('b_drop.png', $GLOBALS['strDrop']) . ''
. ' | ' . "\n";
}
$r .= '' . htmlspecialchars($index->getName()) . ' | ';
$r .= '' . htmlspecialchars($index->getType()) . ' | ';
$r .= '' . $index->isUnique(true) . ' | ';
$r .= '' . $index->isPacked(true) . ' | ';
foreach ($index->getColumns() as $column) {
if ($column->getSeqInIndex() > 1) {
$r .= '
';
}
$r .= '| ' . htmlspecialchars($column->getName());
if ($column->getSubPart()) {
$r .= ' (' . $column->getSubPart() . ')';
}
$r .= ' | ';
$r .= '' . htmlspecialchars($column->getCardinality()) . ' | ';
$r .= '' . htmlspecialchars($column->getCollation()) . ' | ';
$r .= '' . htmlspecialchars($column->getNull()) . ' | ';
if ($column->getSeqInIndex() == 1) {
$r .= ''
. htmlspecialchars($index->getComments()) . ' | ';
}
$r .= '
';
} // end foreach $index['Sequences']
$odd_row = ! $odd_row;
} // end while
$r .= '