<?php } ?>
<?php if (support("columns")) { ?>
+<div style="overflow-x: auto;">
<table cellspacing="0" id="edit-fields" class="nowrap">
<?php
$comments = ($_POST ? $_POST["comments"] : $row["Comment"] != "");
edit_fields($row["fields"], $collations, "TABLE", $foreign_keys, $comments);
?>
</table>
+</div>
<p>
<?php echo lang('Auto Increment'); ?>: <input type="number" name="Auto_increment" size="6" value="<?php echo h($row["Auto_increment"]); ?>">
<?php echo checkbox("defaults", 1, !$_POST || $_POST["defaults"], lang('Default values'), "columnShow(this.checked, 5)", "jsonly"); ?>
}
}
$doc_link = doc_link(array('sql' => 'show-table-status.html'));
+ echo "<div style='overflow-x: auto;'>\n";
echo "<table cellspacing='0' class='nowrap checkable'>\n";
echo script("mixin(qsl('table'), {onclick: tableClick, ondblclick: partialArg(tableClick, true)});");
echo '<thead><tr class="wrap">';
}
echo "</table>\n";
+ echo "</div>\n";
if (!information_schema(DB)) {
echo "<div class='footer'><div>\n";
$vacuum = "<input type='submit' value='" . lang('Vacuum') . "'> " . on_help("'VACUUM'");
* @return null
*/
function tableStructurePrint($fields) {
+ echo "<div style='overflow-x: auto;'>\n";
echo "<table cellspacing='0' class='nowrap'>\n";
echo "<thead><tr><th>" . lang('Column') . "<td>" . lang('Type') . (support("comment") ? "<td>" . lang('Comment') : "") . "</thead>\n";
foreach ($fields as $field) {
echo "\n";
}
echo "</table>\n";
+ echo "</div>\n";
}
/** Print list of indexes on table in tabular format
odd(''); // reset odd for each result
for ($i=0; (!$limit || $i < $limit) && ($row = $result->fetch_row()); $i++) {
if (!$i) {
+ echo "<div style='overflow-x: auto;'>\n";
echo "<table cellspacing='0' class='nowrap'>\n";
echo "<thead><tr>";
for ($j=0; $j < count($row); $j++) {
echo "<td>$val";
}
}
- echo ($i ? "</table>" : "<p class='message'>" . lang('No rows.')) . "\n";
+ echo ($i ? "</table>\n</div>" : "<p class='message'>" . lang('No rows.')) . "\n";
return $return;
}
?>
<form action="" method="post">
+<div style="overflow-x: auto;">
<table cellspacing="0" class="nowrap">
<thead><tr>
<th id="label-type"><?php echo lang('Index Type'); ?>
}
?>
</table>
+</div>
<p>
<input type="submit" value="<?php echo lang('Save'); ?>">
<input type="hidden" name="token" value="<?php echo $token; ?>">
<p><?php echo lang('Name'); ?>: <input name="name" value="<?php echo h($row["name"]); ?>" data-maxlength="64" autocapitalize="off">
<?php echo ($routine_languages ? lang('Language') . ": " . html_select("language", $routine_languages, $row["language"]) . "\n" : ""); ?>
<input type="submit" value="<?php echo lang('Save'); ?>">
+<div style="overflow-x: auto;">
<table cellspacing="0" class="nowrap">
<?php
edit_fields($row["fields"], $collations, $routine);
}
?>
</table>
+</div>
<p><?php textarea("definition", $row["definition"]); ?>
<p>
<input type="submit" value="<?php echo lang('Save'); ?>">
?>
<form action="" method="post">
+<div style="overflow-x: auto;">
<table cellspacing="0" class="nowrap checkable">
<?php
echo script("mixin(qsl('table'), {onclick: tableClick, ondblclick: partialArg(tableClick, true)});");
}
?>
</table>
+</div>
<p>
<?php
if (support("kill")) {
} else {
$backward_keys = $adminer->backwardKeys($TABLE, $table_name);
+ echo "<div style='overflow-x: auto;'>";
echo "<table id='table' cellspacing='0' class='nowrap checkable'>";
echo script("mixin(qs('#table'), {onclick: tableClick, ondblclick: partialArg(tableClick, true), onkeydown: editingKeydown});");
echo "<thead><tr>" . (!$group && $select
exit;
}
echo "</table>\n";
+ echo "</div>\n";
}
if (!is_ajax()) {
if ($_POST["query"] != "") {
search_tables();
}
+ echo "<div style='overflow-x: auto;'>\n";
echo "<table cellspacing='0' class='nowrap checkable'>\n";
echo script("mixin(qsl('table'), {onclick: tableClick, ondblclick: partialArg(tableClick, true)});");
echo '<thead><tr class="wrap">';
}
echo "</table>\n";
+ echo "</div>\n";
echo "</form>\n";
echo script("tableCheck();");
}
* @return bool
*/
function tableStructurePrint($fields) {
+ echo "<div style='overflow-x: auto;'>\n";
echo "<table cellspacing='0' class='nowrap'>\n";
echo "<thead><tr><th>" . lang('Column') . "<th>" . lang('Type') . "<th>" . lang('Nullable') . "<th>" . lang('Default') . (support("comment") ? "<th>" . lang('Comment') : "") . "</thead>\n";
foreach ($fields as $field) {
echo "\n";
}
echo "</table>\n";
+ echo "</div>\n";
return true;
}
}