try to save some space on screen, replaced fieldset not used in form

This commit is contained in:
Sebastian Mendel
2007-12-20 11:30:32 +00:00
parent 915e4f3ff3
commit e96049f8b1
4 changed files with 93 additions and 26 deletions

View File

@@ -987,6 +987,7 @@ function PMA_showMessage($message, $sql_query = null, $type = 'notice')
if ($message instanceof PMA_Message) { if ($message instanceof PMA_Message) {
$message->display(); $message->display();
$type = $message->getLevel();
} else { } else {
echo '<div class="' . $type . '">'; echo '<div class="' . $type . '">';
echo PMA_sanitize($message); echo PMA_sanitize($message);
@@ -1170,27 +1171,23 @@ function PMA_showMessage($message, $sql_query = null, $type = 'notice')
$validate_link = ''; $validate_link = '';
} //validator } //validator
// Displays the message echo '<code class="sql">';
echo '<fieldset class="">' . "\n";
echo ' <legend>' . $GLOBALS['strSQLQuery'] . ':</legend>';
echo ' <div>';
if ($query_too_big) { if ($query_too_big) {
echo ' ' . substr($query_base, 0, $cfg['MaxCharactersInDisplayedSQL']) . '[...]'; echo substr($query_base, 0, $cfg['MaxCharactersInDisplayedSQL']) . '[...]';
} else { } else {
echo ' ' . $query_base; echo $query_base;
} }
//Clean up the end of the PHP //Clean up the end of the PHP
if (! empty($GLOBALS['show_as_php'])) { if (! empty($GLOBALS['show_as_php'])) {
echo '";'; echo '";';
} }
echo ' </div>'; echo '</code>';
echo '</fieldset>' . "\n";
echo '<fieldset class="tblFooters">'; echo '<div class="tools">';
PMA_profilingCheckbox($sql_query); PMA_profilingCheckbox($sql_query);
echo $edit_link . $explain_link . $php_link . $refresh_link . $validate_link; echo $edit_link . $explain_link . $php_link . $refresh_link . $validate_link;
echo '</fieldset>'; echo '</div>';
} }
echo '</div><br />' . "\n"; echo '</div><br />' . "\n";
} // end of the 'PMA_showMessage()' function } // end of the 'PMA_showMessage()' function

View File

