From b180dc38014a69240da13a379c11994970793751 Mon Sep 17 00:00:00 2001 From: xzilla Date: Thu, 8 Jul 2004 17:57:31 +0000 Subject: [PATCH] add some left out helps in all_db and constraints, all_db is now completley up to speed on printTitle --- all_db.php | 8 ++++---- classes/database/Postgres.php | 10 +++++++--- classes/database/Postgres71.php | 8 ++++++-- constraints.php | 4 ++-- 4 files changed, 19 insertions(+), 11 deletions(-) diff --git a/all_db.php b/all_db.php index 2ef5c0c5..2b9590b6 100644 --- a/all_db.php +++ b/all_db.php @@ -3,7 +3,7 @@ /** * Manage databases within a server * - * $Id: all_db.php,v 1.24 2004/07/07 02:59:56 chriskl Exp $ + * $Id: all_db.php,v 1.25 2004/07/08 17:57:32 xzilla Exp $ */ // Include application functions @@ -21,7 +21,7 @@ global $PHP_SELF, $lang, $_reload_drop_database; if ($confirm) { - echo "

{$lang['strdatabases']}: ", $misc->printVal($_REQUEST['db']), ": {$lang['strdrop']}

\n"; + $misc->printTitle(array($lang['strdatabases'], $misc->printVal($_REQUEST['db']), $lang['strdrop']), 'drop_database'); echo "

", sprintf($lang['strconfdropdatabase'], $misc->printVal($_REQUEST['db'])), "

\n"; echo "
\n"; echo "\n"; @@ -59,7 +59,7 @@ $_POST['formEncoding'] = ''; } - echo "

{$lang['strdatabases']}: {$lang['strcreatedatabase']}

\n"; + $misc->printTitle(array($lang['strdatabases'], $lang['strcreatedatabase']), 'create_database'); $misc->printMsg($msg); echo "\n"; @@ -111,7 +111,7 @@ global $data, $conf, $misc; global $PHP_SELF, $lang; - $misc->printTitle(array($lang['strdatabases']), ''); + $misc->printTitle(array($lang['strdatabases']), 'managing_databases'); $misc->printMsg($msg); $databases = &$data->getDatabases(); diff --git a/classes/database/Postgres.php b/classes/database/Postgres.php index 5df58630..ec13f09e 100755 --- a/classes/database/Postgres.php +++ b/classes/database/Postgres.php @@ -4,7 +4,7 @@ * A class that implements the DB interface for Postgres * Note: This class uses ADODB and returns RecordSets. * - * $Id: Postgres.php,v 1.228 2004/07/07 03:00:07 chriskl Exp $ + * $Id: Postgres.php,v 1.229 2004/07/08 17:57:31 xzilla Exp $ */ // @@@ THOUGHT: What about inherits? ie. use of ONLY??? @@ -137,7 +137,11 @@ class Postgres extends BaseDB { 'types' => 'xtypes.htm', 'create_type' => 'sql-createtype.htm', 'drop_type' => 'sql-droptype.htm', - 'operators' => 'xoper.htm' + 'operators' => 'xoper.htm', + 'managing_databases' => 'managing-databases.htm', + 'create_database' => 'sql-createdatabase.htm', + 'drop_database' => 'sql-dropdatabase.htm', + 'constraints' => 'ddl-constraints.htm' ); /** @@ -884,7 +888,7 @@ class Postgres extends BaseDB { // addCSlashes converts all weird ASCII characters to octal representation, // EXCEPT the 'special' ones like \r \n \t, etc. if ($type == 'bytea') $value = addCSlashes($value, "\0..\37\177..\377"); - echo "\n"; break; diff --git a/classes/database/Postgres71.php b/classes/database/Postgres71.php index 9ad403c4..b0491add 100644 --- a/classes/database/Postgres71.php +++ b/classes/database/Postgres71.php @@ -4,7 +4,7 @@ * A class that implements the DB interface for Postgres * Note: This class uses ADODB and returns RecordSets. * - * $Id: Postgres71.php,v 1.62 2004/07/07 03:00:07 chriskl Exp $ + * $Id: Postgres71.php,v 1.63 2004/07/08 17:57:31 xzilla Exp $ */ // @@@ THOUGHT: What about inherits? ie. use of ONLY??? @@ -75,7 +75,11 @@ class Postgres71 extends Postgres { 'types' => 'xtypes.html', 'create_type' => 'sql-createtype.html', 'drop_type' => 'sql-droptype.html', - 'operators' => 'xoper.html' + 'operators' => 'xoper.html', + 'managing_databases' => 'managing-databases.html', + 'create_database' => 'sql-createdatabase.html', + 'drop_database' => 'sql-dropdatabase.html', + 'constraints' => 'ddl-constraints.html' ); /** diff --git a/constraints.php b/constraints.php index 9e07ecc8..705a4278 100644 --- a/constraints.php +++ b/constraints.php @@ -3,7 +3,7 @@ /** * List constraints on a table * - * $Id: constraints.php,v 1.31 2004/07/07 02:59:56 chriskl Exp $ + * $Id: constraints.php,v 1.32 2004/07/08 17:57:32 xzilla Exp $ */ // Include application functions @@ -479,7 +479,7 @@ } $misc->printTableNav(); - $misc->printTitle(array($misc->printVal($_REQUEST['database']), $misc->printVal($_REQUEST['table']), $lang['strconstraints'])); + $misc->printTitle(array($misc->printVal($_REQUEST['database']), $misc->printVal($_REQUEST['table']), $lang['strconstraints']),'constraints'); $misc->printMsg($msg); $constraints = &$data->getConstraints($_REQUEST['table']); -- 2.39.5