fixed bad dislays with Opera
This commit is contained in:
@@ -1213,33 +1213,42 @@ else if (PMA_MYSQL_INT_VERSION >= 32306
|
||||
if (!empty($cfgServer['relation'])) {
|
||||
|
||||
$local_query = 'SELECT src_column, dest_table, dest_column'
|
||||
. ' FROM ' . $cfgServer['relation']
|
||||
. ' WHERE src_table =\'' . $table . '\';';
|
||||
mysql_select_db($db);
|
||||
. ' FROM ' . $cfgServer['relation']
|
||||
. ' WHERE src_table =\'' . $table . '\';';
|
||||
// mysql_select_db($db);
|
||||
$result = @mysql_query($local_query);
|
||||
|
||||
if ($result != FALSE && mysql_num_rows($result) > 0) {
|
||||
echo " <!-- Referential integrity check -->\n";
|
||||
echo " <li>" . $strReferentialIntegrity . "<br />\n";
|
||||
?>
|
||||
<!-- Referential integrity check -->
|
||||
<li style="vertical-align: top">
|
||||
<div style="margin-bottom: 10px">
|
||||
<?php echo $strReferentialIntegrity; ?><br />
|
||||
<?php
|
||||
echo "\n";
|
||||
while ($rel = mysql_fetch_row($result)) {
|
||||
echo ' <a href="sql.php3?' . $url_query .'&sql_query='
|
||||
. urlencode('SELECT ' . PMA_backquote($table) . '.* FROM '
|
||||
. PMA_backquote($table) . ' LEFT JOIN '
|
||||
. PMA_backquote($rel[1]) . ' ON '
|
||||
. PMA_backquote($table) . '.' . PMA_backquote($rel[0])
|
||||
. ' = ' . PMA_backquote($rel[1]) . '.' . PMA_backquote($rel[2])
|
||||
. ' WHERE '
|
||||
. PMA_backquote($rel[1]) . '.' . PMA_backquote($rel[2])
|
||||
. ' IS NULL') . '">' . $rel[0] . '-> ' . $rel[1] . '.'
|
||||
. $rel[2] . '</a><br />' . "\n";
|
||||
. urlencode('SELECT ' . PMA_backquote($table) . '.* FROM '
|
||||
. PMA_backquote($table) . ' LEFT JOIN '
|
||||
. PMA_backquote($rel[1]) . ' ON '
|
||||
. PMA_backquote($table) . '.' . PMA_backquote($rel[0])
|
||||
. ' = ' . PMA_backquote($rel[1]) . '.' . PMA_backquote($rel[2])
|
||||
. ' WHERE '
|
||||
. PMA_backquote($rel[1]) . '.' . PMA_backquote($rel[2])
|
||||
. ' IS NULL')
|
||||
. '">' . $rel[0] . ' -> ' . $rel[1] . '.' . $rel[2]
|
||||
. '</a><br />' . "\n";
|
||||
} // end while
|
||||
echo " </li><br />\n";
|
||||
?>
|
||||
</div>
|
||||
</li><br />
|
||||
<?php
|
||||
} // end if ($result)
|
||||
echo "\n";
|
||||
|
||||
} // end if (!empty($cfgServer['relation']))
|
||||
?>
|
||||
|
||||
|
||||
<!-- Flushes the table -->
|
||||
<li>
|
||||
<a href="sql.php3?<?php echo $url_query; ?>&sql_query=<?php echo urlencode('FLUSH TABLE ' . PMA_backquote($table)); ?>&zero_rows=<?php echo urlencode(sprintf($strTableHasBeenFlushed, htmlspecialchars($table))); if ($cfgShowTooltip) echo '&reload=1'; ?>">
|
||||
|
Reference in New Issue
Block a user