add some left out helps in all_db and constraints, all_db is now completley up to...
authorxzilla <xzilla>
Thu, 8 Jul 2004 17:57:31 +0000 (17:57 +0000)
committerxzilla <xzilla>
Thu, 8 Jul 2004 17:57:31 +0000 (17:57 +0000)
all_db.php
classes/database/Postgres.php
classes/database/Postgres71.php
constraints.php

index 2ef5c0c5f9bc9704913aa996ae7de4cbfff03222..2b9590b61871a011271f56dd8b0c88e841e68aa3 100644 (file)
@@ -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 "<h2>{$lang['strdatabases']}: ", $misc->printVal($_REQUEST['db']), ": {$lang['strdrop']}</h2>\n";
+                       $misc->printTitle(array($lang['strdatabases'], $misc->printVal($_REQUEST['db']), $lang['strdrop']), 'drop_database');
                        echo "<p>", sprintf($lang['strconfdropdatabase'], $misc->printVal($_REQUEST['db'])), "</p>\n";  
                        echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
                        echo "<input type=\"hidden\" name=\"action\" value=\"drop\" />\n";
@@ -59,7 +59,7 @@
                                $_POST['formEncoding'] = '';
                }
                
-               echo "<h2>{$lang['strdatabases']}: {$lang['strcreatedatabase']}</h2>\n";
+               $misc->printTitle(array($lang['strdatabases'], $lang['strcreatedatabase']), 'create_database');
                $misc->printMsg($msg);
                
                echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
                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();
index 5df58630f7cf7a21e8720c9d5a3329dfd807eb2b..ec13f09e337a9f3756e8a9ae322bf52f8f5089bf 100755 (executable)
@@ -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 "<textarea name=\"", htmlspecialchars($name), "\" rows=\"5\" cols=\"28\" wrap=\"virtual\"{$action_str}>\n";
+                               echo "<textarea name=\"", htmlspecialchars($name), "\" rows=\"5\" cols=\"75\" wrap=\"virtual\"{$action_str}>\n";
                                echo htmlspecialchars($value);
                                echo "</textarea>\n";
                                break;
index 9ad403c411660972095d4894fd31ba47578cb420..b0491add847e03ca76c6bfebdb26f3bc531d5fe3 100644 (file)
@@ -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'
        );
 
        /**
index 9e07ecc8a0302f30152b9d519839527c53088375..705a4278b17bd0f729fd94f38ab326f01f924473 100644 (file)
@@ -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
                }
                
                $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']);