shorten the path of db subtree items
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2005-08-11 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
|
* queryframe.php: shorten the path of db subtree items,
|
||||||
|
thanks to Edward Rudd - urkle
|
||||||
|
|
||||||
2005-08-09 Marc Delisle <lem9@users.sourceforge.net>
|
2005-08-09 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* read_dump.php: add unique numbers to $strFileCouldNotBeRead to
|
* read_dump.php: add unique numbers to $strFileCouldNotBeRead to
|
||||||
improve support when someone gets this error
|
improve support when someone gets this error
|
||||||
|
@@ -360,6 +360,7 @@ if ($num_dbs > 1) {
|
|||||||
$selected = '';
|
$selected = '';
|
||||||
} // end if... else...
|
} // end if... else...
|
||||||
|
|
||||||
|
$db_disp = $db;
|
||||||
if ($cfg['LeftFrameDBTree']) {
|
if ($cfg['LeftFrameDBTree']) {
|
||||||
if ($i == 0) {
|
if ($i == 0) {
|
||||||
$parts = explode($cfg['LeftFrameDBSeparator'],$db,2);
|
$parts = explode($cfg['LeftFrameDBSeparator'],$db,2);
|
||||||
@@ -376,16 +377,19 @@ if ($num_dbs > 1) {
|
|||||||
. '<optgroup label="'.htmlspecialchars($parts[0]).'">'."\n";
|
. '<optgroup label="'.htmlspecialchars($parts[0]).'">'."\n";
|
||||||
$parent = $parts[0];
|
$parent = $parts[0];
|
||||||
}
|
}
|
||||||
|
if (count($parts) > 1 && $parent == $parts[0]) {
|
||||||
|
$db_disp = $parts[1];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($num_tables)) {
|
if (!empty($num_tables)) {
|
||||||
echo ' '
|
echo ' '
|
||||||
. '<option value="' . htmlspecialchars($db) . '"' . $selected . '>'
|
. '<option value="' . htmlspecialchars($db) . '"' . $selected . '>'
|
||||||
. ($db_tooltip != '' && $cfg['ShowTooltipAliasDB'] ? htmlspecialchars($db_tooltip) : htmlspecialchars($db)) . ' (' . $num_tables . ')</option>' . "\n";
|
. ($db_tooltip != '' && $cfg['ShowTooltipAliasDB'] ? htmlspecialchars($db_tooltip) : htmlspecialchars($cfg['LeftFrameDBSeparator'] . $db_disp)) . ' (' . $num_tables . ')</option>' . "\n";
|
||||||
} else {
|
} else {
|
||||||
echo ' '
|
echo ' '
|
||||||
. '<option value="' . htmlspecialchars($db) . '"' . $selected . '>'
|
. '<option value="' . htmlspecialchars($db) . '"' . $selected . '>'
|
||||||
. ($db_tooltip != '' && $cfg['ShowTooltipAliasDB'] ? htmlspecialchars($db_tooltip) : htmlspecialchars($db)) . ' (-)</option>' . "\n";
|
. ($db_tooltip != '' && $cfg['ShowTooltipAliasDB'] ? htmlspecialchars($db_tooltip) : htmlspecialchars($cfg['LeftFrameDBSeparator'] . $db_disp)) . ' (-)</option>' . "\n";
|
||||||
} // end if... else...
|
} // end if... else...
|
||||||
|
|
||||||
if ($cfg['LeftFrameDBTree']) {
|
if ($cfg['LeftFrameDBTree']) {
|
||||||
|
Reference in New Issue
Block a user