Documentation TYPO3 par Ameos

queryframe.php

00001 <?php
00002 /* $Id: queryframe.php,v 2.2 2003/11/26 22:52:24 rabus Exp $ */
00003 // vim: expandtab sw=4 ts=4 sts=4:
00004 
00005 
00010 require_once('./libraries/grab_globals.lib.php');
00011 if (!empty($db)) {
00012     $db_start = $db;
00013 }
00014 
00015 
00019 require_once('./libraries/common.lib.php');
00020 require_once('./libraries/ob.lib.php');
00021 if ($cfg['OBGzip']) {
00022     $ob_mode = PMA_outBufferModeGet();
00023     if ($ob_mode) {
00024         PMA_outBufferPre($ob_mode);
00025     }
00026 }
00027 
00028 // garvin: For re-usability, moved http-headers
00029 // to a seperate file. It can now be included by header.inc.php,
00030 // queryframe.php, querywindow.php.
00031 
00032 require_once('./libraries/header_http.inc.php');
00033 
00037 // Gets the font sizes to use
00038 PMA_setFontSizes();
00039 ?>
00040 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
00041     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
00042 <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; ?>">
00043 
00044 <head>
00045     <title>phpMyAdmin</title>
00046     <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
00047     <base<?php if (!empty($cfg['PmaAbsoluteUri'])) echo ' href="' . $cfg['PmaAbsoluteUri'] . '"'; ?> />
00048     <link rel="stylesheet" type="text/css" href="./css/phpmyadmin.css.php?lang=<?php echo $lang; ?>&amp;js_frame=left&num_dbs=0" />
00049 <?php
00050 if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) {
00051 ?>
00052 <script type="text/javascript" language="javascript">
00053 var querywindow = '';
00054 
00055 function open_querywindow(url) {
00056 
00057     if (!querywindow.closed && querywindow.location) {
00058         querywindow.focus();
00059     } else {
00060         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']; ?>');
00061     }
00062 
00063     if (!querywindow.opener) {
00064        querywindow.opener = self;
00065     }
00066 
00067     if (window.focus) {
00068         querywindow.focus();
00069     }
00070 
00071     return false;
00072 }
00073 </script>
00074 <?php
00075 }
00076 ?>
00077 </head>
00078 
00079 <body bgcolor="<?php echo $cfg['LeftBgColor']; ?>" style="margin-left: 0px; margin-top: 5px; margin-right: 0px; margin-bottom: 0px">
00080 <form name="queryframeform" action="queryframe.php" method="get">
00081 <input type="hidden" name="db" value="" />
00082 <input type="hidden" name="table" value="" />
00083 <input type="hidden" name="framename" value="queryframe" />
00084 </form>
00085 
00086 <?php
00087 $anchor = 'querywindow.php?' . PMA_generate_common_url('', '');
00088 if ($cfg['QueryFrameJS']) {
00089     $href = $anchor;
00090     $target = '';
00091     $onclick = 'onClick="javascript:open_querywindow(this.href); return false;"';
00092 } else {
00093     $href = $anchor;
00094     $target = 'target="phpmain' . $hash . '"';
00095     $onclick = '';
00096 }
00097 ?>
00098 <center>
00099 <script type="text/javascript">
00100 document.writeln('<a href="<?php echo $href; ?>" <?php echo $target . ' ' . $onclick; ?>><?php echo addslashes($strQueryFrame); ?></a>');
00101 </script>
00102 <noscript>
00103 <a href="<?php echo $href; ?>&amp;no_js=true" <?php echo $target . ' ' . $onclick; ?> target="phpmain<?php echo $hash; ?>"><?php echo $strQueryFrame; ?></a>
00104 </noscript>
00105 </center>
00106 
00107 <form name="hashform" action="queryframe.php">
00108     <input type="hidden" name="hash" value="<?php echo $hash; ?>">
00109 </form>
00110 </body>
00111 </html>
00112 
00113 <?php
00117 if (isset($dbh) && $dbh) {
00118     @mysql_close($dbh);
00119 }
00120 if (isset($userlink) && $userlink) {
00121     @mysql_close($userlink);
00122 }
00123 
00124 
00128 if (isset($cfg['OBGzip']) && $cfg['OBGzip']
00129     && isset($ob_mode) && $ob_mode) {
00130      PMA_outBufferPost($ob_mode);
00131 }
00132 ?>


Généré par Les experts TYPO3 avec  doxygen 1.4.6