Clickable active server in left frame (RFE # 1044678).

This commit is contained in:
Michal Čihař
2004-10-19 15:26:41 +00:00
parent 1ef74c53d8
commit bc922c71dd
2 changed files with 8 additions and 6 deletions

View File

@@ -18,6 +18,8 @@ $Source$
* read_dump.php, server_privileges.php, server_status.php, sql.php: Work
better in ANSI mode (bug #816858).
* 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>
* lang/turkish update, thanks to boralioglu.

View File

@@ -5,13 +5,13 @@
*/
if (count($cfg['Servers']) > 1) {
if (!$cfg['DisplayServersList']) {
if (!$cfg['DisplayServersList']) {
?>
<form method="post" action="index.php" target="_parent" style="margin: 0px; padding: 0px;">
<?php
}
}
if ($show_server_left) {
echo '<div class="heada">' . $strServer . ':</div>';
echo '<div class="heada">' . $strServer . ':</div>';
} else {
?>
<!-- MySQL servers choice form -->
@@ -23,12 +23,12 @@ if (count($cfg['Servers']) > 1) {
<td>
<?php
}
if (!$cfg['DisplayServersList']) {
if (!$cfg['DisplayServersList']) {
?>
<form method="post" action="index.php" target="_parent" style="margin: 0px; padding: 0px;">
<select name="server" onchange="this.form.submit();">
<?php
}
}
foreach ($cfg['Servers'] AS $key => $val) {
if (!empty($val['host'])) {
$selected = 0;
@@ -54,7 +54,7 @@ if (count($cfg['Servers']) > 1) {
}
if ($cfg['DisplayServersList']){
if ($selected) {
if ($selected && !$show_server_left) {
echo '&raquo; <b>' . $label . '</b><br />';
}else{
echo '&raquo; <a class="item" href="index.php?server=' . $key . '&amp;lang=' . $lang . '&amp;convcharset=' . $convcharset . '" target="_top">' . $label . '</a><br />';