XHTML1.0 fix and ensure the script fits the common coding standards
This commit is contained in:
@@ -96,9 +96,7 @@ header('Content-Type: text/html; charset=' . $charset);
|
||||
<table border="<?php echo $cfgBorder; ?>">
|
||||
<tr>
|
||||
<th> <?php echo ucfirst($strDatabase); ?>
|
||||
<img src="./images/asc_order.gif" border="0" width="7" height="7" alt="ASC" />
|
||||
|
||||
</th>
|
||||
<img src="./images/asc_order.gif" border="0" width="7" height="7" alt="ASC" /></th>
|
||||
<th> <?php echo ucfirst($strTable); ?> </th>
|
||||
<th> <?php echo ucfirst($strData); ?> </th>
|
||||
<th> <?php echo ucfirst($strIndexes); ?> </th>
|
||||
@@ -142,7 +140,6 @@ if ($num_dbs > 1) {
|
||||
$tot_data += $row['Data_length'];
|
||||
$tot_idx += $row['Index_length'];
|
||||
}
|
||||
|
||||
$tot_all = $tot_data + $tot_idx;
|
||||
$big_tot_all += $tot_all;
|
||||
$big_tot_idx += $tot_idx;
|
||||
@@ -178,27 +175,22 @@ if ($num_dbs > 1) {
|
||||
|
||||
echo ' </table>' . "\n";
|
||||
|
||||
// Display 20 biggest db's
|
||||
|
||||
// Displays 20 biggest db's
|
||||
?>
|
||||
|
||||
</td>
|
||||
<td valign="top"> </td>
|
||||
<td valign="top">
|
||||
|
||||
<td valign="top"> </td>
|
||||
|
||||
<td valign="top">
|
||||
<table border="<?php echo $cfgBorder; ?>">
|
||||
<tr>
|
||||
<th> </th>
|
||||
<th> <?php echo ucfirst($strDatabase); ?> </th>
|
||||
<th> <?php echo ucfirst($strTotal); ?>
|
||||
<img src="./images/asc_order.gif" border="0" width="7" height="7" alt="ASC" />
|
||||
|
||||
</th>
|
||||
|
||||
<img src="./images/asc_order.gif" border="0" width="7" height="7" alt="ASC" /> </th>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
echo "\n";
|
||||
arsort($results_array);
|
||||
$display_max = 20;
|
||||
$j = 0;
|
||||
@@ -208,26 +200,35 @@ if ($num_dbs > 1) {
|
||||
|
||||
reset ($results_array);
|
||||
while ((list($key, $val) = each($results_array)) && ($j < $display_max)) {
|
||||
|
||||
$j++;
|
||||
|
||||
list($disp_val, $unit) = format_byte_down($val, 3, 1);
|
||||
|
||||
echo ' <tr bgcolor="'. $bgcolor . '">' . "\n";
|
||||
echo ' <td align="right"> ' . $j . ' </td>' . "\n";
|
||||
echo ' <td> ' . urlencode($key) . ' </td>' . "\n";
|
||||
echo ' <td align="right"> <b>' . $disp_val . ' ' . $unit . '<b> </td>' . "\n";
|
||||
echo ' </tr>' . "\n";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
echo '</table>' . "\n";
|
||||
echo '</td></tr></table>';
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
} // end if ($num_dbs == 1)
|
||||
|
||||
else {
|
||||
echo "\n" . '</table>' . "\n";
|
||||
echo '<p> ' . $strNoDatabases . '</p>';
|
||||
echo "\n";
|
||||
?>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p> <?php echo $strNoDatabases; ?></p>
|
||||
<?php
|
||||
} // end if ($num_dbs == 0)
|
||||
echo "\n";
|
||||
?>
|
||||
|
Reference in New Issue
Block a user