00001 <?php
00002
00003
00004
00005
00009 $db_details_links_count_tabs = 0;
00010
00011
00016 if (empty($sub_part)) {
00017 $sub_part = '_structure';
00018 }
00019
00020
00024
00025 if ($num_tables > 0) {
00026 $lnk3 = 'db_details_export.php';
00027 $arg3 = $url_query;
00028 $lnk4 = 'db_search.php';
00029 $arg4 = $url_query;
00030 }
00031 else {
00032 $lnk3 = '';
00033 $arg3 = '';
00034 $lnk4 = '';
00035 $arg4 = '';
00036 }
00037
00038 if (!$cfg['AllowUserDropDatabase']) {
00039
00040 $links_result = @PMA_mysql_query('USE mysql');
00041 $cfg['AllowUserDropDatabase'] = (!PMA_mysql_error());
00042 }
00043 if ($cfg['AllowUserDropDatabase']) {
00044 $lnk5 = 'sql.php';
00045 $arg5 = $url_query . '&sql_query='
00046 . urlencode('DROP DATABASE ' . PMA_backquote($db))
00047 . '&zero_rows='
00048 . urlencode(sprintf($strDatabaseHasBeenDropped, htmlspecialchars(PMA_backquote($db))))
00049 . '&goto=main.php&back=db_details' . $sub_part . '.php&reload=1&purge=1';
00050 $att5 = 'class="drop" '
00051 . 'onclick="return confirmLink(this, \'DROP DATABASE ' . PMA_jsFormat($db) . '\')"';
00052 }
00053 else {
00054 $lnk5 = '';
00055 }
00056
00057
00062 if ($cfg['LightTabs']) {
00063 echo ' ';
00064 } else {
00065 echo '<table border="0" cellspacing="0" cellpadding="3" width="100%" class="tabs">
00066 <tr>
00067 <td width="8"> </td>';
00068 }
00069
00070 echo PMA_printTab($strStructure, 'db_details_structure.php', $url_query);
00071 echo PMA_printTab($strSQL, 'db_details.php', $url_query . '&db_query_force=1');
00072 echo PMA_printTab($strExport, $lnk3, $arg3);
00073 echo PMA_printTab($strSearch, $lnk4, $arg4);
00074 echo PMA_printTab($strQBE, ($num_tables > 0) ? 'db_details_qbe.php' : '', $url_query);
00075
00076
00077 if ($lnk5) {
00078 echo PMA_printTab($strDrop, $lnk5, $arg5, $att5);
00079 }
00080 echo "\n";
00081
00082 if (!$cfg['LightTabs']) {
00083 echo '</tr></table>';
00084 } else {
00085 echo '<br />';
00086 }
00087 ?>
00088 <br />