\n";
echo "" . lang('Name') . " | " . lang('Type') . " | " . lang('Columns') . " |
\n";
foreach ($indexes as $name => $index) {
echo "
" . h($name) . " | " . $index['type'];
ksort($index["columns"]); // enforce correct columns order
$print = array();
foreach ($index["columns"] as $key => $val) {
$print[] = "" . h($val) . ""
. ($index["lengths"][$key] ? "(" . $index["lengths"][$key] . ")" : "")
. ($index["descs"][$key] ? " DESC" : "")
;
}
echo " | " . implode(", ", $print) . "\n";
}
echo "\n";
return true;
}
}
|
---|