Display index name in title
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1308 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
080276a8af
commit
8771386114
|
@ -25,13 +25,13 @@ if ($fields) {
|
||||||
$indexes = indexes($TABLE);
|
$indexes = indexes($TABLE);
|
||||||
if ($indexes) {
|
if ($indexes) {
|
||||||
echo "<table cellspacing='0'>\n";
|
echo "<table cellspacing='0'>\n";
|
||||||
foreach ($indexes as $index) {
|
foreach ($indexes as $name => $index) {
|
||||||
ksort($index["columns"]); // enforce correct columns order
|
ksort($index["columns"]); // enforce correct columns order
|
||||||
$print = array();
|
$print = array();
|
||||||
foreach ($index["columns"] as $key => $val) {
|
foreach ($index["columns"] as $key => $val) {
|
||||||
$print[] = "<i>" . h($val) . "</i>" . ($index["lengths"][$key] ? "(" . $index["lengths"][$key] . ")" : "");
|
$print[] = "<i>" . h($val) . "</i>" . ($index["lengths"][$key] ? "(" . $index["lengths"][$key] . ")" : "");
|
||||||
}
|
}
|
||||||
echo "<tr><th>$index[type]<td>" . implode(", ", $print) . "\n";
|
echo "<tr title='" . h($name) . "'><th>$index[type]<td>" . implode(", ", $print) . "\n";
|
||||||
}
|
}
|
||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue