⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 queryframe.php

📁 WEBGAME源码,有架设说明,只是非常简单
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<?php/* $Id: queryframe.php,v 2.30.2.1 2005/10/21 01:27:32 lem9 Exp $ */// vim: expandtab sw=4 ts=4 sts=4:/** * Gets the variables sent to this script, retains the db name that may have * been defined as startup option and include a core library */require_once('./libraries/grab_globals.lib.php');if (!empty($db)) {    $db_start = $db;}/** * Gets a core script and starts output buffering work */require_once('./libraries/common.lib.php');require_once('./libraries/bookmark.lib.php');require_once('./libraries/ob.lib.php');if ($cfg['OBGzip']) {    $ob_mode = PMA_outBufferModeGet();    if ($ob_mode) {        PMA_outBufferPre($ob_mode);    }}// security fix:if (isset($hash)) {   $hash = PMA_sanitize($hash);}// garvin: For re-usability, moved http-headers// to a seperate file. It can now be included by header.inc.php,// queryframe.php, querywindow.php.require_once('./libraries/header_http.inc.php');/** * Displays the frame */// Gets the font sizes to usePMA_setFontSizes();/** * Relations */require_once('./libraries/relation.lib.php');$cfgRelation = PMA_getRelationsParam();echo "<?xml version=\"1.0\" encoding=\"" . $GLOBALS['charset'] . "\"?".">"; // remove vertical scroll bar bug in ie?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $available_languages[$lang][2]; ?>" lang="<?php echo $available_languages[$lang][2]; ?>" dir="<?php echo $text_dir; ?>"><head><title>phpMyAdmin</title><meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" /><base<?php if (!empty($cfg['PmaAbsoluteUri'])) echo ' href="' . $cfg['PmaAbsoluteUri'] . '"'; ?> /><link rel="stylesheet" type="text/css" href="./css/phpmyadmin.css.php?<?php echo PMA_generate_common_url(); ?>&amp;js_frame=left&amp;num_dbs=0" /><?phpif ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) {?><script type="text/javascript" language="javascript"><!--var querywindow = '';function open_querywindow(url) {    if (!querywindow.closed && querywindow.location) {        querywindow.focus();    } else {        querywindow=window.open(url + '&db=' + document.queryframeform.db.value + '&table=' + document.queryframeform.table.value, '','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=yes,resizable=yes,width=<?php echo $cfg['QueryWindowWidth']; ?>,height=<?php echo $cfg['QueryWindowHeight']; ?>');    }    if (!querywindow.opener) {        querywindow.opener = blank;    }    if (window.focus) {        querywindow.focus();    }    return false;}/**  * function resizeRowsLeft()  * added 2004-07-20 by Michael Keck <mail@michaelkeck.de>  *                  - this function checks the complete frameset of  *                    index.php (parent.frames)  *                  - gets the offsetHeight of qfcontainer  *                  - sets a new frameset.rows - definition for the  *                    frameset 'leftFrameset' in 'index.php' dynamic.  * this script was tested on  *   IE 6, Opera 7.53, Netsacpe 7.1 and Firefox 0.9  *   and should work on all other DOM-Browsers and old IE-Browsers.  *   It will never work on Netscape smaller Version 6 and IE smaller Version 4.  * Please give me feedback if any browser doesn't work with this script  *   mailto:mail@michaelkeck.de?subject=resizeFrames - Browser: [the browser]**/function resizeRowsLeft() {    if (document.getElementById('qfcontainer')) { // dom browsers        // get the height of the div-element 'qfcontainer'        // we must add 10 (px) for framespacing        newHeight = document.getElementById('qfcontainer').offsetHeight+10;        // check if the frameset exists        // please see index.php and check the frameset-definitions        if (parent.document.getElementById('mainFrameset') && parent.document.getElementById('leftFrameset')) {            parent.document.getElementById('leftFrameset').rows=newHeight+',*';        }    } else {        if (document.all) { // older ie-browsers            // get the height of the div-element 'qfcontainer'            // we must add 10 (px) for framespacing            newHeight=document.all('qfcontainer').offsetHeight+10;            // check if the frameset exists            // please see index.php and check the frameset-definitions            if (parent.leftFrameset) {                parent.leftFrameset.rows=newHeight+',*';            }        }    }}//--></script><?php    // setup the onload handler for resizing frames    $js_frame_onload=' onload="resizeRowsLeft();"';}if ($cfg['QueryFrame']) {?><script type="text/javascript" language="javascript"><!--// added 2004-09-16 by Michael Keck (mkkeck)//                  bug: #1027321//                       drop-down databases list keep focus on database change// modified 2004-11-06: bug #1046434 (Light mode does not work)var focus_removed = false;function remove_focus_select() {    focus_removed = false;    set_focus_to_nav();}function set_focus_to_nav() {    if (typeof(parent.frames.nav)!='undefined' && focus_removed!=true) {        parent.frames.nav.focus();        focus_removed=true;    } else {        focus_removed=false;        setTimeout("set_focus_to_nav();",500);    }}//--></script><?php}?></head><body id="body_queryFrame" bgcolor="<?php echo $cfg['LeftBgColor']; ?>"<?php echo ((isset($js_frame_onload) && $js_frame_onload!='') ? $js_frame_onload : ''); ?>><div id="qfcontainer"><div align="center"><?phpif ($cfg['LeftDisplayLogo']) {    echo '<!-- phpMyAdmin logo -->' . "\n";    echo '    <a href="http://www.phpmyadmin.net/" target="_blank">';    if (@file_exists($GLOBALS['pmaThemeImage'] . 'logo_left.png')) {        echo '<img src="' . $GLOBALS['pmaThemeImage'] . 'logo_left.png" alt="phpMyAdmin" border="0" />';    } else if (@file_exists($GLOBALS['pmaThemeImage'] . 'pma_logo2.png')) {        echo '<img src="' . $GLOBALS['pmaThemeImage'] . 'pma_logo2.png" alt="phpMyAdmin" border="0" />';    } else {        echo 'phpMyAdmin';    }    echo '</a>' . "\n";    echo '    <hr id="hr_first" />' . "\n";} // end of display logo?><!-- Link to the welcome page --><?php    echo '    <a class="item" href="main.php?' . PMA_generate_common_url() . '" target="phpmain' . $hash . '">' . "\n"       . ($cfg['MainPageIconic']            ? '        <img src="' . $pmaThemeImage . 'b_home.png" width="16" height="16" border="0" hspace="2" alt="' . $strHome . '" title="' . $strHome . '"'                    .' onmouseover="this.style.backgroundColor=\'#ffffff\';" onmouseout="this.style.backgroundColor=\'\';" align="middle" />'            : '        <b>' . $strHome . '</b>') . "\n"        . '    </a>' . "\n";    // if we have chosen server    if ($server != 0) {        // Logout for advanced authentication        if ($cfg['Server']['auth_type'] != 'config') {            echo ($cfg['MainPageIconic'] ? '' : ' - ');            echo '<a class="item" href="index.php?' . PMA_generate_common_url() . '&amp;old_usr=' . urlencode($PHP_AUTH_USER) . '" target="_parent">' . "\n"               . ($cfg['MainPageIconic']                    ? '<img src="' . $pmaThemeImage . 's_loggoff.png" width="16" height="16" border="0" hspace="2" alt="' . $strLogout . '" title="' . $strLogout . '"'                            .' onmouseover="this.style.backgroundColor=\'#ffffff\';" onmouseout="this.style.backgroundColor=\'\';" align="middle" />'                    : '<b>' . $strLogout . '</b>')  . "\n"               . '</a>' . "\n";        } // end if ($cfg['Server']['auth_type'] != 'config'        if ($cfg['QueryFrame']) {            $anchor = 'querywindow.php?' . PMA_generate_common_url('', '');                        if ($cfg['MainPageIconic']) {                $query_frame_link_text = '<img src="' . $pmaThemeImage . 'b_selboard.png" border="0" hspace="1" width="16" height="16" alt="' . $strQueryFrame . '" title="' . $strQueryFrame . '"'                                       .' onmouseover="this.style.backgroundColor=\'#ffffff\';" onmouseout="this.style.backgroundColor=\'\';" align="middle" />';            } else {                echo '<br />' . "\n";                $query_frame_link_text = '<b>' . $strQueryFrame . '</b>';            }?>    <a href="<?php echo $anchor; ?>&amp;no_js=true" target="phpmain<?php echo $hash; ?>" class="item"       <?php echo ($cfg['QueryFrameJS'] ? 'onclick="javascript:open_querywindow(\'' . $anchor . '\'); return false;"' : ''); ?>>        <?php echo $query_frame_link_text; ?>    </a><?php        } // end if ($cfg['QueryFrame'])    } // end if ($server != 0)if ($cfg['MainPageIconic']) {    echo '    <a href="Documentation.html" target="documentation" class="item">' . "\n"       . '        <img src="' . $pmaThemeImage . 'b_docs.png" border="0" hspace="1" width="16" height="16" alt="' . $strPmaDocumentation . '" title="' . $strPmaDocumentation . '"'       . ' onmouseover="this.style.backgroundColor=\'#ffffff\';" onmouseout="this.style.backgroundColor=\'\';" align="middle" />' . "\n"       . '    </a>' . "\n";    echo '    <a href="' . $cfg['MySQLManualBase'] . '" target="documentation" class="item">' . "\n"       . '        <img src="' . $pmaThemeImage . 'b_sqlhelp.png" border="0" hspace="1" width="16" height="16" alt="MySQL - ' . $strDocu . '" title="MySQL - ' . $strDocu . '"'       .' onmouseover="this.style.backgroundColor=\'#ffffff\';" onmouseout="this.style.backgroundColor=\'\';" align="middle" />' . "\n"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -