00001 <?php
00002
00003
00004
00005
00009
00010
00011
00012
00013
00014
00015 require_once('./libraries/common.lib.php');
00016
00017 PMA_checkParameters(array('db'));
00018
00022 $db_details_links_count_tabs = 0;
00023
00024
00028 require_once('./libraries/bookmark.lib.php');
00029 $book_sql_query = PMA_queryBookmarks($db, $cfg['Bookmark'], '\'' . PMA_sqlAddslashes($table) . '\'', 'label');
00030
00031 if ($table_info_num_rows > 0) {
00032 $lnk2 = 'sql.php';
00033 $arg2 = $url_query
00034 . '&sql_query=' . (isset($book_sql_query) && $book_sql_query != FALSE ? urlencode($book_sql_query) : urlencode('SELECT * FROM ' . PMA_backquote($table)))
00035 . '&pos=0';
00036 $lnk4 = 'tbl_select.php';
00037 $arg4 = $url_query;
00038 $ln6_stt = (PMA_MYSQL_INT_VERSION >= 40000)
00039 ? 'TRUNCATE TABLE '
00040 : 'DELETE FROM ';
00041 $lnk6 = 'sql.php';
00042 $arg6 = $url_query . '&sql_query='
00043 . urlencode($ln6_stt . PMA_backquote($table))
00044 . '&zero_rows='
00045 . urlencode(sprintf($strTableHasBeenEmptied, htmlspecialchars($table)));
00046 $att6 = 'class="drop" onclick="return confirmLink(this, \'' . $ln6_stt . PMA_jsFormat($table) . '\')"';
00047 } else {
00048 $lnk2 = '';
00049 $arg2 = '';
00050 $lnk4 = '';
00051 $arg4 = '';
00052 $lnk6 = '';
00053 $arg6 = '';
00054 $att6 = '';
00055 }
00056
00057 $arg7 = $url_query . '&reload=1&purge=1&sql_query=' . urlencode('DROP TABLE ' . PMA_backquote($table) ) . '&zero_rows=' . urlencode(sprintf($strTableHasBeenDropped, htmlspecialchars($table)));
00058 $att7 = 'class="drop" onclick="return confirmLink(this, \'DROP TABLE ' . PMA_jsFormat($table) . '\')"';
00059
00060
00065 if ($cfg['LightTabs']) {
00066 echo ' ';
00067 } else {
00068 echo '<table border="0" cellspacing="0" cellpadding="3" width="100%" class="tabs">' . "\n"
00069 . ' <tr>' . "\n"
00070 . ' <td width="8"> </td>';
00071 }
00072
00073 echo PMA_printTab($strStructure, 'tbl_properties_structure.php', $url_query)
00074 . PMA_printTab($strBrowse, $lnk2, $arg2)
00075 . PMA_printTab($strSQL, 'tbl_properties.php', $url_query)
00076 . PMA_printTab($strSearch, $lnk4, $arg4)
00077 . PMA_printTab($strInsert, 'tbl_change.php', $url_query)
00078 . PMA_printTab($strExport, 'tbl_properties_export.php', $url_query . '&single_table=true')
00079 . PMA_printTab($strOperations, 'tbl_properties_operations.php', $url_query)
00080 . PMA_printTab($strEmpty, $lnk6, $arg6, $att6)
00081 . PMA_printTab($strDrop, 'sql.php', $arg7, $att7)
00082 . "\n";
00083
00084 if (!$cfg['LightTabs']) {
00085 echo '</tr></table>';
00086 } else {
00087 echo '<br />';
00088 }
00089
00090 ?><br />