Move <h2> to design.inc.php
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@30 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
0b6ab61436
commit
1bc2792a41
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
if (!(strlen($_GET["db"]) ? mysql_select_db($_GET["db"]) : isset($_GET["sql"]) || isset($_GET["dump"]) || isset($_GET["database"]))) {
|
if (!(strlen($_GET["db"]) ? mysql_select_db($_GET["db"]) : isset($_GET["sql"]) || isset($_GET["dump"]) || isset($_GET["database"]))) {
|
||||||
page_header((strlen($_GET["db"]) ? lang('Invalid database') : lang('Select database')), "db");
|
page_header(lang('Select database'), "db");
|
||||||
if (strlen($_GET["db"])) {
|
if (strlen($_GET["db"])) {
|
||||||
echo "<p class='error'>" . lang('Invalid database.') . "</p>\n";
|
echo "<p class='error'>" . lang('Invalid database.') . "</p>\n";
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -29,7 +29,6 @@ if ($_POST && !$_POST["add"]) {
|
||||||
$error = mysql_error();
|
$error = mysql_error();
|
||||||
}
|
}
|
||||||
page_header(strlen($_GET["create"]) ? lang('Alter table') . ': ' . htmlspecialchars($_GET["create"]) : lang('Create table'));
|
page_header(strlen($_GET["create"]) ? lang('Alter table') . ': ' . htmlspecialchars($_GET["create"]) : lang('Create table'));
|
||||||
echo "<h2>" . (strlen($_GET["create"]) ? lang('Alter table') . ': ' . htmlspecialchars($_GET["create"]) : lang('Create table')) . "</h2>\n";
|
|
||||||
|
|
||||||
if ($_POST) {
|
if ($_POST) {
|
||||||
if (!$_POST["add"]) {
|
if (!$_POST["add"]) {
|
||||||
|
|
|
@ -28,7 +28,6 @@ if ($_POST) {
|
||||||
}
|
}
|
||||||
|
|
||||||
page_header(strlen($_GET["db"]) ? lang('Alter database') . ": " . htmlspecialchars($_GET["db"]) : lang('Create database'));
|
page_header(strlen($_GET["db"]) ? lang('Alter database') . ": " . htmlspecialchars($_GET["db"]) : lang('Create database'));
|
||||||
echo "<h2>" . (strlen($_GET["db"]) ? lang('Alter database') . ": " . htmlspecialchars($_GET["db"]) : lang('Create database')) . "</h2>\n";
|
|
||||||
|
|
||||||
if ($_POST) {
|
if ($_POST) {
|
||||||
echo "<p class='error'>" . lang('Unable to operate database') . ": " . htmlspecialchars($error) . "</p>\n";
|
echo "<p class='error'>" . lang('Unable to operate database') . ": " . htmlspecialchars($error) . "</p>\n";
|
||||||
|
|
|
@ -67,6 +67,7 @@ H2 { font-size: 150%; margin-top: 0; }
|
||||||
|
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<?php
|
<?php
|
||||||
|
echo "<h2>$title</h2>\n";
|
||||||
}
|
}
|
||||||
if ($_SESSION["message"]) {
|
if ($_SESSION["message"]) {
|
||||||
echo "<p class='message'>$_SESSION[message]</p>\n";
|
echo "<p class='message'>$_SESSION[message]</p>\n";
|
||||||
|
|
|
@ -32,7 +32,6 @@ if ($_POST) {
|
||||||
$error = mysql_error();
|
$error = mysql_error();
|
||||||
}
|
}
|
||||||
page_header(($_GET["where"] ? lang('Edit') : lang('Insert')) . ": " . htmlspecialchars($_GET["edit"]));
|
page_header(($_GET["where"] ? lang('Edit') : lang('Insert')) . ": " . htmlspecialchars($_GET["edit"]));
|
||||||
echo "<h2>" . ($_GET["where"] ? lang('Edit') : lang('Insert')) . ": " . htmlspecialchars($_GET["edit"]) . "</h2>\n";
|
|
||||||
|
|
||||||
$where = array();
|
$where = array();
|
||||||
if (is_array($_GET["where"])) {
|
if (is_array($_GET["where"])) {
|
||||||
|
|
|
@ -26,7 +26,7 @@ if (isset($_GET["sql"])) {
|
||||||
} elseif (isset($_GET["database"])) {
|
} elseif (isset($_GET["database"])) {
|
||||||
include "./database.inc.php";
|
include "./database.inc.php";
|
||||||
} else {
|
} else {
|
||||||
page_header(htmlspecialchars($_GET["db"]));
|
page_header(htmlspecialchars(lang('Database') . ": " . $_GET["db"]));
|
||||||
echo '<p><a href="' . htmlspecialchars($SELF) . 'database=">' . lang('Alter database') . "</a></p>\n";
|
echo '<p><a href="' . htmlspecialchars($SELF) . 'database=">' . lang('Alter database') . "</a></p>\n";
|
||||||
$result = mysql_query("SELECT * FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA = '" . mysql_real_escape_string($_GET["db"]) . "'");
|
$result = mysql_query("SELECT * FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA = '" . mysql_real_escape_string($_GET["db"]) . "'");
|
||||||
if (mysql_num_rows($result)) {
|
if (mysql_num_rows($result)) {
|
||||||
|
|
|
@ -34,7 +34,6 @@ if ($_POST) {
|
||||||
}
|
}
|
||||||
|
|
||||||
page_header(lang('Indexes') . ': ' . htmlspecialchars($_GET["indexes"]));
|
page_header(lang('Indexes') . ': ' . htmlspecialchars($_GET["indexes"]));
|
||||||
echo "<h2>" . lang('Indexes') . ': ' . htmlspecialchars($_GET["indexes"]) . "</h2>\n";
|
|
||||||
|
|
||||||
if ($_POST) {
|
if ($_POST) {
|
||||||
echo "<p class='error'>" . lang('Unable to operate indexes') . ": " . htmlspecialchars($error) . "</p>\n";
|
echo "<p class='error'>" . lang('Unable to operate indexes') . ": " . htmlspecialchars($error) . "</p>\n";
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
$indexes = indexes($_GET["select"]);
|
||||||
page_header(lang('Select') . ": " . htmlspecialchars($_GET["select"]));
|
page_header(lang('Select') . ": " . htmlspecialchars($_GET["select"]));
|
||||||
echo "<h2>" . lang('Select') . ": " . htmlspecialchars($_GET["select"]) . "</h2>\n";
|
|
||||||
|
|
||||||
echo '<p><a href="' . htmlspecialchars($SELF) . 'edit=' . urlencode($_GET['select']) . '">' . lang('New item') . "</a></p>\n";
|
echo '<p><a href="' . htmlspecialchars($SELF) . 'edit=' . urlencode($_GET['select']) . '">' . lang('New item') . "</a></p>\n";
|
||||||
$indexes = indexes($_GET["select"]);
|
|
||||||
|
|
||||||
echo "<form action='' id='form'><div>\n";
|
echo "<form action='' id='form'><div>\n";
|
||||||
if (strlen($_GET["server"])) {
|
if (strlen($_GET["server"])) {
|
||||||
echo '<input type="hidden" name="server" value="' . htmlspecialchars($_GET["server"]) . '" />';
|
echo '<input type="hidden" name="server" value="' . htmlspecialchars($_GET["server"]) . '" />';
|
||||||
|
|
|
@ -7,7 +7,6 @@ if ($_POST) {
|
||||||
$error = mysql_error();
|
$error = mysql_error();
|
||||||
}
|
}
|
||||||
page_header(lang('SQL command'), (strlen($_GET["db"]) ? "" : "db"));
|
page_header(lang('SQL command'), (strlen($_GET["db"]) ? "" : "db"));
|
||||||
echo "<h2>" . lang('SQL command') . "</h2>\n";
|
|
||||||
|
|
||||||
if ($_POST) {
|
if ($_POST) {
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
page_header(lang('Table') . ": " . htmlspecialchars($_GET["table"]));
|
page_header(lang('Table') . ": " . htmlspecialchars($_GET["table"]));
|
||||||
echo "<h2>" . lang('Table') . ": " . htmlspecialchars($_GET["table"]) . "</h2>\n";
|
|
||||||
|
|
||||||
$result = mysql_query("SHOW FULL COLUMNS FROM " . idf_escape($_GET["table"]));
|
$result = mysql_query("SHOW FULL COLUMNS FROM " . idf_escape($_GET["table"]));
|
||||||
echo "<table border='1' cellspacing='0' cellpadding='2'>\n";
|
echo "<table border='1' cellspacing='0' cellpadding='2'>\n";
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
page_header(lang('View') . ": " . htmlspecialchars($_GET["view"]));
|
page_header(lang('View') . ": " . htmlspecialchars($_GET["view"]));
|
||||||
echo "<h2>" . lang('View') . ": " . htmlspecialchars($_GET["view"]) . "</h2>\n";
|
|
||||||
echo htmlspecialchars(mysql_result(mysql_query("SHOW CREATE VIEW " . idf_escape($_GET["view"])), 0, 1));
|
echo htmlspecialchars(mysql_result(mysql_query("SHOW CREATE VIEW " . idf_escape($_GET["view"])), 0, 1));
|
||||||
|
|
Loading…
Reference in a new issue