From 540e2174e289102fd067831feb1648bfc981defd Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Fri, 29 May 2009 16:14:54 +0000 Subject: [PATCH] Separate JavaScript git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@618 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- _compile.php | 5 +- changes.txt | 1 + connect.inc.php | 5 +- create.inc.php | 16 +--- design.inc.php | 9 +- dump.inc.php | 14 +-- editing.inc.php | 91 ++++-------------- foreign.inc.php | 15 +-- functions.js | 236 ++++++++++++++++++++++++++++++++++++++++++++++ index.php | 2 +- indexes.inc.php | 34 +------ procedure.inc.php | 6 -- schema.inc.php | 67 +------------ select.inc.php | 44 +-------- todo.txt | 1 - 15 files changed, 277 insertions(+), 269 deletions(-) create mode 100644 functions.js diff --git a/_compile.php b/_compile.php index a408abdf..b6068689 100644 --- a/_compile.php +++ b/_compile.php @@ -170,7 +170,7 @@ if ($_COOKIE["lang"]) { $file = preg_replace_callback("~lang\\('((?:[^\\\\']+|\\\\.)*)'([,)])~s", 'lang_ids', $file); } $replace = 'preg_replace("~\\\\\\\\?.*~", "", $_SERVER["REQUEST_URI"]) . "?file=\\0&version=' . $VERSION; -$file = preg_replace('~default\\.css|favicon\\.ico|(up|down|plus|minus)\\.gif~', '', $file); +$file = preg_replace('~default\\.css|functions\\.js|favicon\\.ico|(up|down|plus|minus)\\.gif~', '', $file); $file = preg_replace('~arrow\\.gif~', '" . ' . $replace, $file); $file = str_replace('error_reporting(E_ALL & ~E_NOTICE);', 'error_reporting(E_ALL & ~E_NOTICE); if (isset($_GET["file"])) { @@ -181,6 +181,9 @@ if (isset($_GET["file"])) { } elseif ($_GET["file"] == "default.css") { header("Content-Type: text/css"); ?>' . preg_replace('~\\s*([:;{},])\\s*~', '\\1', file_get_contents("default.css")) . '' . file_get_contents("functions.js") . 'select_db($_GET["db"]) : isset($_GET["sql"]) | ?> $suhosin) {

- - +
+
-

: " /> : " maxlength="60" />

@@ -151,7 +143,7 @@ if ($dbh->server_info >= 5.1) { ?>

- + (" />) : " />

@@ -159,7 +151,7 @@ if ($dbh->server_info >= 5.1) { $val) { - echo '\n"; + echo '\n"; } ?> diff --git a/design.inc.php b/design.inc.php index 0f6454b5..8b69fe0d 100644 --- a/design.inc.php +++ b/design.inc.php @@ -18,14 +18,7 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") { - +
" . ($val ? $val : lang('skip')) . "" + . "\" onclick=\"return !dump_check(this, /^$name/, '$val');\"$attrs>" . ($val ? $val : lang('skip')) . "" ; } @@ -142,18 +142,6 @@ DROP PROCEDURE phpminadmin_drop; page_header(lang('Export'), "", (strlen($_GET["export"]) ? array("table" => $_GET["export"]) : array()), $_GET["db"]); ?> - -

diff --git a/editing.inc.php b/editing.inc.php index cf8d2316..df06613a 100644 --- a/editing.inc.php +++ b/editing.inc.php @@ -89,7 +89,7 @@ function process_input($name, $field) { function edit_type($key, $field, $collations) { global $types, $unsigned, $inout; ?> - + " size="3" /> ' . optionlist($collations, $field["collation"]) . '' . ($unsigned ? " ' : ''); ?> @@ -116,12 +122,16 @@ function edit_fields($fields, $collations, $type = "TABLE") { - +