Name all navigation links so we can easily make reference to each of them from the...
authorJehan-Guillaume (ioguix) de Rorthais <ioguix@free.fr>
Fri, 11 May 2012 10:21:30 +0000 (12:21 +0200)
committerJehan-Guillaume (ioguix) de Rorthais <ioguix@free.fr>
Wed, 22 Aug 2012 10:32:12 +0000 (12:32 +0200)
27 files changed:
aggregates.php
all_db.php
colproperties.php
constraints.php
display.php
domains.php
fulltext.php
functions.php
groups.php
history.php
indexes.php
operators.php
privileges.php
reports.php
roles.php
rules.php
schemas.php
sequences.php
sql.php
tables.php
tablespaces.php
tblproperties.php
triggers.php
types.php
users.php
viewproperties.php
views.php

index 1e839d6e2540acba41b6172ee37c2fd778328935..de61e72829f31a7f5579c4143cfc2bfbc51c38d6 100644 (file)
                else echo "<p>{$lang['strnodata']}</p>\n";
 
                $navlinks = array (
-                       array (
+                       'showall' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'aggregates.php',
                );
 
                if ($data->hasAlterAggregate()) {
-                       $navlinks[] = array (
+                       $navlinks['alter'] = array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'aggregates.php',
                        );
                }
 
-               $navlinks[] = array (
+               $navlinks['drop'] = array (
                        'attr'=> array (
                                'href' => array (
                                        'url' => 'aggregates.php',
                $misc->printTable($aggregates, $columns, $actions, 'aggregates-aggregates', $lang['strnoaggregates']);
 
                $navlinks = array (
-                       array (
+                       'create' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'aggregates.php',
index 110ba96bed75b68ae5e6cbfbfa5fd7c144c620dc..350ac9bbd36c54dce66dab261bd58698e9f9432d 100644 (file)
                $misc->printTable($databases, $columns, $actions, 'all_db-databases', $lang['strnodatabases']);
 
                $navlinks = array (
-                   array (
+                   'create' => array (
                        'attr'=> array (
                            'href' => array (
                                'url' => 'all_db.php',
index c4d8ae3785a2f4587902749910d40dfc35ab9723..a0927d7d447945d6a9408edfe88c85fa467b7fd7 100644 (file)
                                 * send an ugly SQL in the URL */
 
                                $navlinks = array (
-                                       array (
+                                       'browse' => array (
                                                'attr'=> array (
                                                        'href' => array (
                                                                'url' => 'display.php',
                                                ),
                                                'content' => $lang['strbrowse'],
                                        ),
-                                       array (
+                                       'alter' => array (
                                                'attr'=> array (
                                                        'href' => array (
                                                                'url' => 'colproperties.php',
                                                ),
                                                'content' => $lang['stralter'],
                                        ),
-                                       array (
+                                       'drop' => array (
                                                'attr'=> array (
                                                        'href' => array (
                                                                'url' => 'tblproperties.php',
                        else {
                                /* Browse link */
                                $navlinks = array (
-                                       array (
+                                       'browse' => array (
                                                'attr'=> array (
                                                        'href' => array (
                                                                'url' => 'display.php',
index 526e7b7d19aeea9d0af001c8d70c206b6db471df..307601d183968ddcec2dec81c1349b7b4ea694dc 100644 (file)
                $misc->printTable($constraints, $columns, $actions, 'constraints-constraints', $lang['strnoconstraints'], 'cnPre');
 
                $navlinks = array (
-                       array (
+                       'addcheck' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'constraints.php',
                                ),
                                'content' => $lang['straddcheck'],
                        ),
-                       array (
+                       'adduniq' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'constraints.php',
                                ),
                                'content' => $lang['stradduniq'],
                        ),
-                       array (
+                       'addpk' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'constraints.php',
                                ),
                                'content' => $lang['straddpk'],
                        ),
-                       array (
+                       'addfk' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'constraints.php',
index 854c5e5688dc73836815616d51a521c6fe9d4ff3..9a3ebf56aa0449e0f3545fb7826137f7a3ae1267 100644 (file)
                if (isset($_REQUEST['return'])) {
                        $urlvars = $misc->getSubjectParams($_REQUEST['return']);
 
-                       $navlinks[] = array (
+                       $navlinks['back'] = array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => $urlvars['url'],
 
                // Edit SQL link
                if (isset($_REQUEST['query']))
-                       $navlinks[] = array (
+                       $navlinks['edit'] = array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'database.php',
 
                // Expand/Collapse
                if ($_REQUEST['strings'] == 'expanded')
-                       $navlinks[] = array (
+                       $navlinks['collapse'] = array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'display.php',
                                'content' => $lang['strcollapse']
                        );
                else
-                       $navlinks[] = array (
+                       $navlinks['collapse'] = array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'display.php',
 
                // Create report
                if (isset($_REQUEST['query']) && ($subject !== 'report') && $conf['show_reports'] && isset($rs) && is_object($rs) && $rs->recordCount() > 0) {
-                       $navlinks[] = array (
+                       $navlinks['createreport'] = array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'reports.php',
                        // Report views don't set a schema, so we need to disable create view in that case
                        if (isset($_REQUEST['schema'])) {
 
-                               $navlinks[] = array (
+                               $navlinks['createview'] = array (
                                        'attr'=> array (
                                                'href' => array (
                                                        'url' => 'views.php',
                        if (isset($_REQUEST['search_path']))
                                $urlvars['search_path'] = $_REQUEST['search_path'];
 
-                       $navlinks[] = array (
+                       $navlinks['download'] = array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'dataexport.php',
 
                // Insert
                if (isset($object) && (isset($subject) && $subject == 'table'))
-                       $navlinks[] = array (
+                       $navlinks['insert'] = array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'tables.php',
                        );
 
                // Refresh
-               $navlinks[] = array (
+               $navlinks['refresh'] = array (
                        'attr'=> array (
                                'href' => array (
                                        'url' => 'display.php',
index c7e3e79f11b36b583d705a3669bc418925f63c8f..ed1de7632a23e0e17fa548bbddb62956f728ee64 100644 (file)
                else echo "<p>{$lang['strnodata']}</p>\n";
                
                $navlinks = array (
-                       array (
+                       'drop' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'domains.php',
                        )
                );
                if ($data->hasAlterDomains()) {
-                       $navlinks[] = array (
+                       $navlinks['addcheck'] = array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'domains.php',
                                ),
                                'content' => $lang['straddcheck']
                        );
-                       $navlinks[] = array (
+                       $navlinks['alter'] = array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'domains.php',
                $misc->printTable($domains, $columns, $actions, 'domains-domains', $lang['strnodomains']);
 
                $navlinks = array (
-                       array (
+                       'create' => rray (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'domains.php',
index cdc6a2ecbd824f3d78213f76ec3a538be139dc56..00e6e9c530b6e1f53489bddea1dbeea0e8c54e69 100644 (file)
@@ -73,7 +73,7 @@
                $misc->printTable($cfgs, $columns, $actions, 'fulltext-fulltext', $lang['strftsnoconfigs']);
 
                $navlinks = array(
-                       array (
+                       'createconf' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'fulltext.php',
                $misc->printTable($dicts, $columns, $actions, 'fulltext-viewdicts', $lang['strftsnodicts']);
 
                $navlinks = array(
-                       array (
+                       'createdict' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'fulltext.php',
                $misc->printTable($map, $columns, $actions, 'fulltext-viewconfig', $lang['strftsemptymap']);
 
                $navlinks = array(
-                       array (
+                       'addmapping' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'fulltext.php',
index fc0522c84d0ae74c276595df17b6bb4af5fe63ac..67e7b6600df3af90eeb5782ce4fe64e52f7e05b5 100644 (file)
                else echo "<p>{$lang['strnodata']}</p>\n";
 
                $navlinks = array(
-                       array (
+                       'showall' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'functions.php',
                                ),
                                'content' => $lang['strshowallfunctions']
                        ),
-                       array (
+                       'alter' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'functions.php',
                                ),
                                'content' => $lang['stralter']
                        ),
-                       array (
+                       'drop' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'functions.php',
                $misc->printTable($funcs, $columns, $actions, 'functions-functions', $lang['strnofunctions']);
 
                $navlinks = array(
-                       array (
+                       'createpl' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'functions.php',
                                ),
                                'content' => $lang['strcreateplfunction']
                        ),
-                       array (
+                       'createinternal' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'functions.php',
                                ),
                                'content' => $lang['strcreateinternalfunction']
                        ),
-                       array (
+                       'createc' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'functions.php',
index 1678b3a255d388838c9e89b5968ccb9cdddfe12e..4351fc59e45ec74a3995e714cd1c1e99ba3d1647 100644 (file)
                                )
                        );
 
-                       $misc->printTable($groupdata, $columns, $actions, 'groups-properties', $lang['strnousers']);
+                       $misc->printTable($groupdata, $columns, $actions, 'groups-members', $lang['strnousers']);
                }
 
                // Display form for adding a user to the group                  
                echo "<input type=\"hidden\" name=\"action\" value=\"add_member\" />\n";
                echo "</form>\n";
                
-               $misc->printNavLinks(array (array (
+               $misc->printNavLinks(array ('showall' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'groups.php',
                
                $misc->printTable($groups, $columns, $actions, 'groups-properties', $lang['strnogroups']);
                
-               $misc->printNavLinks(array (array (
+               $misc->printNavLinks(array ('create' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'groups.php',
index c16caa1b6e6957c7ec36970a85bcdc3c3d7bc8db..3f5407973ef6fa6c113106b1aa6c4d12a9354fed 100644 (file)
@@ -85,7 +85,7 @@
                else echo "<p>{$lang['strnohistory']}</p>\n";
 
                $navlinks = array (
-                       array (
+                       'refresh' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'history.php',
 
                if (isset($_SESSION['history'][$_REQUEST['server']][$_REQUEST['database']]) 
                                && count($_SESSION['history'][$_REQUEST['server']][$_REQUEST['database']])) {
-                       $navlinks[] = array (
+                       $navlinks['download'] = array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'history.php',
                                ),
                                'content' => $lang['strdownload']
                        );
-                       $navlinks[] = array (
+                       $navlinks['clear'] = array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'history.php',
index fefe1a60a68e3c4c20c8b4ded1a68327d32a9b80..ce9a79555d2af52359b3195f2b026fec678a5c0f 100644 (file)
                $misc->printTable($indexes, $columns, $actions, 'indexes-indexes', $lang['strnoindexes'], 'indPre');
                
                $misc->printNavLinks(array (
-                       array (
+                       'create' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'indexes.php',
index c3be64fb6911d34aa6925de8922d2994222025db..99fb0f06d1ceccd6618bb2fe19450bf2d0aa2c99 100644 (file)
@@ -65,7 +65,7 @@
                        echo "</table>\n";
 
                        $misc->printNavLinks(array (
-                               array (
+                               'showall' => array (
                                        'attr'=> array (
                                                'href' => array (
                                                        'url' => 'operators.php',
index 0bf7bfafc9bc3ff77bb793478b19490208b47afd..72ef37160cb9818d61a9feefd44b350ebbe448e2 100644 (file)
                        case 'sequence':
                        case 'function':
                        case 'tablespace':
+                               $alllabel = "showall{$_REQUEST['subject']}s";
                                $allurl = "{$_REQUEST['subject']}s.php";
                                $alltxt = $lang["strshowall{$_REQUEST['subject']}s"];
                                break;
                        case 'schema':
+                               $alllabel = "showallschemas";
                                $allurl = "schemas.php";
                                $alltxt = $lang["strshowallschemas"];
                                break;
                        case 'database':
+                               $alllabel = "showalldatabases";
                                $allurl = 'all_db.php';
                                $alltxt = $lang['strshowalldatabases'];
                                break;
                }
 
                $navlinks = array (
-                       array (
+                       'grant' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'privileges.php',
                                ),
                                'content' => $lang['strgrant']
                        ),
-                       array (
+                       'revoke' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'privileges.php',
                );
 
                if (isset($allurl)) {
-                       $navlinks[] = array (
+                       $navlinks[$alllabel] = array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => $allurl,
index 89fac6bde47678e039d5225221facc2910a12500..c750f95cc1a9cab50ede8f46b55ce7241c9558d1 100644 (file)
                if (isset($_REQUEST['database'])) $urlvars['database'] = $_REQUEST['database'];
 
                $navlinks = array (
-                       array (
+                       'showall' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'reports.php',
                                ),
                                'content' => $lang['strshowallreports']
                        ),
-                       array (
+                       'alter' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'reports.php',
                                ),
                                'content' => $lang['stredit']
                        ),
-                       array (
+                       'exec' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'sql.php',
                if (isset($_REQUEST['schema'])) $urlvars['schema'] = $_REQUEST['schema'];
 
                $misc->printNavLinks(array (
-                       array (
+                       'create' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'reports.php',
index d705e9732bbdd965de6ec9eaceef0951d87b2a00..80a91939a516a713d34d7c18a57c21e527654a2a 100644 (file)
--- a/roles.php
+++ b/roles.php
                else echo "<p>{$lang['strnodata']}</p>\n";
 
                $navlinks = array (
-                       array (
+                       'showall' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'roles.php',
                                ),
                                'content' => $lang['strshowallroles']
                        ),
-                       array (
+                       'alter' => array (
                                'attr'=> array (
                                        'href' => array (
                                        'url' => 'roles.php',
                                ),
                                'content' => $lang['stralter']
                        ),
-                       array (
+                       'drop' => array (
                                'attr'=> array (
                                        'href' => array (
                                        'url' => 'roles.php',
                }
                else echo "<p>{$lang['strnodata']}</p>\n";
                
-               $misc->printNavLinks(array (array (
+               $misc->printNavLinks(array ('changepassword' =>  array (
                                'attr'=> array (
                                        'href' => array (
                                        'url' => 'roles.php',
                $misc->printTable($roles, $columns, $actions, 'roles-roles', $lang['strnoroles']);
 
                $navlinks = array (
-                       array (
+                       'create' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'roles.php',
index 6f0f3d863e100385519281a70299285e6fb01995..89a8100ba788c5b6bc07bfc967d1d9c76113fa40 100644 (file)
--- a/rules.php
+++ b/rules.php
 
                $misc->printTable($rules, $columns, $actions, 'rules-rules', $lang['strnorules']);
 
-               $misc->printNavLinks(array (array (
+               $misc->printNavLinks(array ('create' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'rules.php',
index 750d3737bec5025fc0ca00e17f82e560c5e8cb9e..ecb569cbc961f8ad6e906a964d99e2f5eac075bc 100755 (executable)
@@ -94,7 +94,7 @@
 
                $misc->printTable($schemas, $columns, $actions, 'schemas-schemas', $lang['strnoschemas']);
 
-               $misc->printNavLinks(array (array (
+               $misc->printNavLinks(array ('create' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'schemas.php',
index 223a8c8de64a43d001710eef0802abdafdd6df08..57893e8a28c28274fce1aeea9a2c06937448c664 100644 (file)
@@ -93,7 +93,7 @@
 
                $misc->printTable($sequences, $columns, $actions, 'sequences-sequences', $lang['strnosequences']);
 
-               $misc->printNavLinks(array (array (
+               $misc->printNavLinks(array ('create' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'sequences.php',
                        echo "</table>";
 
                        $navlinks = array (
-                               array (
+                               'alter' => array (
                                        'attr'=> array (
                                                'href' => array (
                                                        'url' => 'sequences.php',
                                        ),
                                        'content' => $lang['stralter']
                                ),
-                               array (
+                               'setval' => array (
                                        'attr'=> array (
                                                'href' => array (
                                                        'url' => 'sequences.php',
                                        ),
                                        'content' => $lang['strsetval']
                                ),
-                               array (
+                               'nextval' => array (
                                        'attr'=> array (
                                                'href' => array (
                                                        'url' => 'sequences.php',
                                        ),
                                        'content' => $lang['strrestart']
                                ),
-                               array (
+                               'reset' => array (
                                        'attr'=> array (
                                                'href' => array (
                                                        'url' => 'sequences.php',
                                        ),
                                        'content' => $lang['strreset']
                                ),
-                               array (
+                               'showall' => array (
                                        'attr'=> array (
                                                'href' => array (
                                                        'url' => 'sequences.php',
diff --git a/sql.php b/sql.php
index 0dec1074750f136e11bad2d5850713b9cd9deac7..f69c28063c3ca553f0da190accc9ff9a3568bccb 100644 (file)
--- a/sql.php
+++ b/sql.php
        // Return
        if (isset($_REQUEST['return'])) {
                $urlvars = $misc->getSubjectParams($_REQUEST['return']);
-               $navlinks[] = array (
+               $navlinks['back'] = array (
                        'attr'=> array (
                                'href' => array (
                                        'url' => $urlvars['url'],
        }
 
        // Edit         
-       $navlinks[] = array (
+       $navlinks['alter'] = array (
                'attr'=> array (
                        'href' => array (
                                'url' => 'database.php',
 
        // Create report
        if (($subject !== 'report') && $conf['show_reports'] && isset($rs) && is_object($rs) && $rs->recordCount() > 0) {
-               $navlinks[] = array (
+               $navlinks['createreport'] = array (
                        'attr'=> array (
                                'href' => array (
                                        'url' => 'reports.php',
        if (isset($_SESSION['sqlquery']) && isset($rs) && is_object($rs) && $rs->recordCount() > 0) {
                // Report views don't set a schema, so we need to disable create view in that case
                if (isset($_REQUEST['schema'])) {
-                       $navlinks[] = array (
+                       $navlinks['createview'] = array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'views.php',
index f94ce63cd0b1066182dd51eb749445af9230b5a8..43cb5b9d2d268210e6c6f11a16d513806627defe 100644 (file)
                        'table' => array(
                                'title' => $lang['strtable'],
                                'field' => field('relname'),
-                               'url'           => "redirect.php?subject=table&amp;{$misc->href}&amp;",
+                               'url'   => "redirect.php?subject=table&amp;{$misc->href}&amp;",
                                'vars'  => array('table' => 'relname'),
                        ),
                        'owner' => array(
                $misc->printTable($tables, $columns, $actions, 'tables-tables', $lang['strnotables']);
 
                $navlinks = array (
-                       array (
+                       'create' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'tables.php',
                );
 
                if (($tables->recordCount() > 0) && $data->hasCreateTableLike()) {
-                       $navlinks[] = array (
+                       $navlinks['createlike'] = array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'tables.php',
index 90b33c46e062f23df61a3506f02bd05ee0400bcc..2ac84ed26130996f4aeab6ded19dbbccc5988f15 100755 (executable)
                                
                $misc->printTable($tablespaces, $columns, $actions, 'tablespaces-tablespaces', $lang['strnotablespaces']);
                
-               $misc->printNavLinks(array (array (
+               $misc->printNavLinks(array ('create' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'tablespaces.php',
index 37bcc7288409312ceebd3066694c71c74637a2c8..e229e8903028e87ce744f4c3ecbcb825bd6bba83 100644 (file)
                $misc->printTable($attrs, $columns, $actions, 'tblproperties-tblproperties', null, 'attPre');
 
                $navlinks = array (
-                       array (
+                       'browse' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'display.php',
                                ),
                                'content' => $lang['strbrowse']
                        ),
-                       array (
+                       'select' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'tables.php',
                                ),
                                'content' => $lang['strselect']
                        ),
-                       array (
+                       'insert' => array (
                                'attr'=> array (
                                        'href' => array (
                                        'url' => 'tables.php',
                                ),
                                'content' => $lang['strinsert']
                        ),
-                       array (
+                       'empty' => array (
                                'attr'=> array (
                                        'href' => array (
                                        'url' => 'tables.php',
                                ),
                                'content' => $lang['strempty']
                        ),
-                       array (
+                       'drop' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'tables.php',
                                ),
                                'content' => $lang['strdrop']
                        ),
-                       array (
+                       'addcolumn' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'tblproperties.php',
                                ),
                                'content' => $lang['straddcolumn']
                        ),
-                       array (
+                       'alter' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'tblproperties.php',
index fbe81058b6023eef72239d426f7555f55762407e..64c665ec5eaedfe25d517f204e7bbfd60c4d8639 100644 (file)
 
                $misc->printTable($triggers, $columns, $actions, 'triggers-triggers', $lang['strnotriggers'], 'tgPre');
                
-               $misc->printNavLinks(array (array (
+               $misc->printNavLinks(array ('create' => array (
                                'attr'=> array (
                                        'href' => array (
                                        'url' => 'triggers.php',
index 159ee1a06d275f5b8b3dbe94762b84c29d160ea6..e3e9d2ed908448faf3b93d141d88bdae780f2b14 100644 (file)
--- a/types.php
+++ b/types.php
@@ -85,7 +85,7 @@
                                echo "</table>\n";
                        }
 
-                       $misc->printNavLinks(array (array (
+                       $misc->printNavLinks(array ('showall' => array (
                                        'attr'=> array (
                                                'href' => array (
                                                'url' => 'types.php',
                $misc->printTable($types, $columns, $actions, 'types-types', $lang['strnotypes']);
 
                $navlinks = array (
-                       array (
+                       'create' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'types.php',
                                ),
                                'content' => $lang['strcreatetype']
                        ),
-                       array (
+                       'createcomp' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'types.php',
                                ),
                                'content' => $lang['strcreatecomptype']
                        ),
-                       'enum' => array (
+                       'createenum' => array (
                                'attr'=> array (
                                        'href' => array(
                                                'url' => 'types.php',
index 4672272c6e25681536f0d5015d1854783742aedd..dcd117008705123c331895ba174dc74162cddd5c 100644 (file)
--- a/users.php
+++ b/users.php
@@ -47,7 +47,7 @@
                }
                else echo "<p>{$lang['strnodata']}</p>\n";
                
-               $misc->printNavLinks(array (array (
+               $misc->printNavLinks(array ('changepassword' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'users.php',
                
                $misc->printTable($users, $columns, $actions, 'users-users', $lang['strnousers']);
 
-               $misc->printNavLinks(array (array (
+               $misc->printNavLinks(array ('create' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'users.php',
index d13a4f3941002b6c365dab309e41fbb6bb05e5d6..4000b491eecab05fe04d7ca29ef51d106a2ae1ec 100755 (executable)
                }
                else echo "<p>{$lang['strnodata']}</p>\n";
                
-               $misc->printNavLinks(array (array (
+               $misc->printNavLinks(array ( 'alter' => array (
                                'attr'=> array (
                                        'href' => array (
                                                'url' => 'viewproperties.php',
                echo "<br />\n";
 
                $navlinks = array (
-                       array (
+                       'browse' => array (
                                'attr'=> array (
                                        'href' => array (
                                        'url' => 'display.php',
                                ),
                                'content' => $lang['strbrowse']
                        ),
-                       array (
+                       'select' => array (
                                'attr'=> array (
                                        'href' => array (
                                        'url' => 'views.php',
                                ),
                                'content' => $lang['strselect']
                        ),
-                       array (
+                       'drop' => array (
                                'attr'=> array (
                                        'href' => array (
                                        'url' => 'views.php',
                                ),
                                'content' => $lang['strdrop']
                        ),
-                       array (
+                       'alter' => array (
                                'attr'=> array (
                                        'href' => array (
                                        'url' => 'viewproperties.php',
index be8c88d06ddd7ab101090c48df52f6578be7f139..f81331eba9410869e07fbb1049b75bd5dc970673 100644 (file)
--- a/views.php
+++ b/views.php
                $misc->printTable($views, $columns, $actions, 'views-views',  $lang['strnoviews']);
                
                $navlinks = array (
-                       array (
+                       'create' => array (
                                'attr'=> array (
                                        'href' => array (
                                        'url' => 'views.php',
                                ),
                                'content' => $lang['strcreateview']
                        ),
-                       array (
+                       'createwiz' => array (
                                'attr'=> array (
                                        'href' => array (
                                        'url' => 'views.php',