Beispiel #1
0
">

<?php 
if ($cfg['QueryFrameJS'] && !isset($no_js)) {
    $querydisplay_tab = isset($querydisplay_tab) ? $querydisplay_tab : $cfg['QueryWindowDefTab'];
    if ($cfg['LightTabs']) {
        echo '&nbsp;';
    } else {
        echo '<table border="0" cellspacing="0" cellpadding="0" width="100%">' . "\n" . '    <tr>' . "\n" . '        <td class="nav" align="left" nowrap="nowrap" valign="bottom">' . '            <table border="0" cellpadding="0" cellspacing="0"><tr>' . '                <td nowrap="nowrap"><img src="' . $GLOBALS['pmaThemeImage'] . 'spacer.png' . '" width="2" height="1" border="0" alt="" /></td>' . '                <td class="navSpacer"><img src="' . $GLOBALS['pmaThemeImage'] . 'spacer.png' . '" width="1" height="1" border="0" alt="" /></td>';
    }
    echo "\n";
    echo PMA_printTab(($GLOBALS['cfg']['PropertiesIconic'] != false ? '<img src="' . $GLOBALS['pmaThemeImage'] . 'b_sql.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strSQL . '" />' : '') . $strSQL, '#', '', 'onclick="javascript:query_tab_commit(\'sql\');return false;"', '', '', isset($querydisplay_tab) && $querydisplay_tab == 'sql' ? TRUE : FALSE);
    echo PMA_printTab(($GLOBALS['cfg']['PropertiesIconic'] != false ? '<img src="' . $GLOBALS['pmaThemeImage'] . 'b_import.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strImportFiles . '" />' : '') . $strImportFiles, '#', '', 'onclick="javascript:query_tab_commit(\'files\');return false;"', '', '', isset($querydisplay_tab) && $querydisplay_tab == 'files' ? TRUE : FALSE);
    echo PMA_printTab($strQuerySQLHistory, '#', '', 'onclick="javascript:query_tab_commit(\'history\');return false;"', '', '', isset($querydisplay_tab) && $querydisplay_tab == 'history' ? TRUE : FALSE);
    if ($cfg['QueryWindowDefTab'] == 'full') {
        echo PMA_printTab($strAll, '#', '', 'onclick="javascript:query_tab_commit(\'full\');return false;"', '', '', isset($querydisplay_tab) && $querydisplay_tab == 'full' ? TRUE : FALSE);
    }
    if (!$cfg['LightTabs']) {
        echo '                <td nowrap="nowrap"><img src="' . $GLOBALS['pmaThemeImage'] . 'spacer.png' . '" width="2" height="1" border="0" alt="" /></td>' . '            </tr></table>' . "\n" . '        </td>' . "\n" . '    </tr>' . "\n" . '</table>';
    } else {
        echo '<br />';
    }
} else {
    $querydisplay_tab = 'full';
}
?>
<br />

<?php 
if ($cfg['PropertiesIconic'] == true) {
    // We need to copy the value or else the == 'both' check will always return true
 * Displays tab links
 */
if ($cfg['LightTabs']) {
    echo '&nbsp;';
} else {
    echo '<table border="0" cellspacing="0" cellpadding="0" width="100%" id="topmenu">' . "\n" . '    <tr>' . "\n" . '        <td class="nav" align="left" nowrap="nowrap" valign="bottom">' . '            <table border="0" cellpadding="0" cellspacing="0"><tr>' . '                <td nowrap="nowrap"><img src="' . $GLOBALS['pmaThemeImage'] . 'spacer.png' . '" width="2" height="1" border="0" alt="" /></td>' . '                <td class="navSpacer"><img src="' . $GLOBALS['pmaThemeImage'] . 'spacer.png' . '" width="1" height="1" border="0" alt="" /></td>';
}
echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 'b_props.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strStructure . '" />' : '') . $strStructure, 'db_details_structure.php', $url_query);
echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 'b_sql.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strSQL . '" />' : '') . $strSQL, 'db_details.php', $url_query . '&amp;db_query_force=1');
echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 'b_export.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strExport . '" />' : '') . $strExport, $lnk3, $arg3);
echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 'b_search.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strSearch . '" />' : '') . $strSearch, $lnk4, $arg4);
echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 's_db.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strQBE . '" />' : '') . $strQBE, $num_tables > 0 ? 'db_details_qbe.php' : '', $url_query);
echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 'b_tblops.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strOperations . '" />' : '') . $strOperations, 'db_operations.php', $url_query);
// Displays drop link
if ($lnk5) {
    echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 'b_deltbl.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strDrop . '" />' : '') . $strDrop, $lnk5, $arg5, $att5, $class5);
}
// end if
echo "\n";
if (!$cfg['LightTabs']) {
    echo '                <td nowrap="nowrap"><img src="' . $GLOBALS['pmaThemeImage'] . 'spacer.png' . '" width="2" height="1" border="0" alt="" /></td>' . '            </tr></table>' . "\n" . '        </td>' . "\n" . '    </tr>' . "\n" . '</table>';
} else {
    echo '<br />';
}
/**
 * Displays a message
 */
if (!empty($message)) {
    PMA_showMessage($message);
    unset($message);
}
if (!empty($message)) {
    PMA_showMessage($message);
}
/**
 * Displays tab links
 */
?>
<table border="0" cellspacing="0" cellpadding="3" width="100%" class="tabs">
    <tr>
        <td width="8">&nbsp;</td>
<?php 
echo PMA_printTab($strDatabases, 'server_databases.php', $url_query);
if ($cfg['ShowMysqlInfo']) {
    echo PMA_printTab($strStatus, 'server_status.php', $url_query);
}
if ($cfg['ShowMysqlVars']) {
    echo PMA_printTab($strServerTabVariables, 'server_variables.php', $url_query);
}
if (PMA_MYSQL_INT_VERSION >= 40100) {
    echo PMA_printTab($strCharsets, 'server_collations.php', $url_query);
}
if ($is_superuser) {
    echo PMA_printTab($strPrivileges, 'server_privileges.php', $url_query);
}
echo PMA_printTab($strServerTabProcesslist, 'server_processlist.php', $url_query);
echo PMA_printTab($strExport, 'server_export.php', $url_query);
?>
    </tr>
</table>
<br />
    echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 's_status.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strStatus . '" />' : '') . $strStatus, 'server_status.php', $url_query);
}
if ($cfg['ShowMysqlVars']) {
    echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 's_vars.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strServerTabVariables . '" />' : '') . $strServerTabVariables, 'server_variables.php', $url_query);
}
if (PMA_MYSQL_INT_VERSION >= 40100) {
    echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 's_asci.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strCharsets . '" />' : '') . $strCharsets, 'server_collations.php', $url_query);
}
if ($is_superuser) {
    echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 's_rights.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strPrivileges . '" />' : '') . $strPrivileges, 'server_privileges.php', $url_query);
}
if ($has_binlogs) {
    echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 's_tbl.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strBinaryLog . '" />' : '') . $strBinaryLog, 'server_binlog.php', $url_query);
}
echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 's_process.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strServerTabProcesslist . '" />' : '') . $strServerTabProcesslist, 'server_processlist.php', $url_query);
echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 'b_export.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strExport . '" />' : '') . $strExport, 'server_export.php', $url_query);
if (!$cfg['LightTabs']) {
    echo '                <td nowrap="nowrap"><img src="' . $GLOBALS['pmaThemeImage'] . 'spacer.png' . '" width="2" height="1" border="0" alt="" /></td>' . '            </tr></table>' . "\n" . '        </td>' . "\n" . '    </tr>' . "\n" . '</table>';
} else {
    echo '<br />';
}
/**
 * Displays a message
 */
if (!empty($message)) {
    PMA_showMessage($message);
    unset($message);
}
?>
<br />
    $arg6 = '';
    $att6 = '';
    $class6 = 'Drop';
}
$arg7 = $url_query . '&amp;reload=1&amp;purge=1&amp;sql_query=' . urlencode('DROP TABLE ' . PMA_backquote($table)) . '&amp;zero_rows=' . urlencode(sprintf($strTableHasBeenDropped, htmlspecialchars($table)));
$att7 = 'onclick="return confirmLink(this, \'DROP TABLE ' . PMA_jsFormat($table) . '\')"';
$class7 = 'Drop';
/**
 * Displays links
 */
if ($cfg['LightTabs']) {
    echo '&nbsp;';
} else {
    echo '<table border="0" cellspacing="0" cellpadding="0" width="100%" id="topmenu">' . "\n" . '    <tr>' . "\n" . '        <td class="nav" align="left" nowrap="nowrap" valign="bottom">' . '            <table border="0" cellpadding="0" cellspacing="0"><tr>' . '                <td nowrap="nowrap"><img src="' . $GLOBALS['pmaThemeImage'] . 'spacer.png' . '" width="2" height="1" border="0" alt="" /></td>' . '                <td class="navSpacer"><img src="' . $GLOBALS['pmaThemeImage'] . 'spacer.png' . '" width="1" height="1" border="0" alt="" /></td>';
}
echo PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 'b_props.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strStructure . '" />' : '') . $strStructure, 'tbl_properties_structure.php', $url_query) . PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 'b_browse.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strBrowse . '" />' : '') . $strBrowse, $lnk2, $arg2) . PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 'b_sql.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strSQL . '" />' : '') . $strSQL, 'tbl_properties.php', $url_query) . PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 'b_search.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strSearch . '" />' : '') . $strSearch, $lnk4, $arg4) . PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 'b_insrow.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strInsert . '" />' : '') . $strInsert, 'tbl_change.php', $url_query) . PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 'b_tblexport.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strExport . '" />' : '') . $strExport, 'tbl_properties_export.php', $url_query . '&amp;single_table=true') . PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 'b_tblops.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strOperations . '" />' : '') . $strOperations, 'tbl_properties_operations.php', $url_query) . PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 'b_empty.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strEmpty . '" />' : '') . $strEmpty, $lnk6, $arg6, $att6, $class6) . PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $GLOBALS['pmaThemeImage'] . 'b_deltbl.png" width="16" height="16" border="0" hspace="2" align="middle" alt="' . $strDrop . '" />' : '') . $strDrop, 'sql.php', $arg7, $att7, $class7) . "\n";
if (!$cfg['LightTabs']) {
    echo '                <td nowrap="nowrap"><img src="' . $GLOBALS['pmaThemeImage'] . 'spacer.png' . '" width="2" height="1" border="0" alt="" /></td>' . '            </tr></table>' . "\n" . '        </td>' . "\n" . '    </tr>' . "\n" . '</table>';
} else {
    echo '<br />';
}
/**
 * Displays table comment
 */
