Added a style for the number of tables per database

This commit is contained in:
Loïc Chapeaux
2001-08-17 14:22:13 +00:00
parent 56dd0cb360
commit 986132a4ad
2 changed files with 28 additions and 17 deletions

View File

@@ -220,6 +220,7 @@ if (capable) {
var lstyle = '<style type="text/css">' var lstyle = '<style type="text/css">'
+ 'div {color: #000000;}' + 'div {color: #000000;}'
+ '.heada {font-family: ' + fontFamily + '; font-size: 10pt}' + '.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}' + '.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}' + '.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;}' + '.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('<style type="text/css">');
write('div {color: #000000; }'); write('div {color: #000000; }');
write('.heada {font-family: ' + fontFamily + '; font-size: 10pt}'); write('.heada {font-family: ' + fontFamily + '; font-size: 10pt}');
write('.heada_cnt {font-family: ' + fontFamily + '; font-size: 8pt}');
if (isIE4) { if (isIE4) {
write('.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration: none; display: block}'); 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}'); 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('<style type="text/css">');
write('div {color: #000000; }'); write('div {color: #000000; }');
write('.heada {font-family: ' + fontFamily + '; font-size: 10pt}'); 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('.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration: none}');
write('.child {font-family: ' + fontFamily + '; font-size: 8pt; color: #333399; 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}'); write('.item, .item:active, .item:hover, .tblItem, .tblItem:active {color: #333399; text-decoration: none}');

View File

@@ -109,6 +109,7 @@ else if ($num_dbs == 1) {
body {font-family: <?php echo $left_font_family; ?>; font-size: 10pt} body {font-family: <?php echo $left_font_family; ?>; font-size: 10pt}
div {color: #000000} div {color: #000000}
.heada {font-family: <?php echo $left_font_family; ?>; font-size: 10pt} .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} .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} .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} .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} body {font-family: <?php echo $left_font_family; ?>; font-size: 10pt}
div {color: #000000} div {color: #000000}
.heada {font-family: <?php echo $left_font_family; ?>; font-size: 10pt} .heada {font-family: <?php echo $left_font_family; ?>; font-size: 10pt}
.heada_cnt {font-family: <?php echo $left_font_family; ?>; font-size: 8pt}
//--> //-->
</style> </style>
<?php <?php
@@ -167,13 +169,16 @@ if ($num_dbs > 1) {
if (!empty($db_start) && $db == $db_start) { if (!empty($db_start) && $db == $db_start) {
$selected_db = $j; $selected_db = $j;
} }
$tables = @mysql_list_tables($db); $tables = @mysql_list_tables($db);
$num_tables = @mysql_numrows($tables); $num_tables = @mysql_numrows($tables);
$common_url_query = 'lang=' . $lang $common_url_query = 'lang=' . $lang
. '&server=' . urlencode($server) . '&server=' . urlencode($server)
. '&db=' . urlencode($db); . '&db=' . urlencode($db);
if ($num_tables) {
if ($num_tables) { $num_tables_disp = $num_tables; } else { $num_tables_disp = "-"; } $num_tables_disp = $num_tables;
} else {
$num_tables_disp = '-';
}
// Displays the database name // Displays the database name
echo "\n"; echo "\n";
@@ -194,7 +199,7 @@ if ($num_dbs > 1) {
echo "\n"; echo "\n";
?> ?>
<a class="item" href="db_details.php3?<?php echo $common_url_query; ?>" onclick="expandBase('el<?php echo $j; ?>', false);"> <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; ?>&nbsp;<span class="heada_cnt">(<?php echo $num_tables_disp; ?>)</span></font></a>
</div> </div>
<div id="el<?php echo $j;?>Child" class="child" style="margin-bottom: 5px"> <div id="el<?php echo $j;?>Child" class="child" style="margin-bottom: 5px">
@@ -244,20 +249,23 @@ else if ($num_dbs == 1) {
} else { } else {
$db = $dblist[0]; $db = $dblist[0];
} }
$tables = @mysql_list_tables($db); $tables = @mysql_list_tables($db);
$num_tables = @mysql_numrows($tables); $num_tables = @mysql_numrows($tables);
$common_url_query = 'lang=' . $lang $common_url_query = 'lang=' . $lang
. '&server=' . urlencode($server) . '&server=' . urlencode($server)
. '&db=' . urlencode($db); . '&db=' . urlencode($db);
if ($num_tables) {
if ($num_tables) { $num_tables_disp = $num_tables; } else { $num_tables_disp = "-"; } $num_tables_disp = $num_tables;
} else {
$num_tables_disp = '-';
}
// Displays the database name // Displays the database name
echo "\n"; echo "\n";
?> ?>
<div id="el2Parent" class="parent"> <div id="el2Parent" class="parent">
<a class="item" href="db_details.php3?<?php echo $common_url_query; ?>"> <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; ?>&nbsp;<span class="heada_cnt">(<?php echo $num_tables_disp; ?>)</span></font></a>
</div> </div>
<div id="el2Child" class="child" style="margin-bottom: 5px"> <div id="el2Child" class="child" style="margin-bottom: 5px">
<?php <?php