A perticular db could be displayed as the first page (feature #432402)
This commit is contained in:
@@ -9,6 +9,11 @@ $Source$
|
||||
* The 'bkg.gif' was somewhat corrupted (it caused some annoying problems
|
||||
with NS4+). Fixed thanks to Laurent Hass.
|
||||
* Added Japanese and Korean translation from Sakamoto <info@boreal-net.com>
|
||||
* index.php3, line 3: get the vars sent to this script whatever is the
|
||||
status of the register globals directive.
|
||||
* index.php3, left.php3 & left.js: a perticular database could be displayed
|
||||
as the first page, instead of the main.php3 thanks to Kristof Hamann
|
||||
(feature #432402).
|
||||
|
||||
2001-06-17 Robin Johnson <robbat2@orbis-terrarum.net>
|
||||
* Fixed the '<?' tags in user_details.php3 to proper '<?php' to work on a
|
||||
|
@@ -1,7 +1,9 @@
|
||||
<?php
|
||||
// Process config file to determine default server (if any)
|
||||
require('./grab_globals.inc.php3');
|
||||
require('./lib.inc.php3');
|
||||
|
||||
|
||||
// Get the host name
|
||||
if (empty($HTTP_HOST)) {
|
||||
if (!empty($HTTP_ENV_VARS) && isset($HTTP_ENV_VARS['HTTP_HOST'])) {
|
||||
@@ -19,8 +21,8 @@ if (empty($HTTP_HOST)) {
|
||||
</head>
|
||||
|
||||
<frameset cols="150,*" rows="*" border="0" frameborder="0">
|
||||
<frame src="left.php3?server=<?php echo $server;?>&lang=<?php echo $lang;?>" name="nav">
|
||||
<frame src="main.php3?server=<?php echo $server;?>&lang=<?php echo $lang;?>" name="phpmain">
|
||||
<frame src="left.php3?server=<?php echo $server;?>&lang=<?php echo $lang; echo (empty($db)) ? '' : '&db=' . urlencode($db); ?>" name="nav">
|
||||
<frame src="<?php echo (empty($db)) ? 'main.php3' : 'db_details.php3'; ?>?server=<?php echo $server;?>&lang=<?php echo $lang; echo (empty($db)) ? '' : '&db=' . urlencode($db); ?>" name="phpmain">
|
||||
</frameset>
|
||||
<noframes>
|
||||
<body bgcolor="#FFFFFF">
|
||||
|
12
left.js
12
left.js
@@ -141,7 +141,9 @@ function initIt()
|
||||
var tempColl = document.getElementsByTagName('DIV');
|
||||
var tempCollCnt = tempColl.length;
|
||||
for (var i = 0; i < tempCollCnt; i++) {
|
||||
if (tempColl[i].className == 'child')
|
||||
if (tempColl[i].id == expandedDb)
|
||||
tempColl[i].style.display = 'block';
|
||||
else if (tempColl[i].className == 'child')
|
||||
tempColl[i].style.display = 'none';
|
||||
}
|
||||
} // end of the DOM case
|
||||
@@ -149,7 +151,9 @@ function initIt()
|
||||
tempColl = document.all.tags('DIV');
|
||||
var tempCollCnt = tempColl.length;
|
||||
for (var i = 0; i < tempCollCnt; i++) {
|
||||
if (tempColl(i).className == 'child')
|
||||
if (tempColl(i).id == expandedDb)
|
||||
tempColl(i).style.display = 'block';
|
||||
else if (tempColl(i).className == 'child')
|
||||
tempColl(i).style.display = 'none';
|
||||
}
|
||||
} // end of the IE4 case
|
||||
@@ -157,7 +161,9 @@ function initIt()
|
||||
var theLayers = document.layers;
|
||||
var layersCnt = theLayers.length;
|
||||
for (var i = 0; i < layersCnt; i++) {
|
||||
if (theLayers[i].id.indexOf('Child') != -1)
|
||||
if (theLayers[i].id == expandedDb)
|
||||
theLayers[i].visibility = 'show';
|
||||
else if (theLayers[i].id.indexOf('Child') != -1)
|
||||
theLayers[i].visibility = 'hide';
|
||||
else
|
||||
theLayers[i].visibility = 'show';
|
||||
|
@@ -1,6 +1,10 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
// Get the db name that may have been required for startup
|
||||
require('./grab_globals.inc.php3');
|
||||
if (!empty($db)) $db_start = $db;
|
||||
|
||||
require("./lib.inc.php3");
|
||||
header('Content-Type: text/html; charset=' . $charset);
|
||||
?>
|
||||
@@ -33,6 +37,7 @@ body { font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
|
||||
<?php echo $strHome;?> </FONT></A>
|
||||
</DIV>
|
||||
<?php
|
||||
$selected_db = 0;
|
||||
// Don't display database info if $server==0 (no server selected)
|
||||
// This is the case when there are multiple servers and
|
||||
// '$cfgServerDefault = 0' is set. In that case, we want the welcome
|
||||
@@ -56,6 +61,7 @@ if($server > 0)
|
||||
else
|
||||
$db = $dblist[$i];
|
||||
$j = $i + 2;
|
||||
if (!empty($db_start) && $db == $db_start) $selected_db = $j;
|
||||
// few changes, staybyte
|
||||
$tables = mysql_list_tables($db);
|
||||
$num_tables = @mysql_numrows($tables);
|
||||
@@ -95,6 +101,7 @@ if($server > 0)
|
||||
nsShowAll();
|
||||
nsArrangeList();
|
||||
}
|
||||
expandedDb = '<?php echo (empty($selected_db)) ? '' : 'el' . $selected_db . 'Child'; ?>';
|
||||
//-->
|
||||
</script>
|
||||
<?php
|
||||
|
Reference in New Issue
Block a user