Clickable active server in left frame (RFE # 1044678).
This commit is contained in:
@@ -18,6 +18,8 @@ $Source$
|
|||||||
* read_dump.php, server_privileges.php, server_status.php, sql.php: Work
|
* read_dump.php, server_privileges.php, server_status.php, sql.php: Work
|
||||||
better in ANSI mode (bug #816858).
|
better in ANSI mode (bug #816858).
|
||||||
* lang/czech: Reordered some words.
|
* lang/czech: Reordered some words.
|
||||||
|
* libraries/select_server.lib.php: Clickable active server in left frame
|
||||||
|
(RFE # 1044678).
|
||||||
|
|
||||||
2004-10-17 Marc Delisle <lem9@users.sourceforge.net>
|
2004-10-17 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* lang/turkish update, thanks to boralioglu.
|
* lang/turkish update, thanks to boralioglu.
|
||||||
|
@@ -5,13 +5,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (count($cfg['Servers']) > 1) {
|
if (count($cfg['Servers']) > 1) {
|
||||||
if (!$cfg['DisplayServersList']) {
|
if (!$cfg['DisplayServersList']) {
|
||||||
?>
|
?>
|
||||||
<form method="post" action="index.php" target="_parent" style="margin: 0px; padding: 0px;">
|
<form method="post" action="index.php" target="_parent" style="margin: 0px; padding: 0px;">
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
if ($show_server_left) {
|
if ($show_server_left) {
|
||||||
echo '<div class="heada">' . $strServer . ':</div>';
|
echo '<div class="heada">' . $strServer . ':</div>';
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<!-- MySQL servers choice form -->
|
<!-- MySQL servers choice form -->
|
||||||
@@ -23,12 +23,12 @@ if (count($cfg['Servers']) > 1) {
|
|||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
if (!$cfg['DisplayServersList']) {
|
if (!$cfg['DisplayServersList']) {
|
||||||
?>
|
?>
|
||||||
<form method="post" action="index.php" target="_parent" style="margin: 0px; padding: 0px;">
|
<form method="post" action="index.php" target="_parent" style="margin: 0px; padding: 0px;">
|
||||||
<select name="server" onchange="this.form.submit();">
|
<select name="server" onchange="this.form.submit();">
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
foreach ($cfg['Servers'] AS $key => $val) {
|
foreach ($cfg['Servers'] AS $key => $val) {
|
||||||
if (!empty($val['host'])) {
|
if (!empty($val['host'])) {
|
||||||
$selected = 0;
|
$selected = 0;
|
||||||
@@ -54,7 +54,7 @@ if (count($cfg['Servers']) > 1) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($cfg['DisplayServersList']){
|
if ($cfg['DisplayServersList']){
|
||||||
if ($selected) {
|
if ($selected && !$show_server_left) {
|
||||||
echo '» <b>' . $label . '</b><br />';
|
echo '» <b>' . $label . '</b><br />';
|
||||||
}else{
|
}else{
|
||||||
echo '» <a class="item" href="index.php?server=' . $key . '&lang=' . $lang . '&convcharset=' . $convcharset . '" target="_top">' . $label . '</a><br />';
|
echo '» <a class="item" href="index.php?server=' . $key . '&lang=' . $lang . '&convcharset=' . $convcharset . '" target="_top">' . $label . '</a><br />';
|
||||||
|
Reference in New Issue
Block a user