* A class that implements the DB interface for Postgres\r
* Note: This class uses ADODB and returns RecordSets.\r
*\r
- * $Id: Postgres.php,v 1.10 2002/09/23 06:18:55 chriskl Exp $\r
+ * $Id: Postgres.php,v 1.11 2002/09/25 22:10:20 xzilla Exp $\r
*/\r
\r
// @@@ THOUGHT: What about inherits? ie. use of ONLY???\r
var $tbFields = array('tbname' => 'tablename', 'tbowner' => 'tableowner');\r
var $vwFields = array('vwname' => 'viewname', 'vwowner' => 'viewowner', 'vwdef' => 'definition');\r
var $uFields = array('uname' => 'usename', 'usuper' => 'usesuper', 'ucreatedb' => 'usecreatedb', 'uexpires' => 'valuntil');\r
+ var $sqFields = array('seqname' => 'relname');\r
\r
// Last oid assigned to a system object\r
var $_lastSystemOID = 18539;\r
* FILENAME: sequence.php
* AUTHOR: Ray Hunter <rhunter@venticon.com>
*
- * $Id: sequences.php,v 1.2 2002/07/26 09:03:06 chriskl Exp $
+ * $Id: sequences.php,v 1.3 2002/09/25 22:10:21 xzilla Exp $
*/
include_once( '../conf/config.inc.php' );
// {{{ doDefault()
function doDefault()
{
- global $data, $localData, $misc, $database;
+ global $data, $localData, $misc, $database, $sequences;
global $PHP_SELF;
global $strNoSequences, $strSequences, $strOwner, $strActions;
echo "<table>\n";
echo "<tr><th class=\"data\">{$strSequences}</th><th class=\"data\">{$strOwner}</th><th colspan=\"4\" class=\"data\">{$strActions}</th>\n";
$i = 0;
- /*
+
while( !$sequences->EOF )
{
$id = ( ($i % 2 ) == 0 ? '1' : '2' );
- //echo "<tr><td class=\"data{$id}", htmlspecialchars( $sequences->f[$data->seqFields['seqname']]), "</td>\n";
+ echo "<tr><td class=\"data{$id}\">", htmlspecialchars( $sequences->f[$data->sqFields['seqname']]), "</td><td>Owner</td><td>Actions</td></tr>\n";
+
+ $sequences->movenext();
+ $i++;
}
- */
+
+
echo "</table>\n";
}
else