Conditional Ajax for db Structure and Tracking
This commit is contained in:
@@ -266,7 +266,11 @@ foreach ($tables as $keyname => $each_table) {
|
||||
|
||||
if (! $db_is_information_schema) {
|
||||
if (! empty($each_table['TABLE_ROWS'])) {
|
||||
$empty_table = '<a class="truncate_table_anchor" href="sql.php?' . $tbl_url_query
|
||||
$empty_table = '<a ';
|
||||
if ($GLOBALS['cfg']['AjaxEnable']) {
|
||||
$empty_table .= 'class="truncate_table_anchor"';
|
||||
}
|
||||
$empty_table .= ' href="sql.php?' . $tbl_url_query
|
||||
. '&sql_query=';
|
||||
$empty_table .= urlencode('TRUNCATE ' . PMA_backquote($each_table['TABLE_NAME']))
|
||||
. '&message_to_show='
|
||||
@@ -355,7 +359,7 @@ foreach ($tables as $keyname => $each_table) {
|
||||
<?php echo $titles['Insert']; ?></a></td>
|
||||
<td align="center"><?php echo $empty_table; ?></td>
|
||||
<td align="center">
|
||||
<a class="drop_table_anchor" href="sql.php?<?php echo $tbl_url_query;
|
||||
<a <?php echo ($GLOBALS['cfg']['AjaxEnable'] ? 'class="drop_table_anchor"' : ''); ?> href="sql.php?<?php echo $tbl_url_query;
|
||||
?>&reload=1&purge=1&sql_query=<?php
|
||||
echo urlencode($drop_query); ?>&message_to_show=<?php
|
||||
echo urlencode($drop_message); ?>" >
|
||||
|
Reference in New Issue
Block a user