Separate JavaScript

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@618 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-05-29 16:14:54 +00:00
parent 7f3b4f2b8a
commit 540e2174e2
15 changed files with 277 additions and 269 deletions

View File

@@ -17,7 +17,7 @@ function dump_link($type, $name, $val, $attrs = "") {
. (isset($check["db_check"]) ? "&db_check=" . urlencode($check["db_check"]) : "")
. (isset($check["table_check"]) ? "&table_check=" . urlencode($check["table_check"]) : "")
. (isset($check["data_check"]) ? "&data_check=" . urlencode($check["data_check"]) : "")
. "\" onclick=\"return !check(this, /^$name/, '$val');\"$attrs>" . ($val ? $val : lang('skip')) . "</a>"
. "\" onclick=\"return !dump_check(this, /^$name/, '$val');\"$attrs>" . ($val ? $val : lang('skip')) . "</a>"
;
}
@@ -142,18 +142,6 @@ DROP PROCEDURE phpminadmin_drop;
page_header(lang('Export'), "", (strlen($_GET["export"]) ? array("table" => $_GET["export"]) : array()), $_GET["db"]);
?>
<script type="text/javascript">
function check(a, name, value) {
var inputs = a.parentNode.parentNode.parentNode.parentNode.getElementsByTagName('input');
for (var i=0; inputs.length > i; i++) {
if (name.test(inputs[i].name)) {
inputs[i].checked = (inputs[i].value == value);
}
}
return true;
}
</script>
<form action="" method="post">
<p><?php echo lang('Output') . ": $dump_output " . lang('Format') . ": $dump_format"; ?> <input type="submit" value="<?php echo lang('Export'); ?>" /></p>