if (!empty($show_comment) && !isset($avoid_show_comment)) {
    ?>
<!-- Table comment -->
<p><i>
    <?php 
    echo htmlspecialchars($show_comment) . "\n";
    ?>
    $lnk6 = 'sql.php';
    $arg6 = $url_query . '&amp;sql_query=' . urlencode($ln6_stt . PMA_backquote($table)) . '&amp;zero_rows=' . urlencode(sprintf($strTableHasBeenEmptied, htmlspecialchars($table)));
    $att6 = 'class="drop" onclick="return confirmLink(this, \'' . $ln6_stt . PMA_jsFormat($table) . '\')"';
} else {
    $lnk2 = '';
    $arg2 = '';
    $lnk4 = '';
    $arg4 = '';
    $lnk6 = '';
    $arg6 = '';
    $att6 = '';
}
$arg7 = $url_query . '&amp;reload=1&amp;purge=1&amp;sql_query=' . urlencode('DROP TABLE ' . PMA_backquote($table)) . '&amp;zero_rows=' . urlencode(sprintf($strTableHasBeenDropped, htmlspecialchars($table)));
$att7 = 'class="drop" onclick="return confirmLink(this, \'DROP TABLE ' . PMA_jsFormat($table) . '\')"';
/**
 * Displays links
 */
if ($cfg['LightTabs']) {
    echo '&nbsp;';
} else {
    echo '<table border="0" cellspacing="0" cellpadding="3" width="100%" class="tabs">' . "\n" . '    <tr>' . "\n" . '        <td width="8">&nbsp;</td>';
}
echo PMA_printTab($strStructure, 'tbl_properties_structure.php', $url_query) . PMA_printTab($strBrowse, $lnk2, $arg2) . PMA_printTab($strSQL, 'tbl_properties.php', $url_query) . PMA_printTab($strSearch, $lnk4, $arg4) . PMA_printTab($strInsert, 'tbl_change.php', $url_query) . PMA_printTab($strExport, 'tbl_properties_export.php', $url_query . '&amp;single_table=true') . PMA_printTab($strOperations, 'tbl_properties_operations.php', $url_query) . PMA_printTab($strEmpty, $lnk6, $arg6, $att6) . PMA_printTab($strDrop, 'sql.php', $arg7, $att7) . "\n";
if (!$cfg['LightTabs']) {
    echo '</tr></table>';
} else {
    echo '<br />';
}
?>
<br />
    $lnk5 = '';
}
/**
 * Displays tab links
 */
if ($cfg['LightTabs']) {
    echo '&nbsp;';
} else {
    echo '<table border="0" cellspacing="0" cellpadding="3" width="100%" class="tabs">
    <tr>
        <td width="8">&nbsp;</td>';
}
echo PMA_printTab($strStructure, 'db_details_structure.php', $url_query);
echo PMA_printTab($strSQL, 'db_details.php', $url_query . '&amp;db_query_force=1');
echo PMA_printTab($strExport, $lnk3, $arg3);
echo PMA_printTab($strSearch, $lnk4, $arg4);
echo PMA_printTab($strQBE, $num_tables > 0 ? 'db_details_qbe.php' : '', $url_query);
// Displays drop link
if ($lnk5) {
    echo PMA_printTab($strDrop, $lnk5, $arg5, $att5);
}
// end if
echo "\n";
if (!$cfg['LightTabs']) {
    echo '</tr></table>';
} else {
    echo '<br />';
}
?>
<br />