Added a style for the number of tables per database
This commit is contained in:
3
left.js
3
left.js
@@ -220,6 +220,7 @@ if (capable) {
|
||||
var lstyle = '<style type="text/css">'
|
||||
+ 'div {color: #000000;}'
|
||||
+ '.heada {font-family: ' + fontFamily + '; font-size: 10pt}'
|
||||
+ '.heada_cnt {font-family: ' + fontFamily + '; font-size: 8pt}'
|
||||
+ '.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration:none; display: block}'
|
||||
+ '.child {font-family: ' + fontFamily + '; font-size: 8pt; color: #333399; text-decoration:none; display: none}'
|
||||
+ '.item, .item:active, .item:hover, .tblItem, .tblItem:active {color: #333399; text-decoration: none; font-size: 8pt;}'
|
||||
@@ -231,6 +232,7 @@ if (capable) {
|
||||
write('<style type="text/css">');
|
||||
write('div {color: #000000; }');
|
||||
write('.heada {font-family: ' + fontFamily + '; font-size: 10pt}');
|
||||
write('.heada_cnt {font-family: ' + fontFamily + '; font-size: 8pt}');
|
||||
if (isIE4) {
|
||||
write('.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration: none; display: block}');
|
||||
write('.child {font-family: ' + fontFamily + '; font-size: 8pt; color: #333399; text-decoration: none; display: none}');
|
||||
@@ -251,6 +253,7 @@ else {
|
||||
write('<style type="text/css">');
|
||||
write('div {color: #000000; }');
|
||||
write('.heada {font-family: ' + fontFamily + '; font-size: 10pt}');
|
||||
write('.heada_cnt {font-family: ' + fontFamily + '; font-size: 8pt}');
|
||||
write('.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration: none}');
|
||||
write('.child {font-family: ' + fontFamily + '; font-size: 8pt; color: #333399; text-decoration: none}');
|
||||
write('.item, .item:active, .item:hover, .tblItem, .tblItem:active {color: #333399; text-decoration: none}');
|
||||
|
20
left.php3
20
left.php3
@@ -109,6 +109,7 @@ else if ($num_dbs == 1) {
|
||||
body {font-family: <?php echo $left_font_family; ?>; font-size: 10pt}
|
||||
div {color: #000000}
|
||||
.heada {font-family: <?php echo $left_font_family; ?>; font-size: 10pt}
|
||||
.heada_cnt {font-family: <?php echo $left_font_family; ?>; font-size: 8pt}
|
||||
.parent {font-family: <?php echo $left_font_family; ?>; color: #000000; text-decoration: none}
|
||||
.child {font-family: <?php echo $left_font_family; ?>; font-size: 8pt; color: #333399; text-decoration: none}
|
||||
.item, .item:active, .item:hover, .tblItem, .tblItem:active {color: #333399; text-decoration: none}
|
||||
@@ -126,6 +127,7 @@ else {
|
||||
body {font-family: <?php echo $left_font_family; ?>; font-size: 10pt}
|
||||
div {color: #000000}
|
||||
.heada {font-family: <?php echo $left_font_family; ?>; font-size: 10pt}
|
||||
.heada_cnt {font-family: <?php echo $left_font_family; ?>; font-size: 8pt}
|
||||
//-->
|
||||
</style>
|
||||
<?php
|
||||
@@ -172,8 +174,11 @@ if ($num_dbs > 1) {
|
||||
$common_url_query = 'lang=' . $lang
|
||||
. '&server=' . urlencode($server)
|
||||
. '&db=' . urlencode($db);
|
||||
|
||||
if ($num_tables) { $num_tables_disp = $num_tables; } else { $num_tables_disp = "-"; }
|
||||
if ($num_tables) {
|
||||
$num_tables_disp = $num_tables;
|
||||
} else {
|
||||
$num_tables_disp = '-';
|
||||
}
|
||||
|
||||
// Displays the database name
|
||||
echo "\n";
|
||||
@@ -194,7 +199,7 @@ if ($num_dbs > 1) {
|
||||
echo "\n";
|
||||
?>
|
||||
<a class="item" href="db_details.php3?<?php echo $common_url_query; ?>" onclick="expandBase('el<?php echo $j; ?>', false);">
|
||||
<font color="black" class="heada"><?php echo $db; ?> (<?php echo $num_tables_disp; ?>)</font></a>
|
||||
<font color="black" class="heada"><?php echo $db; ?> <span class="heada_cnt">(<?php echo $num_tables_disp; ?>)</span></font></a>
|
||||
</div>
|
||||
|
||||
<div id="el<?php echo $j;?>Child" class="child" style="margin-bottom: 5px">
|
||||
@@ -249,15 +254,18 @@ else if ($num_dbs == 1) {
|
||||
$common_url_query = 'lang=' . $lang
|
||||
. '&server=' . urlencode($server)
|
||||
. '&db=' . urlencode($db);
|
||||
|
||||
if ($num_tables) { $num_tables_disp = $num_tables; } else { $num_tables_disp = "-"; }
|
||||
if ($num_tables) {
|
||||
$num_tables_disp = $num_tables;
|
||||
} else {
|
||||
$num_tables_disp = '-';
|
||||
}
|
||||
|
||||
// Displays the database name
|
||||
echo "\n";
|
||||
?>
|
||||
<div id="el2Parent" class="parent">
|
||||
<a class="item" href="db_details.php3?<?php echo $common_url_query; ?>">
|
||||
<font color="black" class="heada"><?php echo $db; ?> (<?php echo $num_tables_disp; ?>)</font></a>
|
||||
<font color="black" class="heada"><?php echo $db; ?> <span class="heada_cnt">(<?php echo $num_tables_disp; ?>)</span></font></a>
|
||||
</div>
|
||||
<div id="el2Child" class="child" style="margin-bottom: 5px">
|
||||
<?php
|
||||
|
Reference in New Issue
Block a user