/**
* List tables in a database
*
- * $Id: tables.php,v 1.79 2006/06/23 00:57:37 xzilla Exp $
+ * $Id: tables.php,v 1.80 2006/06/29 18:22:33 xzilla Exp $
*/
// Include application functions
'action' => url('redirect.php',
$reqvars,
array('table' => field('relname'))
- )
+ ),
+ 'branch' => url('tblproperties.php',
+ $reqvars,
+ array (
+ 'action' => 'tree',
+ 'table' => field('relname')
+ )
+ )
);
$misc->printTreeXML($tables, $attrs);
/**
* List tables in a database
*
- * $Id: tblproperties.php,v 1.69 2006/06/17 12:57:36 xzilla Exp $
+ * $Id: tblproperties.php,v 1.70 2006/06/29 18:22:34 xzilla Exp $
*/
// Include application functions
}
+ function doTree() {
+ global $misc, $data;
+
+ $columns = $data->getTableAttributes($_REQUEST['table']);
+ $reqvars = $misc->getRequestVars('table');
+
+ $attrs = array (
+ 'text' => field('attname'),
+ 'icon' => 'Column',
+ 'toolTip'=> field('comment')
+ );
+
+ $misc->printTreeXML($columns, $attrs);
+
+ exit;
+ }
+
+ if ($action == 'tree') doTree();
+
/**
* Show default list of columns in the table
*/
/**
* List views in a database
*
- * $Id: viewproperties.php,v 1.19 2006/06/23 00:31:44 xzilla Exp $
+ * $Id: viewproperties.php,v 1.20 2006/06/29 18:22:34 xzilla Exp $
*/
// Include application functions
echo "<p>{$lang['strinvalidparam']}</p>\n";
}
}
-
+
+ function doTree () {
+ global $misc, $data;
+
+ $columns = $data->getTableAttributes($_REQUEST['view']);
+ $reqvars = $misc->getRequestVars('view');
+
+ $attrs = array (
+ 'text' => field('attname'),
+ 'icon' => 'Column',
+ 'toolTip'=> field('comment')
+ );
+
+ $misc->printTreeXML($columns, $attrs);
+
+ exit;
+ }
+
+ if ($action == 'tree') doTree();
+
/**
* Show view definition and virtual columns
*/
/**
* Manage views in a database
*
- * $Id: views.php,v 1.57 2006/06/23 00:57:37 xzilla Exp $
+ * $Id: views.php,v 1.58 2006/06/29 18:22:34 xzilla Exp $
*/
// Include application functions
'action' => url('redirect.php',
$reqvars,
array('view' => field('relname'))
+ ),
+ 'branch' => url('viewproperties.php',
+ $reqvars,
+ array (
+ 'action' => 'tree',
+ 'view' => field('relname')
+ )
)
);