@@ -15,6 +15,14 @@ if (!defined('PMA_MINIMUM_COMMON')) {
?> ?>
/******************************************************************************/ /******************************************************************************/
/* general tags */ /* general tags */
html {
font-size: <?php echo $_SESSION['PMA_Config']->get('fontsize'); ?>;
}
input, select, textarea {
font-size: 1em;
}
body { body {
<?php if (! empty($GLOBALS['cfg']['FontFamily'])) { ?> <?php if (! empty($GLOBALS['cfg']['FontFamily'])) { ?>
font-family: <?php echo $GLOBALS['cfg']['FontFamily']; ?>; font-family: <?php echo $GLOBALS['cfg']['FontFamily']; ?>;
@@ -30,7 +38,6 @@ textarea, tt, pre, code {
font-family: <?php echo $GLOBALS['cfg']['FontFamilyFixed']; ?>; font-family: <?php echo $GLOBALS['cfg']['FontFamilyFixed']; ?>;
} }
<?php } ?> <?php } ?>
h1 { h1 {
font-size: 180%; font-size: 180%;
font-weight: bold; font-weight: bold;
@@ -122,9 +129,9 @@ fieldset fieldset {
} }
fieldset legend { fieldset legend {
color: #444444;
font-weight: bold;
background: <?php echo $GLOBALS['cfg']['MainBackground']; ?>; background: <?php echo $GLOBALS['cfg']['MainBackground']; ?>;
font-weight: bold;
color: #444444;
padding: 2px 2px 2px 2px; padding: 2px 2px 2px 2px;
} }
@@ -152,7 +159,12 @@ button {
/******************************************************************************/ /******************************************************************************/
/* classes */ /* classes */
div.tools {
border: 1px solid #000000;
padding: 0.2em;
}
div.tools,
fieldset.tblFooters { fieldset.tblFooters {
margin-top: 0; margin-top: 0;
margin-bottom: 0.5em; margin-bottom: 0.5em;
@@ -181,11 +193,13 @@ button.mult_submit {
} }
/* odd items 1,3,5,7,... */ /* odd items 1,3,5,7,... */
table tr.odd th,
.odd { .odd {
background: <?php echo $GLOBALS['cfg']['BgOne']; ?>; background: <?php echo $GLOBALS['cfg']['BgOne']; ?>;
} }
/* even items 2,4,6,8,... */ /* even items 2,4,6,8,... */
table tr.even th,
.even { .even {
background: <?php echo $GLOBALS['cfg']['BgTwo']; ?>; background: <?php echo $GLOBALS['cfg']['BgTwo']; ?>;
} }
@@ -385,20 +399,20 @@ div.success,
div.notice, div.notice,
div.warning, div.warning,
div.error { div.error {
margin: 0.3em 0 0.3em 0; margin: 0.3em 0 0 0;
border: 2px solid; border: 2px solid;
width: 90%; width: 90%;
<?php if ($GLOBALS['cfg']['ErrorIconic']) { ?> <?php if ($GLOBALS['cfg']['ErrorIconic']) { ?>
background-repeat: no-repeat; background-repeat: no-repeat;
<?php if ($GLOBALS['text_dir'] === 'ltr') { ?> <?php if ($GLOBALS['text_dir'] === 'ltr') { ?>
background-position: 10px 50%; background-position: 10px 50%;
padding: 10px 10px 10px 36px; padding: 0.1em 0.1em 0.1em 36px;
<?php } else { ?> <?php } else { ?>
background-position: 99% 50%; background-position: 99% 50%;
padding: 10px 5% 10px 10px; padding: 10px 5% 10px 10px;
<?php } ?> <?php } ?>
<?php } else { ?> <?php } else { ?>
padding: 0.5em; padding: 0.3em;
<?php } ?> <?php } ?>
} }
@@ -500,16 +514,19 @@ fieldset.confirmation legend {
background: <?php echo $GLOBALS['cfg']['ThBackground']; ?>; background: <?php echo $GLOBALS['cfg']['ThBackground']; ?>;
} }
div.tools,
.tblFooters { .tblFooters {
font-weight: normal; font-weight: normal;
color: <?php echo $GLOBALS['cfg']['ThColor']; ?>; color: <?php echo $GLOBALS['cfg']['ThColor']; ?>;
background: <?php echo $GLOBALS['cfg']['ThBackground']; ?>; background: <?php echo $GLOBALS['cfg']['ThBackground']; ?>;
} }
.tblHeaders a:link, .tblHeaders a:link,
.tblHeaders a:active, .tblHeaders a:active,
.tblHeaders a:visited, .tblHeaders a:visited,
div.tools a:link,
div.tools a:visited,
div.tools a:active,
.tblFooters a:link, .tblFooters a:link,
.tblFooters a:active, .tblFooters a:active,
.tblFooters a:visited { .tblFooters a:visited {
@@ -518,6 +535,7 @@ fieldset.confirmation legend {
} }
.tblHeaders a:hover, .tblHeaders a:hover,
div.tools a:hover,
.tblFooters a:hover { .tblFooters a:hover {
text-decoration: none; text-decoration: none;
color: #ffffff; color: #ffffff;
@@ -1166,3 +1184,16 @@ label.desc {
width: 30em; width: 30em;
float: <?php echo $left; ?>; float: <?php echo $left; ?>;
} }
code.sql {
display: block;
padding: 0.3em;
margin-top: 0;
margin-bottom: 0;
border: <?php echo $GLOBALS['cfg']['MainColor']; ?> solid 1px;
border-top: 0;
border-bottom: 0;
max-height: 10em;
overflow: auto;
background: <?php echo $GLOBALS['cfg']['BgOne']; ?>;
}

View File

@@ -15,6 +15,13 @@ if (!defined('PMA_MINIMUM_COMMON')) {
?> ?>
/******************************************************************************/ /******************************************************************************/
/* general tags */ /* general tags */
html {
font-size: <?php echo $_SESSION['PMA_Config']->get('fontsize'); ?>;
}
input, select, textarea {
font-size: 1em;
}
body { body {
<?php if (! empty($GLOBALS['cfg']['FontFamily'])) { ?> <?php if (! empty($GLOBALS['cfg']['FontFamily'])) { ?>
@@ -38,7 +45,7 @@ a:active {
} }
ul { ul {
margin:0; margin:0;
} }
form { form {

View File

@@ -15,6 +15,14 @@ if (!defined('PMA_MINIMUM_COMMON')) {
?> ?>
/******************************************************************************/ /******************************************************************************/
/* general tags */ /* general tags */
html {
font-size: <?php echo $_SESSION['PMA_Config']->get('fontsize'); ?>;
}
input, select, textarea {
font-size: 1em;
}
body { body {
<?php if (! empty($GLOBALS['cfg']['FontFamily'])) { ?> <?php if (! empty($GLOBALS['cfg']['FontFamily'])) { ?>
font-family: <?php echo $GLOBALS['cfg']['FontFamily']; ?>; font-family: <?php echo $GLOBALS['cfg']['FontFamily']; ?>;
@@ -30,7 +38,6 @@ textarea, tt, pre, code {
font-family: <?php echo $GLOBALS['cfg']['FontFamilyFixed']; ?>; font-family: <?php echo $GLOBALS['cfg']['FontFamilyFixed']; ?>;
} }
<?php } ?> <?php } ?>
h1 { h1 {
font-size: 140%; font-size: 140%;
font-weight: bold; font-weight: bold;
@@ -135,7 +142,12 @@ button {
/******************************************************************************/ /******************************************************************************/
/* classes */ /* classes */
div.tools {
border: 1px solid #000000;
padding: 0.2em;
}
div.tools,
fieldset.tblFooters { fieldset.tblFooters {
margin-top: 0; margin-top: 0;
margin-bottom: 0.5em; margin-bottom: 0.5em;
@@ -363,19 +375,19 @@ div.success,
div.notice, div.notice,
div.warning, div.warning,
div.error { div.error {
margin: 0.3em 0 0.3em 0; margin: 0.3em 0 0 0;
border: 2px solid; border: 2px solid;
<?php if ($GLOBALS['cfg']['ErrorIconic']) { ?> <?php if ($GLOBALS['cfg']['ErrorIconic']) { ?>
background-repeat: no-repeat; background-repeat: no-repeat;
<?php if ($GLOBALS['text_dir'] === 'ltr') { ?> <?php if ($GLOBALS['text_dir'] === 'ltr') { ?>
background-position: 10px 50%; background-position: 10px 50%;
padding: 10px 10px 10px 36px; padding: 0.1em 0.1em 0.1em 36px;
<?php } else { ?> <?php } else { ?>
background-position: 99% 50%; background-position: 99% 50%;
padding: 10px 5% 10px 10px; padding: 10px 5% 10px 10px;
<?php } ?> <?php } ?>
<?php } else { ?> <?php } else { ?>
padding: 0.5em; padding: 0.3em;
<?php } ?> <?php } ?>
} }
@@ -478,16 +490,19 @@ fieldset.confirmation legend {
background: <?php echo $GLOBALS['cfg']['ThBackground']; ?>; background: <?php echo $GLOBALS['cfg']['ThBackground']; ?>;
} }
div.tools,
.tblFooters { .tblFooters {
font-weight: normal; font-weight: normal;
color: <?php echo $GLOBALS['cfg']['ThColor']; ?>; color: <?php echo $GLOBALS['cfg']['ThColor']; ?>;
background: <?php echo $GLOBALS['cfg']['ThBackground']; ?>; background: <?php echo $GLOBALS['cfg']['ThBackground']; ?>;
} }
.tblHeaders a:link, .tblHeaders a:link,
.tblHeaders a:active, .tblHeaders a:active,
.tblHeaders a:visited, .tblHeaders a:visited,
div.tools a:link,
div.tools a:visited,
div.tools a:active,
.tblFooters a:link, .tblFooters a:link,
.tblFooters a:active, .tblFooters a:active,
.tblFooters a:visited { .tblFooters a:visited {
@@ -495,6 +510,7 @@ fieldset.confirmation legend {
} }
.tblHeaders a:hover, .tblHeaders a:hover,
div.tools a:hover,
.tblFooters a:hover { .tblFooters a:hover {
color: #FF0000; color: #FF0000;
} }
@@ -1093,7 +1109,10 @@ li#li_flush_privileges {
float: <?php echo $left; ?>; float: <?php echo $left; ?>;
} }
#div_table_copy, #div_partition_maintenance, #div_referential_integrity, #div_table_maintenance { #div_table_copy,
#div_partition_maintenance,
#div_referential_integrity,
#div_table_maintenance {
min-width: 48%; min-width: 48%;
float: <?php echo $left; ?>; float: <?php echo $left; ?>;
} }
@@ -1116,3 +1135,16 @@ label.desc {
width: 30em; width: 30em;
float: <?php echo $left; ?>; float: <?php echo $left; ?>;
} }
code.sql {
display: block;
padding: 0.3em;
margin-top: 0;
margin-bottom: 0;
border: <?php echo $GLOBALS['cfg']['MainColor']; ?> solid 1px;
border-top: 0;
border-bottom: 0;
max-height: 10em;
overflow: auto;
background: <?php echo $GLOBALS['cfg']['BgOne']; ?>;
}