echo "<p class='message'>" . lang('No tables.') . "\n";
} else {
echo "<form action='' method='post'>\n";
- echo "<table cellspacing='0' class='nowrap'>\n";
+ echo "<table cellspacing='0' class='nowrap' onclick='table_click(event);'>\n";
echo '<thead><tr class="wrap"><td><input id="check-all" type="checkbox" onclick="form_check(this, /^(tables|views)\[/);"><th>' . lang('Table') . '<td>' . lang('Engine') . '<td>' . lang('Collation') . '<td>' . lang('Data Length') . '<td>' . lang('Index Length') . '<td>' . lang('Data Free') . '<td>' . lang('Auto Increment') . '<td>' . lang('Rows') . '<td>' . lang('Comment') . "</thead>\n";
foreach ($table_status as $row) {
$name = $row["Name"];
document.getElementById(id).checked = false;
}
+function table_click(event) {
+ var target = event.target || event.srcElement;
+ while (!/^tr$/i.test(target.tagName)) {
+ if (/^(table|a|input)$/i.test(target.tagName)) {
+ return;
+ }
+ target = target.parentNode;
+ }
+ var input = target.firstChild.firstChild;
+ input.click && input.click();
+ input.onclick && input.onclick();
+}
+
function select_add_row(field) {
?>
<form action="" method="post">
-<table cellspacing="0">
+<table cellspacing="0" onclick="table_click(event);">
<?php
$result = $dbh->query("SHOW PROCESSLIST");
for ($i=0; $row = $result->fetch_assoc(); $i++) {
}
}
- echo "<table cellspacing='0' class='nowrap'>\n";
+ echo "<table cellspacing='0' class='nowrap' onclick='table_click(event);'>\n";
echo "<thead><tr><td><input type='checkbox' id='all-page' onclick='form_check(this, /check/);'>";
$names = array();
reset($select);
Edit default values directly in table creation
Display column comments in table overview
Respect max_allowed_packet in CSV import
+Click on row selects it
Fix Editor date format
Fix long SQL query crash (bug #2839231)
Traditional Chinese translation