Save bytes
This commit is contained in:
parent
1a30f25311
commit
b7e1cb09c1
|
@ -26,10 +26,8 @@ if ($_POST && !$error) {
|
||||||
|
|
||||||
page_header(($EVENT != "" ? lang('Alter event') . ": " . h($EVENT) : lang('Create event')), $error);
|
page_header(($EVENT != "" ? lang('Alter event') . ": " . h($EVENT) : lang('Create event')), $error);
|
||||||
|
|
||||||
$row = array();
|
|
||||||
if ($_POST) {
|
|
||||||
$row = $_POST;
|
$row = $_POST;
|
||||||
} elseif ($EVENT != "") {
|
if (!$row && $EVENT != "") {
|
||||||
$rows = get_rows("SELECT * FROM information_schema.EVENTS WHERE EVENT_SCHEMA = " . q(DB) . " AND EVENT_NAME = " . q($EVENT));
|
$rows = get_rows("SELECT * FROM information_schema.EVENTS WHERE EVENT_SCHEMA = " . q(DB) . " AND EVENT_NAME = " . q($EVENT));
|
||||||
$row = reset($rows);
|
$row = reset($rows);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,9 +17,9 @@ if ($_POST && !$error) {
|
||||||
|
|
||||||
page_header($_GET["ns"] != "" ? lang('Alter schema') : lang('Create schema'), $error);
|
page_header($_GET["ns"] != "" ? lang('Alter schema') : lang('Create schema'), $error);
|
||||||
|
|
||||||
$row = array("name" => $_GET["ns"]);
|
|
||||||
if ($_POST) {
|
|
||||||
$row = $_POST;
|
$row = $_POST;
|
||||||
|
if (!$row) {
|
||||||
|
$row = array("name" => $_GET["ns"]);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
|
@ -16,9 +16,9 @@ if ($_POST && !$error) {
|
||||||
|
|
||||||
page_header($SEQUENCE != "" ? lang('Alter sequence') . ": " . h($SEQUENCE) : lang('Create sequence'), $error);
|
page_header($SEQUENCE != "" ? lang('Alter sequence') . ": " . h($SEQUENCE) : lang('Create sequence'), $error);
|
||||||
|
|
||||||
$row = array("name" => $SEQUENCE);
|
|
||||||
if ($_POST) {
|
|
||||||
$row = $_POST;
|
$row = $_POST;
|
||||||
|
if (!$row) {
|
||||||
|
$row = array("name" => $SEQUENCE);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
|
@ -12,9 +12,9 @@ if ($_POST && !$error) {
|
||||||
|
|
||||||
page_header($TYPE != "" ? lang('Alter type') . ": " . h($TYPE) : lang('Create type'), $error);
|
page_header($TYPE != "" ? lang('Alter type') . ": " . h($TYPE) : lang('Create type'), $error);
|
||||||
|
|
||||||
$row["as"] = "AS ";
|
|
||||||
if ($_POST) {
|
|
||||||
$row = $_POST;
|
$row = $_POST;
|
||||||
|
if (!$row) {
|
||||||
|
$row = array("as" => "AS ");
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
|
@ -15,10 +15,8 @@ if ($_POST && !$error) {
|
||||||
|
|
||||||
page_header(($TABLE != "" ? lang('Alter view') : lang('Create view')), $error, array("table" => $TABLE), $TABLE);
|
page_header(($TABLE != "" ? lang('Alter view') : lang('Create view')), $error, array("table" => $TABLE), $TABLE);
|
||||||
|
|
||||||
$row = array();
|
|
||||||
if ($_POST) {
|
|
||||||
$row = $_POST;
|
$row = $_POST;
|
||||||
} elseif ($TABLE != "") {
|
if (!$row && $TABLE != "") {
|
||||||
$row = view($TABLE);
|
$row = view($TABLE);
|
||||||
$row["name"] = $TABLE;
|
$row["name"] = $TABLE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue