make it 3.1. fix xhtml downloads. improve xml format
authorchriskl <chriskl>
Mon, 22 Sep 2003 06:21:11 +0000 (06:21 +0000)
committerchriskl <chriskl>
Mon, 22 Sep 2003 06:21:11 +0000 (06:21 +0000)
HISTORY
TODO
dataexport.php
libraries/lib.inc.php
tblproperties.php

diff --git a/HISTORY b/HISTORY
index 27854d1219916d862e5637ef19d4ab2e321545d8..8c042a6f5da5ac38ac1bd254c874d4a065fcd530 100644 (file)
--- a/HISTORY
+++ b/HISTORY
@@ -8,6 +8,8 @@ Bug Fixes:
 * Table browsing for 7.4 fixed
 * Synch script for translators disabled due to bugginess.  If you want
   to use it, just comment out the warning lines from the script itself.
+* Change HTML download to XHTML and make it a 100% conforming document, with DTD
+* Alter XML format to allow future features
 
 Translations:
 * Trad. Chinese
diff --git a/TODO b/TODO
index 8021be321cc1729a2070f7f01d295d236b1ad58a..c0a303e6ba48a78cb6352d2a090e27f1de8bf8ef 100644 (file)
--- a/TODO
+++ b/TODO
@@ -52,6 +52,7 @@ Functions
 ---------
 
 * Browse function (set-returning-functions only)
+* Syntax highlighting?
 
 Indexes 
 -------
@@ -121,6 +122,7 @@ Miscellaneous
 * Show owner for all objects
 * Allow changing owner for objects that have this feature (7.4+ generally)
 * pg_dump integration
+* Config option to disallow pgsql and postgres logins
 
 Exotic
 ------
@@ -129,6 +131,7 @@ Exotic
 * -Search for object feature (chriskl)
 * Pivot reports (ADODB has a feature for this)
 * Parameratised reports (use prepared queries)
+* Full web accessability conformance
 
 Principles
 ----------
index cee90198a5ec764b8ce48c4744bafd8520590ce9..8069ecb5ff089061008c41311009d91be1204eb7 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Does an export to the screen or as a download
         *
-        * $Id: dataexport.php,v 1.1 2003/08/25 01:44:04 chriskl Exp $
+        * $Id: dataexport.php,v 1.2 2003/09/22 06:21:11 chriskl Exp $
         */
 
        $extensions = array(
                                echo "\\.\n";
                        }
                        elseif ($_REQUEST['format'] == 'html') {
-                               echo "<html>\r\n";
+                               echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n";
+                               echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n";
                                echo "<head>\r\n";
+                               echo "\t<title></title>\r\n";
                                echo "\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset={$localData->codemap[$dbEncoding]}\" />\r\n";
                                echo "</head>\r\n";
                                echo "<body>\r\n";
                                if (isset($localData->codemap[$dbEncoding]))
                                        echo " encoding=\"{$localData->codemap[$dbEncoding]}\"";
                                echo " ?>\n";
-                               echo "<records>\n";
+                               echo "<data>\n";
                                if (!$rs->EOF) {
                                        // Output header row
                                        $j = 0;
                                        }
                                        echo "\t</header>\n";
                                }
+                               echo "\t<records>\n";
                                while (!$rs->EOF) {
                                        $j = 0;
-                                       echo "\t<row>\n";
+                                       echo "\t\t<row>\n";
                                        foreach ($rs->f as $k => $v) {
                                                $finfo = $rs->fetchField($j++);
                                                $name = htmlspecialchars($finfo->name);
                                                if ($v != null) $v = htmlspecialchars($v);
-                                               echo "\t\t<column name=\"{$name}\"", ($v == null ? ' null="null"' : ''), ">{$v}</column>\n";
+                                               echo "\t\t\t<column name=\"{$name}\"", ($v == null ? ' null="null"' : ''), ">{$v}</column>\n";
                                        }
-                                       echo "\t</row>\n";
+                                       echo "\t\t</row>\n";
                                        $rs->moveNext();
                                }
-                               echo "</records>\n";
+                               echo "\t</records>\n";
+                               echo "</data>\n";
                        }
                        elseif ($_REQUEST['format'] == 'sql') {
                                $data->fieldClean($_REQUEST['table']);
                }
                echo "<option value=\"csv\">CSV</option>\n";
                echo "<option value=\"tab\">Tabbed</option>\n";
-               echo "<option value=\"html\">HTML</option>\n";
+               echo "<option value=\"html\">XHTML</option>\n";
                echo "<option value=\"xml\">XML</option>\n";
                echo "</select></td></tr>";
                echo "<tr><th class=\"data\">{$lang['strdownload']}</th><td><input type=\"checkbox\" name=\"download\" /></td></tr>";
index 190420a10f0fbc78378a4fa6be7bde2167e48f4c..94e5e57ed1e0b3e216916211149df83cf51d2b73 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Function library read in upon startup
         *
-        * $Id: lib.inc.php,v 1.62 2003/09/18 08:07:05 chriskl Exp $
+        * $Id: lib.inc.php,v 1.63 2003/09/22 06:21:11 chriskl Exp $
         */
        
        // Set error reporting level to max
@@ -13,7 +13,7 @@
        $appName = 'phpPgAdmin';
 
        // Application version
-       $appVersion = '3.1-rc-1';
+       $appVersion = '3.1';
 
 
        // Check to see if the configuration file exists, if not, explain
index a43b106d832074daee8cf94ce14634dca3861c00..af23c3c3db45023cbe8d452d07c75fd0db80a7ea 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * List tables in a database
         *
-        * $Id: tblproperties.php,v 1.24 2003/09/09 06:23:12 chriskl Exp $
+        * $Id: tblproperties.php,v 1.25 2003/09/22 06:21:11 chriskl Exp $
         */
 
        // Include application functions
                echo "<option value=\"sql\">SQL</option>\n";
                echo "<option value=\"csv\">CSV</option>\n";
                echo "<option value=\"tab\">Tabbed</option>\n";
-               echo "<option value=\"html\">HTML</option>\n";
+               echo "<option value=\"html\">XHTML</option>\n";
                echo "<option value=\"xml\">XML</option>\n";
                echo "</select></td></tr>";
                echo "<tr><th class=\"data\">OIDS:</th><td><input type=\"checkbox\" name=\"oids\" /></td></tr>";