small things...
This commit is contained in:
@@ -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.
|
||||||
|
@@ -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>
|
||||||
|
@@ -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; ?> <span class="heada_cnt">(<?php echo $num_tables_disp; ?>)</span></font></a>
|
<font color="black" class="heada"><?php echo $db; ?> <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; ?> <span class="heada_cnt">(<?php echo $num_tables_disp; ?>)</span></font></a>
|
<font color="black" class="heada"><?php echo $db; ?> <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
|
||||||
|
@@ -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> ]
|
|
||||||
[ <a href="tbl_select.php3?<?php echo $url_query; ?>">
|
|
||||||
<b><?php echo $strSelect; ?></b></a> ]
|
|
||||||
[ <a href="tbl_change.php3?<?php echo $url_query; ?>">
|
|
||||||
<b><?php echo $strInsert; ?></b></a> ]
|
|
||||||
[ <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> ]
|
||||||
|
[ <a href="tbl_select.php3?<?php echo $url_query; ?>">
|
||||||
|
<b><?php echo $strSelect; ?></b></a> ]
|
||||||
|
[ <a href="tbl_change.php3?<?php echo $url_query; ?>">
|
||||||
|
<b><?php echo $strInsert; ?></b></a> ]
|
||||||
|
[ <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> ]
|
||||||
|
[ <b><?php echo $strSelect; ?></b> ]
|
||||||
|
[ <a href="tbl_change.php3?<?php echo $url_query; ?>">
|
||||||
|
<b><?php echo $strInsert; ?></b></a> ]
|
||||||
|
[ <b><?php echo $strEmpty; ?></b> ]
|
||||||
|
</p>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!empty($showtable['Comment'])) {
|
if (!empty($showtable['Comment'])) {
|
||||||
$show_comment = $showtable['Comment'];
|
$show_comment = $showtable['Comment'];
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user