' . "\n"; /** * Count amount of navigation tabs */ $db_details_links_count_tabs = 0; /** * Prepares links */ require_once('./libraries/bookmark.lib.php'); $book_sql_query = PMA_queryBookmarks($db, $cfg['Bookmark'], '\'' . PMA_sqlAddslashes($table) . '\'', 'label'); if ($table_info_num_rows > 0 || $tbl_is_view) { $lnk2 = 'sql.php'; $arg2 = $url_query . '&sql_query=' . (isset($book_sql_query) && $book_sql_query != FALSE ? urlencode($book_sql_query) : urlencode('SELECT * FROM ' . PMA_backquote($table))) . '&pos=0'; $lnk4 = 'tbl_select.php'; $arg4 = $url_query; if ($tbl_is_view) { $lnk8 = ''; $arg8 = ''; $att8 = ''; $class8 = ''; } else { $ln8_stt = (PMA_MYSQL_INT_VERSION >= 40000) ? 'TRUNCATE TABLE ' : 'DELETE FROM '; $lnk8 = 'sql.php'; $arg8 = $url_query . '&sql_query=' . urlencode($ln8_stt . PMA_backquote($table)) . '&zero_rows=' . urlencode(sprintf($strTableHasBeenEmptied, htmlspecialchars($table))); $att8 = 'onclick="return confirmLink(this, \'' . $ln8_stt . PMA_jsFormat($table) . '\')"'; $class8 = 'Drop'; } } else { $lnk2 = ''; $arg2 = ''; $lnk4 = ''; $arg4 = ''; $lnk8 = ''; $arg8 = ''; $att8 = ''; $class8 = 'Drop'; } $arg9 = $url_query . '&reload=1&purge=1&sql_query=' . urlencode('DROP ' . ($tbl_is_view ? 'VIEW' : 'TABLE') . ' ' . PMA_backquote($table) ) . '&zero_rows=' . urlencode(sprintf($strTableHasBeenDropped, htmlspecialchars($table))); $att9 = 'onclick="return confirmLink(this, \'DROP TABLE ' . PMA_jsFormat($table) . '\')"'; $class9 = 'Drop'; /** * Displays links */ if ($cfg['LightTabs']) { echo ' '; } else { echo '' . "\n" . ' ' . "\n" . ' ' . "\n" . ' ' . "\n" . '
'; } else { echo '
'; } /** * Displays table comment */ if (!empty($show_comment) && !isset($avoid_show_comment)) { ?>