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 * 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.

View File

@@ -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 '&raquo; <b>' . $label . '</b><br />'; echo '&raquo; <b>' . $label . '</b><br />';
}else{ }else{
echo '&raquo; <a class="item" href="index.php?server=' . $key . '&amp;lang=' . $lang . '&amp;convcharset=' . $convcharset . '" target="_top">' . $label . '</a><br />'; echo '&raquo; <a class="item" href="index.php?server=' . $key . '&amp;lang=' . $lang . '&amp;convcharset=' . $convcharset . '" target="_top">' . $label . '</a><br />';