3 // vim: expandtab sw=4 ts=4 sts=4:
7 * Sets error reporting level
9 error_reporting(E_ALL
);
13 * Count amount of navigation tabs
15 $db_details_links_count_tabs = 0;
21 include('./libraries/bookmark.lib.php3');
22 $book_sql_query = PMA_queryBookmarks($db, $cfg['Bookmark'], '\'' . PMA_sqlAddslashes($table) . '\'', 'label');
24 if ($table_info_num_rows > 0) {
27 . '&sql_query=' . (isset($book_sql_query) && $book_sql_query != FALSE ?
urlencode($book_sql_query) : urlencode('SELECT * FROM ' . PMA_backquote($table)))
29 $lnk4 = 'tbl_select.php3';
31 $ln6_stt = (PMA_MYSQL_INT_VERSION
>= 40000)
35 $arg6 = $url_query . '&sql_query='
36 . urlencode($ln6_stt . PMA_backquote($table))
38 . urlencode(sprintf($strTableHasBeenEmptied, htmlspecialchars($table)));
39 $att6 = 'class="drop" onclick="return confirmLink(this, \'' . $ln6_stt . PMA_jsFormat($table) . '\')"';
50 $arg7 = $url_query . '&reload=1&purge=1&sql_query=' . urlencode('DROP TABLE ' . PMA_backquote($table) ) . '&zero_rows=' . urlencode(sprintf($strTableHasBeenDropped, htmlspecialchars($table)));
51 $att7 = 'class="drop" onclick="return confirmLink(this, \'DROP TABLE ' . PMA_jsFormat($table) . '\')"';
58 if ($cfg['LightTabs']) {
61 echo '<table border="0" cellspacing="0" cellpadding="3" width="100%" class="tabs">
63 <td width="8"> </td>';
66 echo PMA_printTab($strStructure, 'tbl_properties_structure.php3', $url_query);
67 echo PMA_printTab($strBrowse, $lnk2, $arg2);
68 echo PMA_printTab($strSQL, 'tbl_properties.php3', $url_query);
69 echo PMA_printTab($strSelect, $lnk4, $arg4);
70 echo PMA_printTab($strInsert, 'tbl_change.php3', $url_query);
71 echo PMA_printTab($strExport, 'tbl_properties_export.php3', $url_query . '&single_table=true');
72 echo PMA_printTab($strOperations, 'tbl_properties_operations.php3', $url_query);
73 echo PMA_printTab($strEmpty, $lnk6, $arg6, $att6);
74 echo PMA_printTab($strDrop, 'sql.php3', $arg7, $att7);
77 if (!$cfg['LightTabs']) {