* View and edit table comments
* Changed XML format significantly. Now doesn't use field names as
tag names, outputs column type information, and is in correct XML format!
+* 'Save as Report' feature when viewing record sets
Bug Fixes:
* Lots of NULL value in table dump fixes (XML format changed slightly)
* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: BaseDB.php,v 1.24 2003/08/12 08:18:54 chriskl Exp $
+ * $Id: BaseDB.php,v 1.25 2003/08/18 08:10:16 chriskl Exp $
*/
include_once('classes/database/ADODB_base.php');
function getSelectSQL($table, $show, $values, $nulls, $orderby = array()) {
$this->fieldClean($table);
- $sql = "SELECT \"" . join('","', $show) . "\" FROM \"{$table}\"";
+ $sql = "SELECT \"" . join('","', $show) . "\" FROM ";
+ if ($this->hasSchemas()) {
+ $this->fieldClean($_REQUEST['schema']);
+ $sql .= "\"{$_REQUEST['schema']}\".";
+ }
+ $sql .= "\"{$table}\"";
// If we have values specified, add them to the WHERE clause
$first = true;
* @param $return_desc The return link name
* @param $page The current page
*
- * $Id: display.php,v 1.21 2003/08/05 06:04:36 chriskl Exp $
+ * $Id: display.php,v 1.22 2003/08/18 08:10:16 chriskl Exp $
*/
// Include application functions
}
else echo "<p>{$lang['strnodata']}</p>\n";
- echo "<p><a class=\"navlink\" href=\"{$_REQUEST['return_url']}\">{$_REQUEST['return_desc']}</a></p>\n";
+ echo "<p><a class=\"navlink\" href=\"{$_REQUEST['return_url']}\">{$_REQUEST['return_desc']}</a> |\n";
+ echo "<a class=\"navlink\" href=\"reports.php?action=create&db_name=", urlencode($_REQUEST['database']), "&report_sql=",
+ urlencode($_REQUEST['query']), "\">Save As Report</a></p>\n";
$misc->printFooter();
?>