small things...

This commit is contained in:
Olivier Müller
2001-08-18 16:08:42 +00:00
parent c0105db92d
commit f5cb3dc5e4
4 changed files with 46 additions and 21 deletions

View File

@@ -5,6 +5,13 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2001-08-18 Olivier M<>ller <om@omnis.ch>
* db_details.php3: added a few <b>
* left.php3: one more space between table name and num_dbs
* tbl_properties.php3: activate select/browser/empty links
only if there is at least one row in the table
(other way would be to remove the inactivated links)
2001-08-18 Lo<4C>c Chapeaux <lolo@phpheaven.net> 2001-08-18 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* db_details.php3; lang/*: modified the way the tables' number is * db_details.php3; lang/*: modified the way the tables' number is
displayed. displayed.

View File

@@ -200,16 +200,16 @@ else if (MYSQL_MAJOR_VERSION >= 3.23 && isset($tbl_cache)) {
?> ?>
<tr bgcolor="<?php echo $cfgThBgcolor; ?>"> <tr bgcolor="<?php echo $cfgThBgcolor; ?>">
<td align="center"> <td align="center">
<?php echo sprintf($strTables, number_format($num_tables, 0, $number_decimal_separator, $number_thousands_separator)) . "\n"; ?> <b><?php echo sprintf($strTables, number_format($num_tables, 0, $number_decimal_separator, $number_thousands_separator)) . "\n"; ?></b>
</td> </td>
<td colspan="6" align="center"> <td colspan="6" align="center">
<?php echo $strSum . "\n"; ?> <b><?php echo $strSum . "\n"; ?></b>
</td> </td>
<td align="right" nowrap="nowrap"> <td align="right" nowrap="nowrap">
<?php echo number_format($sum_entries, 0, $number_decimal_separator, $number_thousands_separator) . "\n"; ?> <b><?php echo number_format($sum_entries, 0, $number_decimal_separator, $number_thousands_separator) . "\n"; ?></b>
</td> </td>
<td align="right" nowrap="nowrap"> <td align="right" nowrap="nowrap">
<?php echo $sum_formated . ' '. $unit . "\n"; ?> <b><?php echo $sum_formated . ' '. $unit . "\n"; ?></b>
</td> </td>
</tr> </tr>
</table> </table>

View File

@@ -199,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; ?>&nbsp;<span class="heada_cnt">(<?php echo $num_tables_disp; ?>)</span></font></a> <font color="black" class="heada"><?php echo $db; ?>&nbsp;&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">
@@ -265,7 +265,7 @@ else if ($num_dbs == 1) {
?> ?>
<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; ?>&nbsp;<span class="heada_cnt">(<?php echo $num_tables_disp; ?>)</span></font></a> <font color="black" class="heada"><?php echo $db; ?>&nbsp;&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

View File

@@ -29,21 +29,6 @@ $url_query = 'lang=' . $lang
. '&db=' . urlencode($db) . '&db=' . urlencode($db)
. '&table=' . urlencode($table) . '&table=' . urlencode($table)
. '&goto=tbl_properties.php3'; . '&goto=tbl_properties.php3';
?>
<!-- first browse links -->
<p>
[ <a href="sql.php3?<?php echo $url_query; ?>&sql_query=<?php echo urlencode('SELECT * FROM ' . backquote($table)); ?>&pos=0">
<b><?php echo $strBrowse; ?></b></a> ]&nbsp;&nbsp;&nbsp;
[ <a href="tbl_select.php3?<?php echo $url_query; ?>">
<b><?php echo $strSelect; ?></b></a> ]&nbsp;&nbsp;&nbsp;
[ <a href="tbl_change.php3?<?php echo $url_query; ?>">
<b><?php echo $strInsert; ?></b></a> ]&nbsp;&nbsp;&nbsp;
[ <a href="sql.php3?<?php echo $url_query; ?>&sql_query=<?php echo urlencode('DELETE FROM ' . backquote($table)); ?>&zero_rows=<?php echo urlencode($strTable . ' ' . htmlspecialchars($table) . ' ' . $strHasBeenEmptied); ?>">
<b><?php echo $strEmpty; ?></b></a> ]
</p>
<?php
/** /**
* Gets table informations * Gets table informations
@@ -72,6 +57,39 @@ if (MYSQL_MAJOR_VERSION >= 3.23 && intval(MYSQL_MINOR_VERSION) >= 3) {
$showtable = mysql_fetch_array($result); $showtable = mysql_fetch_array($result);
$tbl_type = strtoupper($showtable['Type']); $tbl_type = strtoupper($showtable['Type']);
if (isset($showtable['Rows']) && $showtable['Rows']>0) {
?>
<!-- first browse links -->
<p>
[ <a href="sql.php3?<?php echo $url_query; ?>&sql_query=<?php echo urlencode('SELECT * FROM ' . backquote($table)); ?>&pos=0">
<b><?php echo $strBrowse; ?></b></a> ]&nbsp;&nbsp;&nbsp;
[ <a href="tbl_select.php3?<?php echo $url_query; ?>">
<b><?php echo $strSelect; ?></b></a> ]&nbsp;&nbsp;&nbsp;
[ <a href="tbl_change.php3?<?php echo $url_query; ?>">
<b><?php echo $strInsert; ?></b></a> ]&nbsp;&nbsp;&nbsp;
[ <a href="sql.php3?<?php echo $url_query; ?>&sql_query=<?php echo urlencode('DELETE FROM ' . backquote($table)); ?>&zero_rows=<?php echo urlencode($strTable . ' ' . htmlspecialchars($table) . ' ' . $strHasBeenEmptied); ?>">
<b><?php echo $strEmpty; ?></b></a> ]
</p>
<?php
} else {
?>
<!-- first browse links -->
<p>
[ <b><?php echo $strBrowse; ?></b> ]&nbsp;&nbsp;&nbsp;
[ <b><?php echo $strSelect; ?></b> ]&nbsp;&nbsp;&nbsp;
[ <a href="tbl_change.php3?<?php echo $url_query; ?>">
<b><?php echo $strInsert; ?></b></a> ]&nbsp;&nbsp;&nbsp;
[ <b><?php echo $strEmpty; ?></b> ]
</p>
<?php
}
if (!empty($showtable['Comment'])) { if (!empty($showtable['Comment'])) {
$show_comment = $showtable['Comment']; $show_comment = $showtable['Comment'];
?> ?>