Permalink
Browse files

Wide-spread improvements to navigation tabs.

  • Loading branch information...
1 parent de0f964 commit 34f9fa9a10e42c9e7eecacc1a578d7ca452c9ba0 jollytoad committed Jul 13, 2004
Showing with 370 additions and 241 deletions.
  1. +2 −1 aggregates.php
  2. +3 −2 all_db.php
  3. +8 −8 browser.php
  4. +2 −1 casts.php
  5. +255 −154 classes/Misc.php
  6. +4 −3 constraints.php
  7. +2 −1 conversions.php
  8. +11 −10 database.php
  9. +11 −11 dataimport.php
  10. +2 −1 domains.php
  11. +2 −1 functions.php
  12. +2 −1 groups.php
  13. +4 −3 indexes.php
  14. +2 −2 info.php
  15. +2 −1 languages.php
  16. +2 −2 links.js
  17. +2 −1 opclasses.php
  18. +2 −1 operators.php
  19. +2 −9 privileges.php
  20. +14 −0 redirect.php
  21. +3 −5 rules.php
  22. +3 −2 sequences.php
  23. +2 −2 sql.php
  24. +3 −3 sqledit.php
  25. +3 −2 tables.php
  26. +8 −4 tblproperties.php
  27. +2 −2 triggers.php
  28. +2 −1 types.php
  29. +2 −1 users.php
  30. +5 −4 viewproperties.php
  31. +3 −2 views.php
