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',
$misc->printTable($databases, $columns, $actions, 'all_db-databases', $lang['strnodatabases']);
$navlinks = array (
- array (
+ 'create' => array (
'attr'=> array (
'href' => array (
'url' => 'all_db.php',
* 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',
$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',
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',
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',
$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',
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',
)
);
- $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',
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',
$misc->printTable($indexes, $columns, $actions, 'indexes-indexes', $lang['strnoindexes'], 'indPre');
$misc->printNavLinks(array (
- array (
+ 'create' => array (
'attr'=> array (
'href' => array (
'url' => 'indexes.php',
echo "</table>\n";
$misc->printNavLinks(array (
- array (
+ 'showall' => array (
'attr'=> array (
'href' => array (
'url' => 'operators.php',
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,
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',
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',
$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',
$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',
$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',
// 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',
'table' => array(
'title' => $lang['strtable'],
'field' => field('relname'),
- 'url' => "redirect.php?subject=table&{$misc->href}&",
+ 'url' => "redirect.php?subject=table&{$misc->href}&",
'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',
$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',
$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',
$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',
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',
}
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',
}
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',
$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',