error); } $table_status = ($fields ? table_status($TABLE) : array()); page_header(($fields && !isset($table_status["Rows"]) ? lang('View') : lang('Table')) . ": " . h($TABLE), $error); $adminer->selectLinks($table_status); if ($fields) { echo "
" . lang('Column') . " | " . lang('Type') . " | " . lang('Comment') . " |
---|---|---|
" . h($field["field"]); echo " | " . h($field["full_type"]) . ($field["null"] ? " NULL" : "") . ($field["auto_increment"] ? " " . lang('Auto Increment') . "" : ""); echo " | " . nbsp($field["comment"]); echo "\n"; } echo " |
$index[type] | " . implode(", ", $print) . "\n"; } echo " |
---|
' . lang('Alter indexes') . "\n"; if ($table_status["Engine"] == "InnoDB") { echo "
" . implode(", ", array_map('h', $foreign_key["source"])) . ""; echo " | $link"; echo "(" . implode(", ", array_map('h', $foreign_key["target"])) . ")"; echo ' | ' . lang('Alter') . ''; } echo " |
---|
' . lang('Add foreign key') . "\n"; } if ($connection->server_info >= 5) { echo "
$row[Timing] | $row[Event] | " . h($row["Trigger"]) . " | " . lang('Alter') . "\n"; } echo " |
---|
' . lang('Add trigger') . "\n"; } } }