tweaked main page layout

This commit is contained in:
Sebastian Mendel
2008-07-09 11:31:32 +00:00
parent 021d4b78a0
commit a147613e3a
3 changed files with 78 additions and 56 deletions

View File

@@ -31,8 +31,9 @@ if ($server > 0) {
} }
echo '<div id="maincontainer">' . "\n"; echo '<div id="maincontainer">' . "\n";
echo '<div id="main_pane_left">';
echo '<div class="box">'; echo '<div class="box">';
echo '<span class="boxtitle">' . $strActions . '</span>'; echo '<h2>' . $strActions . '</h2>';
/** /**
* Displays the mysql server related links * Displays the mysql server related links
@@ -94,37 +95,9 @@ if (! $cfg['LeftDisplayServers'] && (count($cfg['Servers']) > 1 || $server == 0
echo '</ul>'; echo '</ul>';
echo '</div>'; echo '</div>';
echo '<div class="box">';
echo '<span class="boxtitle">' . $strInterface . '</span>';
echo ' <ul>';
// Displays language selection combo
if (empty($cfg['Lang'])) {
echo '<li id="li_select_lang">';
require_once './libraries/display_select_lang.lib.php';
PMA_select_language();
echo '</li>';
}
// added by Michael Keck <mail_at_michaelkeck_dot_de>
// ThemeManager if available
if ($GLOBALS['cfg']['ThemeManager']) {
echo '<li id="li_select_theme">';
echo $_SESSION['PMA_Theme_Manager']->getHtmlSelectBox();
echo '</li>';
}
echo '<li id="li_select_fontsize">';
echo PMA_Config::getFontsizeForm();
echo '</li>';
echo '</ul>';
echo '</div>';
echo '<br class="clearfloat" />';
echo '<div class="box">'; echo '<div class="box">';
if ($server > 0) { if ($server > 0) {
echo '<span class="boxtitle">' . $strMySQLServerInformation . '</span>'; echo '<h2>' . $strMySQLServerInformation . '</h2>';
// robbat2: Use the verbose name of the server instead of the hostname // robbat2: Use the verbose name of the server instead of the hostname
// if a value is set // if a value is set
$server_info = ''; $server_info = '';
@@ -189,9 +162,39 @@ if ($server > 0) {
echo ' </div>'; echo ' </div>';
} }
echo '</div>';
echo '<div id="main_pane_right">';
echo '<div class="box">';
echo '<h2>' . $strInterface . '</h2>';
echo ' <ul>';
// Displays language selection combo
if (empty($cfg['Lang'])) {
echo '<li id="li_select_lang">';
require_once './libraries/display_select_lang.lib.php';
PMA_select_language();
echo '</li>';
}
// added by Michael Keck <mail_at_michaelkeck_dot_de>
// ThemeManager if available
if ($GLOBALS['cfg']['ThemeManager']) {
echo '<li id="li_select_theme">';
echo $_SESSION['PMA_Theme_Manager']->getHtmlSelectBox();
echo '</li>';
}
echo '<li id="li_select_fontsize">';
echo PMA_Config::getFontsizeForm();
echo '</li>';
echo '</ul>';
echo '</div>';
if ($server > 0) { if ($server > 0) {
echo '<div class="box box_smaller">'; echo '<div class="box">';
echo '<span class="boxtitle">' . $strWebServerInformation . '</span>'; echo '<h2>' . $strWebServerInformation . '</h2>';
echo '<ul>'; echo '<ul>';
PMA_printListItem($_SERVER['SERVER_SOFTWARE'], 'li_web_server_software'); PMA_printListItem($_SERVER['SERVER_SOFTWARE'], 'li_web_server_software');
PMA_printListItem($strMysqlClientVersion . ': ' . PMA_DBI_get_client_info(), PMA_printListItem($strMysqlClientVersion . ': ' . PMA_DBI_get_client_info(),
@@ -206,8 +209,8 @@ if ($cfg['ShowPhpInfo']) {
echo ' </ul>'; echo ' </ul>';
echo ' </div>'; echo ' </div>';
echo '<div class="box box_smaller">'; echo '<div class="box">';
echo '<span class="boxtitle">' . $strAboutphpMyAdmin . '</span>'; echo '<h2>' . $strAboutphpMyAdmin . '</h2>';
echo '<ul>'; echo '<ul>';
PMA_printListItem($strVersionInformation . ': ' . PMA_VERSION, 'li_pma_version'); PMA_printListItem($strVersionInformation . ': ' . PMA_VERSION, 'li_pma_version');
PMA_printListItem($strPmaDocumentation, 'li_pma_docs', 'Documentation.html', null, '_blank'); PMA_printListItem($strPmaDocumentation, 'li_pma_docs', 'Documentation.html', null, '_blank');
@@ -226,6 +229,9 @@ PMA_printListItem($strHomepageOfficial, 'li_pma_homepage', 'http://www.phpMyAdmi
</li> </li>
</ul> </ul>
</div> </div>
</div>
<?php <?php
/** /**
* BUG: MSIE needs two <br /> here, otherwise it will not extend the outer div to the * BUG: MSIE needs two <br /> here, otherwise it will not extend the outer div to the

View File

@@ -1198,17 +1198,25 @@ code.sql {
background: <?php echo $GLOBALS['cfg']['BgOne']; ?>; background: <?php echo $GLOBALS['cfg']['BgOne']; ?>;
} }
#main_pane_left {
width: 60%;
float: <?php echo $left; ?>;
padding-top: 1em;
}
#main_pane_right {
margin-<?php echo $left; ?>: 60%;
padding-top: 1em;
padding-<?php echo $left; ?>: 1em;
}
.box { .box {
float: <?php echo $left; ?>; border-<?php echo $left; ?>: 1pt solid <?php echo $GLOBALS['cfg']['ThBackground']; ?>;
width: 49%; margin-bottom: 1em;
border: solid 1px;
margin: 2px;
} }
.box_smaller { .box h2 {
width: 24%; background-color: <?php echo $GLOBALS['cfg']['ThBackground']; ?>;
} padding: 0.1em 0.3em;
margin-top: 0;
span.boxtitle {
background: <?php echo $GLOBALS['cfg']['ThBackground']; ?>;
} }

View File

@@ -1149,17 +1149,25 @@ code.sql {
background: <?php echo $GLOBALS['cfg']['BgOne']; ?>; background: <?php echo $GLOBALS['cfg']['BgOne']; ?>;
} }
#main_pane_left {
width: 60%;
float: <?php echo $left; ?>;
padding-top: 1em;
}
#main_pane_right {
margin-<?php echo $left; ?>: 60%;
padding-top: 1em;
padding-<?php echo $left; ?>: 1em;
}
.box { .box {
float: <?php echo $left; ?>; border-<?php echo $left; ?>: 1pt solid <?php echo $GLOBALS['cfg']['ThBackground']; ?>;
width: 49%; margin-bottom: 1em;
border: solid 1px;
margin: 2px;
} }
.box_smaller { .box h2 {
width: 24%;
}
span.boxtitle {
background-color: <?php echo $GLOBALS['cfg']['ThBackground']; ?>; background-color: <?php echo $GLOBALS['cfg']['ThBackground']; ?>;
padding: 0.1em 0.3em;
margin-top: 0;
} }