0) { $ln8_stt = (PMA_MYSQL_INT_VERSION >= 40000) ? 'TRUNCATE TABLE ' : 'DELETE FROM '; $tabs['empty']['link'] = 'sql.php'; $tabs['empty']['args']['sql_query'] = $ln8_stt . PMA_backquote($table); $tabs['empty']['args']['zero_rows'] = sprintf($strTableHasBeenEmptied, htmlspecialchars($table)); $tabs['empty']['attr'] = 'onclick="return confirmLink(this, \'' . $ln8_stt . PMA_jsFormat($table) . '\')"'; $tabs['empty']['args']['goto'] = 'tbl_properties_structure.php'; $tabs['empty']['class'] = 'caution'; } $tabs['empty']['icon'] = 'b_empty.png'; $tabs['empty']['text'] = $strEmpty; } /** * no drop in information_schema */ if ( isset($db_is_information_schema) && ! $db_is_information_schema ) { $tabs['drop']['icon'] = 'b_deltbl.png'; $tabs['drop']['link'] = 'sql.php'; $tabs['drop']['text'] = $strDrop; $tabs['drop']['args']['reload'] = 1; $tabs['drop']['args']['purge'] = 1; $drop_command = 'DROP ' . ($tbl_is_view ? 'VIEW' : 'TABLE'); $tabs['drop']['args']['sql_query'] = $drop_command . ' ' . PMA_backquote($table); $tabs['drop']['args']['goto'] = 'db_details_structure.php'; $tabs['drop']['args']['zero_rows'] = sprintf(($tbl_is_view ? $strViewHasBeenDropped : $strTableHasBeenDropped), htmlspecialchars($table)); $tabs['drop']['attr'] = 'onclick="return confirmLink(this, \'' . $drop_command . ' ' . PMA_jsFormat($table) . '\')"'; unset($drop_command); $tabs['drop']['class'] = 'caution'; } if ($table_info_num_rows > 0 || $tbl_is_view) { $tabs['browse']['link'] = 'sql.php'; $tabs['browse']['args']['sql_query'] = isset($book_sql_query) && $book_sql_query != FALSE ? $book_sql_query : 'SELECT * FROM ' . PMA_backquote($table); $tabs['browse']['args']['pos'] = 0; $tabs['search']['link'] = 'tbl_select.php'; } echo PMA_getTabs( $tabs ); unset( $tabs ); /** * Displays a message */ if (!empty($message)) { PMA_showMessage($message); unset($message); } ?>