diff --git a/adminer/db.inc.php b/adminer/db.inc.php
index 58156cde..7b8fd599 100644
--- a/adminer/db.inc.php
+++ b/adminer/db.inc.php
@@ -50,7 +50,7 @@ if (!$table_status) {
echo ' | ' . lang('Table') . ' | ' . lang('Engine') . ' | ' . lang('Collation') . ' | ' . lang('Data Length') . ' | ' . lang('Index Length') . ' | ' . lang('Data Free') . ' | ' . lang('Auto Increment') . ' | ' . lang('Rows') . ' | ' . lang('Comment') . " |
\n";
foreach ($table_status as $row) {
$name = $row["Name"];
- echo '
';
+ echo ' |
' . checkbox((isset($row["Rows"]) ? "tables[]" : "views[]"), $name, in_array($name, $tables_views, true), "", "form_uncheck('check-all');");
echo ' | ' . h($name) . '';
if (isset($row["Rows"])) {
echo " | $row[Engine] | $row[Collation]";
diff --git a/adminer/dump.inc.php b/adminer/dump.inc.php
index c3c2e80f..c36bfdcf 100644
--- a/adminer/dump.inc.php
+++ b/adminer/dump.inc.php
@@ -148,12 +148,10 @@ echo " |
---|
" . lang('Format') . " | $dump_format\n";
echo " |
---|
" . lang('Compression') . " | " . ($dump_compress ? $dump_compress : lang('None of the supported PHP extensions (%s) are available.', 'zlib, bz2')) . "\n";
echo " |
---|
" . lang('Database') . " | \n";
if ($connection->server_info >= 5) {
- $objects = array('routines' => lang('Routines'));
+ $checked = strlen($_GET["dump"]);
+ checkbox("routines", 1, $checked, lang('Routines'));
if ($connection->server_info >= 5.1) {
- $objects['events'] = lang('Events');
- }
- foreach ($objects as $key => $val) {
- echo " ";
+ checkbox("events", 1, $checked, lang('Events'));
}
}
echo " |
---|
" . lang('Tables') . " | \n";
@@ -172,12 +170,12 @@ if (strlen(DB)) {
echo "\n";
$views = "";
foreach (table_status() as $row) {
- $checked = (strlen($TABLE) && $row["Name"] != $TABLE ? '' : " checked");
- $print = " |
---|
";
+ $checked = (strlen($TABLE) && $row["Name"] != $TABLE);
+ $print = " |
" . checkbox("tables[]", $row["Name"], $checked, $row["Name"], "form_uncheck('check-tables');");
if (!$row["Engine"]) {
$views .= "$print\n";
} else {
- echo "$print | \n";
+ echo "$print | \n";
}
}
echo $views;
@@ -185,7 +183,7 @@ if (strlen(DB)) {
echo " | \n";
foreach (get_databases() as $db) {
if (!information_schema($db)) {
- echo ' |
\n";
+ echo " |
" . checkbox("databases[]", $db, 1, $db, "form_uncheck('check-databases');") . "\n";
}
}
}
diff --git a/adminer/event.inc.php b/adminer/event.inc.php
index e00cfc50..4a35f804 100644
--- a/adminer/event.inc.php
+++ b/adminer/event.inc.php
@@ -43,7 +43,7 @@ if ($_POST) {
|
| " size="6">
|
---|
|
|
---|
| " maxlength="64">
- |
---|
|
+ |
---|
|
diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php
index 6372dde1..1cc9b962 100644
--- a/adminer/include/adminer.inc.php
+++ b/adminer/include/adminer.inc.php
@@ -183,7 +183,7 @@ class Adminer {
if ($index["type"] == "FULLTEXT") {
echo "(" . implode(", ", array_map('h', $index["columns"])) . ") AGAINST";
echo " ";
- echo "";
+ echo checkbox("boolean[$i]", 1, isset($_GET["boolean"][$i]), "BOOL");
echo " \n";
}
}
@@ -214,12 +214,12 @@ class Adminer {
foreach ((array) $_GET["order"] as $key => $val) {
if (isset($columns[$val])) {
echo " ";
- echo " \n";
+ echo checkbox("desc[$i]", 1, isset($_GET["desc"][$key]), lang('descending')) . "\n";
$i++;
}
}
echo "";
- echo " \n";
+ echo checkbox("desc[$i]", 1, 0, lang('descending')) . "\n";
echo "\n";
}
diff --git a/adminer/include/editing.inc.php b/adminer/include/editing.inc.php
index 88a8f1ff..6b22e0a6 100644
--- a/adminer/include/editing.inc.php
+++ b/adminer/include/editing.inc.php
@@ -176,9 +176,9 @@ function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0, $forei
| " onchange=" 1 ? "" : "editing_add_row(this, $allowed); "); ?>editing_name_change(this);" maxlength="64">">
- | checked>
+ |
| checked>
- | >" onchange="this.previousSibling.checked = true;">
+ | " onchange="this.previousSibling.checked = true;">
| >" maxlength="255">
";
+ return (strlen($label) ? "" : $return);
+}
+
/** Generate list of HTML options
* @param array array of strings or arrays (creates optgroup)
* @param mixed
diff --git a/adminer/processlist.inc.php b/adminer/processlist.inc.php
index 1be05d02..d2e368f5 100644
--- a/adminer/processlist.inc.php
+++ b/adminer/processlist.inc.php
@@ -20,7 +20,7 @@ for ($i=0; $row = $result->fetch_assoc(); $i++) {
if (!$i) {
echo " | " . implode(" | ", array_keys($row)) . " | \n";
}
- echo " |
---|
| " . implode(" | ", array_map('nbsp', $row)) . "\n";
+ echo " |
" . checkbox("kill[]", $row["Id"], 0) . " | " . implode(" | ", array_map('nbsp', $row)) . "\n";
}
?>
diff --git a/adminer/select.inc.php b/adminer/select.inc.php
index ad77fdb6..2cc6db67 100644
--- a/adminer/select.inc.php
+++ b/adminer/select.inc.php
@@ -194,8 +194,8 @@ if (!$columns) {
}
echo ($backward_keys ? " | " . lang('Relations') : "") . "\n";
foreach ($adminer->rowDescriptions($rows, $foreign_keys) as $n => $row) {
- $unique_idf = implode('&', unique_idf($rows[$n], $indexes));
- echo " |
---|
" . (count($select) != count($group) || information_schema(DB) ? '' : " " . lang('edit') . "");
+ $unique_idf = implode('&', unique_idf($rows[$n], $indexes));
+ echo " |
" . checkbox("check[]", $unique_idf, in_array($unique_idf, (array) $_POST["check"]), "", "this.form['all'].checked = false; form_uncheck('all-page');") . (count($select) != count($group) || information_schema(DB) ? '' : " " . lang('edit') . "");
foreach ($row as $key => $val) {
if (isset($names[$key])) {
if (strlen($val) && (!isset($email_fields[$key]) || strlen($email_fields[$key]))) {
@@ -207,7 +207,7 @@ if (!$columns) {
$val = "NULL";
} else {
if (ereg('blob|binary', $fields[$key]["type"]) && strlen($val)) {
- $link = h(ME . 'download=' . urlencode($TABLE) . '&field=' . urlencode($key) . '&') . $unique_idf;
+ $link = h(ME . 'download=' . urlencode($TABLE) . '&field=' . urlencode($key) . "&$unique_idf");
}
if (!strlen($val)) {
$val = " ";
@@ -257,7 +257,7 @@ if (!$columns) {
}
echo ($_GET["page"] + 3 < $max_page ? " ..." : "") . pagination($max_page);
}
- echo " (" . lang('%d row(s)', $found_rows) . ') \n";
+ echo " (" . lang('%d row(s)', $found_rows) . ") " . checkbox("all", 1, 0, lang('whole result')) . "\n";
echo (information_schema(DB) ? "" : "\n");
print_fieldset("export", lang('Export'));
diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php
index ef30a831..5fdf40af 100644
--- a/adminer/sql.inc.php
+++ b/adminer/sql.inc.php
@@ -129,7 +129,7 @@ echo h($q);
-
+
|
| ">
|
---|
| ">
- |
---|
| ">
+ |
---|
| ">
+
+
|
---|