tweaked main page layout
This commit is contained in:
74
main.php
74
main.php
@@ -31,8 +31,9 @@ if ($server > 0) {
|
||||
}
|
||||
|
||||
echo '<div id="maincontainer">' . "\n";
|
||||
echo '<div id="main_pane_left">';
|
||||
echo '<div class="box">';
|
||||
echo '<span class="boxtitle">' . $strActions . '</span>';
|
||||
echo '<h2>' . $strActions . '</h2>';
|
||||
|
||||
/**
|
||||
* Displays the mysql server related links
|
||||
@@ -94,37 +95,9 @@ if (! $cfg['LeftDisplayServers'] && (count($cfg['Servers']) > 1 || $server == 0
|
||||
echo '</ul>';
|
||||
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">';
|
||||
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
|
||||
// if a value is set
|
||||
$server_info = '';
|
||||
@@ -189,9 +162,39 @@ if ($server > 0) {
|
||||
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) {
|
||||
echo '<div class="box box_smaller">';
|
||||
echo '<span class="boxtitle">' . $strWebServerInformation . '</span>';
|
||||
echo '<div class="box">';
|
||||
echo '<h2>' . $strWebServerInformation . '</h2>';
|
||||
echo '<ul>';
|
||||
PMA_printListItem($_SERVER['SERVER_SOFTWARE'], 'li_web_server_software');
|
||||
PMA_printListItem($strMysqlClientVersion . ': ' . PMA_DBI_get_client_info(),
|
||||
@@ -206,8 +209,8 @@ if ($cfg['ShowPhpInfo']) {
|
||||
echo ' </ul>';
|
||||
echo ' </div>';
|
||||
|
||||
echo '<div class="box box_smaller">';
|
||||
echo '<span class="boxtitle">' . $strAboutphpMyAdmin . '</span>';
|
||||
echo '<div class="box">';
|
||||
echo '<h2>' . $strAboutphpMyAdmin . '</h2>';
|
||||
echo '<ul>';
|
||||
PMA_printListItem($strVersionInformation . ': ' . PMA_VERSION, 'li_pma_version');
|
||||
PMA_printListItem($strPmaDocumentation, 'li_pma_docs', 'Documentation.html', null, '_blank');
|
||||
@@ -226,6 +229,9 @@ PMA_printListItem($strHomepageOfficial, 'li_pma_homepage', 'http://www.phpMyAdmi
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* BUG: MSIE needs two <br /> here, otherwise it will not extend the outer div to the
|
||||
|
@@ -1198,17 +1198,25 @@ code.sql {
|
||||
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 {
|
||||
float: <?php echo $left; ?>;
|
||||
width: 49%;
|
||||
border: solid 1px;
|
||||
margin: 2px;
|
||||
border-<?php echo $left; ?>: 1pt solid <?php echo $GLOBALS['cfg']['ThBackground']; ?>;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.box_smaller {
|
||||
width: 24%;
|
||||
}
|
||||
|
||||
span.boxtitle {
|
||||
background: <?php echo $GLOBALS['cfg']['ThBackground']; ?>;
|
||||
.box h2 {
|
||||
background-color: <?php echo $GLOBALS['cfg']['ThBackground']; ?>;
|
||||
padding: 0.1em 0.3em;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
@@ -1109,9 +1109,9 @@ li#li_flush_privileges {
|
||||
float: <?php echo $left; ?>;
|
||||
}
|
||||
|
||||
#div_table_copy,
|
||||
#div_partition_maintenance,
|
||||
#div_referential_integrity,
|
||||
#div_table_copy,
|
||||
#div_partition_maintenance,
|
||||
#div_referential_integrity,
|
||||
#div_table_maintenance {
|
||||
min-width: 48%;
|
||||
float: <?php echo $left; ?>;
|
||||
@@ -1149,17 +1149,25 @@ code.sql {
|
||||
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 {
|
||||
float: <?php echo $left; ?>;
|
||||
width: 49%;
|
||||
border: solid 1px;
|
||||
margin: 2px;
|
||||
border-<?php echo $left; ?>: 1pt solid <?php echo $GLOBALS['cfg']['ThBackground']; ?>;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.box_smaller {
|
||||
width: 24%;
|
||||
}
|
||||
|
||||
span.boxtitle {
|
||||
.box h2 {
|
||||
background-color: <?php echo $GLOBALS['cfg']['ThBackground']; ?>;
|
||||
padding: 0.1em 0.3em;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user