View
@@ -3,7 +3,7 @@
/**
* Manage aggregates in a database
*
- * $Id: aggregates.php,v 1.5 2004/07/07 02:59:56 chriskl Exp $
+ * $Id: aggregates.php,v 1.6 2004/07/13 15:24:40 jollytoad Exp $
*/
// Include application functions
@@ -51,6 +51,7 @@ function aggPre(&$rowdata) {
$misc->printHeader($lang['straggregates']);
$misc->printBody();
+ $misc->printNav('schema', 'aggregates');
switch ($action) {
default:
View
@@ -3,7 +3,7 @@
/**
* Manage databases within a server
*
- * $Id: all_db.php,v 1.29 2004/07/10 08:57:56 chriskl Exp $
+ * $Id: all_db.php,v 1.30 2004/07/13 15:24:40 jollytoad Exp $
*/
// Include application functions
@@ -20,7 +20,7 @@ function doDrop($confirm) {
global $data, $misc;
global $PHP_SELF, $lang, $_reload_drop_database;
- if ($confirm) {
+ if ($confirm) {
$misc->printTitle(array($lang['strdatabases'], $misc->printVal($_REQUEST['db']), $lang['strdrop']), 'drop_database');
echo "<p>", sprintf($lang['strconfdropdatabase'], $misc->printVal($_REQUEST['db'])), "</p>\n";
echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
@@ -196,6 +196,7 @@ function doDefault($msg = '') {
$misc->printHeader($lang['strdatabases']);
$misc->printBody();
+ $misc->printNav('server','databases');
switch ($action) {
case 'save_create':
View
@@ -5,7 +5,7 @@
* if you click on a database it shows a list of database objects in that
* database.
*
- * $Id: browser.php,v 1.39 2004/07/07 02:59:56 chriskl Exp $
+ * $Id: browser.php,v 1.40 2004/07/13 15:24:40 jollytoad Exp $
*/
// Include application functions
@@ -22,7 +22,7 @@
$menu = new HTML_TreeMenu(null, array('usePersistence' => false));
$root = new HTML_TreeNode(array(
'text' => $misc->printVal(($conf['servers'][$_SESSION['webdbServerID']]['desc'])),
- 'link' => addslashes('all_db.php?' . SID),
+ 'link' => addslashes('redirect.php?section=server&amp;' . SID),
'icon' => 'folder.gif',
'expandedIcon' => 'folder-expanded.gif',
'expanded' => true,
@@ -34,7 +34,7 @@
/**
* Helper function for adding nodes
* @param $schemanode Node onto which to add
- */
+ */
function addNodes(&$schemanode, $querystr) {
global $data, $misc, $lang, $conf;
@@ -56,7 +56,7 @@ function addNodes(&$schemanode, $querystr) {
$return_url = urlencode("tblproperties.php?table=" . urlencode($tables->f['relname']) . "&{$querystr}");
$item_node = &new HTML_TreeNode(array(
'text' => $misc->printVal($tables->f['relname']),
- 'link' => addslashes(htmlspecialchars("tblproperties.php?{$querystr}&table=" .
+ 'link' => addslashes(htmlspecialchars("redirect.php?section=table&{$querystr}&table=" .
urlencode($tables->f['relname']))),
'icon' => "../../../images/themes/{$conf['theme']}/tables.png",
'expandedIcon' => "../../../images/themes/{$conf['theme']}/tables.png",
@@ -90,7 +90,7 @@ function addNodes(&$schemanode, $querystr) {
$return_url = urlencode("viewproperties.php?view=" . urlencode($views->f['relname']) . "&{$querystr}");
$item_node = &new HTML_TreeNode(array(
'text' => $misc->printVal($views->f['relname']),
- 'link' => addslashes(htmlspecialchars("viewproperties.php?{$querystr}&view=" .
+ 'link' => addslashes(htmlspecialchars("redirect.php?section=view&{$querystr}&view=" .
urlencode($views->f['relname']))),
'icon' => "../../../images/themes/{$conf['theme']}/views.png",
'expandedIcon' => "../../../images/themes/{$conf['theme']}/views.png",
@@ -152,7 +152,7 @@ function addNodes(&$schemanode, $querystr) {
|| $data->hasAggregates() || $data->hasOpClasses()) {
$adv_node = &new HTML_TreeNode(array(
'text' => $lang['stradvanced'],
- 'link' => ($data->hasSchemas()) ? addslashes(htmlspecialchars("schema.php?{$querystr}&" . SID)) : null,
+# 'link' => ($data->hasSchemas()) ? addslashes(htmlspecialchars("schema.php?{$querystr}&" . SID)) : null,
'icon' => 'folder.gif',
'expandedIcon' => 'folder-expanded.gif',
'linkTarget' => 'detail'));
@@ -237,7 +237,7 @@ function addNodes(&$schemanode, $querystr) {
$querystr = 'database=' . urlencode($databases->f['datname']) . '&' . SID;
$db_node = &new HTML_TreeNode(array(
'text' => $misc->printVal($databases->f['datname']),
- 'link' => addslashes(htmlspecialchars("database.php?{$querystr}")),
+ 'link' => addslashes(htmlspecialchars("redirect.php?section=database&{$querystr}")),
'icon' => "../../../images/themes/{$conf['theme']}/database.png",
'expandedIcon' => "../../../images/themes/{$conf['theme']}/database.png",
'expanded' => true,
@@ -253,7 +253,7 @@ function addNodes(&$schemanode, $querystr) {
urlencode($schemas->f['nspname']) . '&' . SID;
$schemanode = &new HTML_TreeNode(array(
'text' => $misc->printVal($schemas->f['nspname']),
- 'link' => addslashes(htmlspecialchars("schema.php?{$querystr}")),
+ 'link' => addslashes(htmlspecialchars("redirect.php?section=schema&{$querystr}")),
'icon' => 'folder.gif',
'expandedIcon' => 'folder-expanded.gif',
// Auto-expand your personal schema, if it exists. Also expand schema if there is
View
@@ -3,7 +3,7 @@
/**
* Manage casts in a database
*
- * $Id: casts.php,v 1.6 2004/07/07 02:59:56 chriskl Exp $
+ * $Id: casts.php,v 1.7 2004/07/13 15:24:40 jollytoad Exp $
*/
// Include application functions
@@ -67,6 +67,7 @@ function castPre(&$rowdata) {
$misc->printHeader($lang['strcasts']);
$misc->printBody();
+ $misc->printNav('database','casts');
switch ($action) {
default:
Oops, something went wrong.

0 comments on commit 34f9fa9

Please sign in to comment.