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:
jakubvrana 2007-07-05 05:15:53 +00:00
parent 0b6ab61436
commit 1bc2792a41
11 changed files with 4 additions and 12 deletions

View file

@ -1,6 +1,6 @@
<?php
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"])) {
echo "<p class='error'>" . lang('Invalid database.') . "</p>\n";
} else {

View file

@ -29,7 +29,6 @@ if ($_POST && !$_POST["add"]) {
$error = mysql_error();
}
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["add"]) {

View file

@ -28,7 +28,6 @@ if ($_POST) {
}
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) {
echo "<p class='error'>" . lang('Unable to operate database') . ": " . htmlspecialchars($error) . "</p>\n";

View file

@ -67,6 +67,7 @@ H2 { font-size: 150%; margin-top: 0; }
<div id="content">
<?php
echo "<h2>$title</h2>\n";
}
if ($_SESSION["message"]) {
echo "<p class='message'>$_SESSION[message]</p>\n";

View file

@ -32,7 +32,6 @@ if ($_POST) {
$error = mysql_error();
}
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();
if (is_array($_GET["where"])) {

View file

@ -26,7 +26,7 @@ if (isset($_GET["sql"])) {
} elseif (isset($_GET["database"])) {
include "./database.inc.php";
} 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";
$result = mysql_query("SELECT * FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA = '" . mysql_real_escape_string($_GET["db"]) . "'");
if (mysql_num_rows($result)) {

View file

@ -34,7 +34,6 @@ if ($_POST) {
}
page_header(lang('Indexes') . ': ' . htmlspecialchars($_GET["indexes"]));
echo "<h2>" . lang('Indexes') . ': ' . htmlspecialchars($_GET["indexes"]) . "</h2>\n";
if ($_POST) {
echo "<p class='error'>" . lang('Unable to operate indexes') . ": " . htmlspecialchars($error) . "</p>\n";

View file

@ -1,10 +1,8 @@
<?php
$indexes = indexes($_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";
$indexes = indexes($_GET["select"]);
echo "<form action='' id='form'><div>\n";
if (strlen($_GET["server"])) {
echo '<input type="hidden" name="server" value="' . htmlspecialchars($_GET["server"]) . '" />';

View file

@ -7,7 +7,6 @@ if ($_POST) {
$error = mysql_error();
}
page_header(lang('SQL command'), (strlen($_GET["db"]) ? "" : "db"));
echo "<h2>" . lang('SQL command') . "</h2>\n";
if ($_POST) {
if (!$result) {

View file

@ -1,6 +1,5 @@
<?php
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"]));
echo "<table border='1' cellspacing='0' cellpadding='2'>\n";

View file

@ -1,4 +1,3 @@
<?php
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));