/**
* Manage databases within a server
*
- * $Id: all_db.php,v 1.6 2003/02/07 17:34:32 xzilla Exp $
+ * $Id: all_db.php,v 1.7 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
}
$misc->printHeader($strDatabases);
+ $misc->printBody();
switch ($action) {
case 'save_create':
* if you click on a database it shows a list of database objects in that
* database.
*
- * $Id: browser.php,v 1.2 2003/02/07 17:34:34 xzilla Exp $
+ * $Id: browser.php,v 1.3 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
// Output header
$misc->printHeader();
+ $misc->printBody('browser');
// Construct expanding tree
$tree = new Tree ('classes/class.tree');
/**
* Class to hold various commonly used functions
*
- * $Id: Misc.php,v 1.13 2003/02/09 09:23:39 chriskl Exp $
+ * $Id: Misc.php,v 1.14 2003/03/01 00:53:50 slubek Exp $
*/
class Misc {
* Prints the page header. If global variable $_no_output is
* set then no header is drawn.
* @param $title The title of the page
- * @param $doBody True to output body tag, false otherwise
*/
- function printHeader($title = '', $doBody = true) {
+ function printHeader($title = '') {
global $appName, $appCharset, $_no_output, $guiTheme;
if (!isset($_no_output)) {
include("themes/{$guiTheme}/global.css");
echo "\n-->\n</style>\n";
echo "</head>\n";
- if ($doBody) echo "<body>\n";
}
}
echo "</html>\n";
}
+ /**
+ * Prints the page body.
+ * @param $doBody True to output body tag, false otherwise
+ * @param $bodyClass - name of body class
+ */
+ function printBody($bodyClass = '', $doBody = true ) {
+ global $_no_output;
+
+ if (!isset($_no_output)) {
+ if ($doBody) {
+ $bodyClass = htmlspecialchars($bodyClass);
+ echo "<body", ($bodyClass == '' ? '' : " class=\"{$bodyClass}\"") , ">\n";
+ }
+ }
+ }
+
+
/**
* Display the navigation header for tables
*/
/**
* List constraints on a table
*
- * $Id: constraints.php,v 1.2 2003/02/07 17:34:34 xzilla Exp $
+ * $Id: constraints.php,v 1.3 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
}
$misc->printHeader($strTables . ' - ' . $_REQUEST['table'] . ' - ' . $strConstraints);
-
+ $misc->printBody();
+
switch ($action) {
case 'save_create':
doSaveCreate();
/**
* Manage schemas within a database
*
- * $Id: database.php,v 1.5 2003/02/20 23:17:05 slubek Exp $
+ * $Id: database.php,v 1.6 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
}
$misc->printHeader($strSchemas);
+ $misc->printBody();
switch ($action) {
case 'sql':
* List databases in a server
* @param $webdbServerID The ID of the current server
*
- * $Id: databases.php,v 1.2 2003/02/07 17:34:34 xzilla Exp $
+ * $Id: databases.php,v 1.3 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
include_once('libraries/lib.inc.php');
$misc->printHeader($strDatabases);
+ $misc->printBody();
?>
<h1><?php echo $appName ?></h1>
* @param $return_desc The return link name
* @param $page The current page
*
- * $Id: display.php,v 1.5 2003/02/09 09:23:37 chriskl Exp $
+ * $Id: display.php,v 1.6 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
$PHP_SELF = $_SERVER['PHP_SELF'];
$misc->printHeader($strQueryResults);
-
+ $misc->printBody();
+
echo "<h2>", htmlspecialchars($_REQUEST['database']), ": {$strQueryResults}</h2>\n";
// If current page is not set, default to first page
/**
* Manage functions in a database
*
- * $Id: functions.php,v 1.5 2003/02/23 11:34:48 chriskl Exp $
+ * $Id: functions.php,v 1.6 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
}
$misc->printHeader($strFunctions);
+ $misc->printBody();
switch ($action) {
case 'save_create':
/**
* Manage groups in a database cluster
*
- * $Id: groups.php,v 1.3 2003/02/07 17:34:34 xzilla Exp $
+ * $Id: groups.php,v 1.4 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
}
$misc->printHeader($strGroups);
+ $misc->printBody();
switch ($action) {
case 'save_create':
/**
* List indexes on a table
*
- * $Id: indexes.php,v 1.3 2003/02/21 06:43:21 chriskl Exp $
+ * $Id: indexes.php,v 1.4 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
}
$misc->printHeader($strTables . ' - ' . $_REQUEST['table'] . ' - ' . $strIndexes);
+ $misc->printBody();
switch ($action) {
case 'save_create_index':
/**
* Intro screen
*
- * $Id: intro.php,v 1.2 2003/02/07 17:34:34 xzilla Exp $
+ * $Id: intro.php,v 1.3 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
include_once('libraries/lib.inc.php');
$misc->printHeader();
+ $misc->printBody();
?>
<h1><?php echo $appName ?></h1>
/**
* Login screen
*
- * $Id: login.php,v 1.4 2003/02/08 15:25:58 xzilla Exp $
+ * $Id: login.php,v 1.5 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
// Output header
$misc->printHeader($strLogin);
+ $misc->printBody();
?>
<table class="navbar" border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
/**
* FILENAME: operators.php
*
- * $Id: operators.php,v 1.2 2003/02/07 17:34:35 xzilla Exp $
+ * $Id: operators.php,v 1.3 2003/03/01 00:53:51 slubek Exp $
*/
include_once( 'libraries/lib.inc.php' );
$misc->printHeader($strOperators);
+$misc->printBody();
switch( $action )
{
/**
* Manage privileges in a database
*
- * $Id: privileges.php,v 1.6 2003/02/10 14:48:53 chriskl Exp $
+ * $Id: privileges.php,v 1.7 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
}
$misc->printHeader($strPrivileges);
+ $misc->printBody();
switch ($action) {
case 'savegrantgroup':
/**
* List reports in a database
*
- * $Id: reports.php,v 1.5 2003/02/26 04:39:50 chriskl Exp $
+ * $Id: reports.php,v 1.6 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
}
$misc->printHeader($strReports);
+ $misc->printBody();
switch ($action) {
case 'save_create':
/**
* List rules on a table
*
- * $Id: rules.php,v 1.2 2003/02/07 17:34:35 xzilla Exp $
+ * $Id: rules.php,v 1.3 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
}
$misc->printHeader($strTables . ' - ' . $_REQUEST['table'] . ' - ' . $strRules);
+ $misc->printBody();
switch ($action) {
case 'save_create':
/**
* FILENAME: sequence.php
*
- * $Id: sequences.php,v 1.4 2003/02/18 00:53:19 slubek Exp $
+ * $Id: sequences.php,v 1.5 2003/03/01 00:53:51 slubek Exp $
*/
include_once( 'libraries/lib.inc.php' );
}
$misc->printHeader($strSequences);
+ $misc->printBody();
switch( $action )
{
/**
* List tables in a database
*
- * $Id: tables.php,v 1.6 2003/02/23 11:37:09 chriskl Exp $
+ * $Id: tables.php,v 1.7 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
}
$misc->printHeader($strTables);
+ $misc->printBody();
switch ($action) {
case 'create':
/**
* List tables in a database
*
- * $Id: tblproperties.php,v 1.3 2003/02/20 23:17:05 slubek Exp $
+ * $Id: tblproperties.php,v 1.4 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
}
$misc->printHeader($strTables . ' - ' . $_REQUEST['table']);
+ $misc->printBody();
switch ($action) {
case 'triggers':
/**
* Top menu for WebDB
*
- * $Id: topbar.php,v 1.4 2003/02/16 05:30:53 chriskl Exp $
+ * $Id: topbar.php,v 1.5 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
include_once('libraries/lib.inc.php');
$misc->printHeader();
+ $misc->printBody('topbar');
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
/**
* List triggers on a table
*
- * $Id: triggers.php,v 1.2 2003/02/07 17:34:35 xzilla Exp $
+ * $Id: triggers.php,v 1.3 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
}
$misc->printHeader($strTables . ' - ' . $_REQUEST['table'] . ' - ' . $strTriggers);
+ $misc->printBody();
switch ($action) {
case 'save_create':
/**
* Manage types in a database
*
- * $Id: types.php,v 1.3 2003/02/20 23:17:05 slubek Exp $
+ * $Id: types.php,v 1.4 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
}
$misc->printHeader($strTypes);
+ $misc->printBody();
switch ($action) {
case 'save_create':
/**
* Manage users in a database cluster
*
- * $Id: users.php,v 1.3 2003/02/20 23:19:38 slubek Exp $
+ * $Id: users.php,v 1.4 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
}
$misc->printHeader('Users');
+ $misc->printBody();
switch ($action) {
case 'save_create':
/**
* Manage views in a database
*
- * $Id: views.php,v 1.4 2003/02/20 23:17:05 slubek Exp $
+ * $Id: views.php,v 1.5 2003/03/01 00:53:51 slubek Exp $
*/
// Include application functions
}
$misc->printHeader($strViews);
+ $misc->printBody();
switch ($action) {
case 'save_create':