print view for SQL results
This commit is contained in:
@@ -7,6 +7,9 @@ $Source$
|
||||
|
||||
2002-05-31 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||
* lang/german.inc.php3: Small corrections.
|
||||
* sql.php3, header_printview.inc.php3, libraries/display_tbl.inc.php3,
|
||||
lang/*.inc.php3: Implemented one part of feature #472038:
|
||||
Print view for SQL query results.
|
||||
|
||||
2002-05-30 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||
* lang/albanian.inc.php3: Updates, thanks again to
|
||||
|
78
header_printview.inc.php3
Normal file
78
header_printview.inc.php3
Normal file
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
/**
|
||||
* Gets a core script and starts output buffering work
|
||||
*/
|
||||
require('./libraries/common.lib.php3');
|
||||
require('./libraries/ob.lib.php3');
|
||||
if ($cfg['OBGzip']) {
|
||||
$ob_mode = PMA_outBufferModeGet();
|
||||
if ($ob_mode) {
|
||||
PMA_outBufferPre($ob_mode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sends http headers
|
||||
*/
|
||||
// Don't use cache (required for Opera)
|
||||
$now = gmdate('D, d M Y H:i:s') . ' GMT';
|
||||
header('Expires: 0'); // rfc2616 - Section 14.21
|
||||
header('Last-Modified: ' . $now);
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
|
||||
header('Pragma: no-cache'); // HTTP/1.0
|
||||
// Define the charset to be used
|
||||
header('Content-Type: text/html; charset=' . $charset);
|
||||
|
||||
|
||||
/**
|
||||
* Sends the beginning of the html page then returns to the calling script
|
||||
*/
|
||||
// Gets the font sizes to use
|
||||
PMA_setFontSizes();
|
||||
// Defines the cell alignment values depending on text direction
|
||||
if ($text_dir == 'ltr') {
|
||||
$cell_align_left = 'left';
|
||||
$cell_align_right = 'right';
|
||||
} else {
|
||||
$cell_align_left = 'right';
|
||||
$cell_align_right = 'left';
|
||||
}
|
||||
?>
|
||||
<!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><?php echo $strSQLResult; ?> - phpMyAdmin <?php echo PMA_VERSION ?></title>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
body {font-family: <?php echo $right_font_family; ?>; font-size: <?php echo $font_size; ?>; color: #000000; background-color: #ffffff}
|
||||
h1 {font-family: <?php echo $right_font_family; ?>; font-size: <?php echo $font_bigger; ?>; font-weight: bold}
|
||||
table {border-width:1px; border-color:#000000; border-style:solid; border-collapse:collapse; border-spacing:0}
|
||||
th {font-family: <?php echo $right_font_family; ?>; font-size: <?php echo $font_size; ?>; font-weight: bold; color: #000000; background-color: #ffffff; border-width:1px; border-color:#000000; border-style:solid; padding:2px}
|
||||
td {font-family: <?php echo $right_font_family; ?>; font-size: <?php echo $font_size; ?>; color: #000000; background-color: #ffffff; border-width:1px; border-color:#000000; border-style:solid; padding:2px}
|
||||
//-->
|
||||
</style>
|
||||
</head>
|
||||
|
||||
|
||||
<body bgcolor="#ffffff">
|
||||
<h1><?php echo $strSQLResult; ?></h1>
|
||||
<p>
|
||||
<b><?php echo $strHost; ?>:</b> <?php echo $cfg['Server']['host'] . ((!empty($cfg['Server']['port'])) ? ':' . $cfg['Server']['port'] : ''); ?><br />
|
||||
<b><?php echo $strDatabase; ?>:</b> <?php echo htmlspecialchars($db); ?><br />
|
||||
<b><?php echo $strGenTime; ?>:</b> <?php echo PMA_localisedDate(); ?><br />
|
||||
<b><?php echo $strGenBy; ?>:</b> phpMyAdmin <?php echo PMA_VERSION; ?><br />
|
||||
<b><?php echo $strSQLQuery; ?>:</b> <?php echo htmlspecialchars($full_sql_query); ?>;
|
||||
</p>
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Sets a variable to remember headers have been sent
|
||||
*/
|
||||
$is_header_sent = TRUE;
|
||||
?>
|
@@ -389,4 +389,6 @@ $strYes = ' Po ';
|
||||
$strZip = '"kompresuar me zip"';
|
||||
|
||||
// To translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -390,4 +390,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -388,4 +388,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -389,4 +389,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -389,4 +389,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -384,4 +384,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -390,4 +390,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -390,4 +390,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -389,4 +389,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -389,4 +389,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -389,4 +389,6 @@ $strZip = '"zazipov
|
||||
|
||||
// To translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -389,4 +389,6 @@ $strZip = '"zazipov
|
||||
|
||||
// To translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -383,4 +383,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -383,4 +383,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -140,6 +140,7 @@ $strFullText = 'Full Texts';
|
||||
$strFunction = 'Function';
|
||||
|
||||
$strGenTime = 'Generation Time';
|
||||
$strGenBy = 'Generated by';
|
||||
$strGo = 'Go';
|
||||
$strGrants = 'Grants';
|
||||
$strGzip = '"gzipped"';
|
||||
@@ -327,6 +328,7 @@ $strSpaceUsage = 'Space usage';
|
||||
$strSplitWordsWithSpace = 'Words are splitted by a space character (" ").';
|
||||
$strSQL = 'SQL';
|
||||
$strSQLQuery = 'SQL-query';
|
||||
$strSQLResult = 'SQL result';
|
||||
$strStatement = 'Statements';
|
||||
$strStrucCSV = 'CSV data';
|
||||
$strStrucData = 'Structure and data';
|
||||
|
@@ -384,4 +384,6 @@ $strZip = '"zipitud"';
|
||||
|
||||
// To translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -388,4 +388,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -140,6 +140,7 @@ $strFullText = 'Textes complets';
|
||||
$strFunction = 'Fonction';
|
||||
|
||||
$strGenTime = 'G<>n<EFBFBD>r<EFBFBD> le ';
|
||||
$strGenBy = 'G<>n<EFBFBD>r<EFBFBD> par';
|
||||
$strGo = 'Ex<45>cuter';
|
||||
$strGrants = 'Autres privil<69>ges';
|
||||
$strGzip = '"gzipp<70>"';
|
||||
@@ -327,6 +328,7 @@ $strSpaceUsage = 'Espace utilis
|
||||
$strSplitWordsWithSpace = 'S<>parer les mots par un espace (" ").';
|
||||
$strSQL = 'SQL';
|
||||
$strSQLQuery = 'requ<71>te SQL';
|
||||
$strSQLResult = 'Resultat de la requ<71>te SQL';
|
||||
$strStatement = 'Information';
|
||||
$strStrucCSV = 'Donn<6E>es CSV';
|
||||
$strStrucData = 'Structure et donn<6E>es';
|
||||
|
@@ -388,4 +388,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -347,23 +347,6 @@ $strOptions = 'Options'; //to translate
|
||||
$strStructure = 'Structure'; //to translate
|
||||
$strRelationView = 'Relation view'; //to translate
|
||||
$strSQL = 'SQL'; //to translate
|
||||
|
||||
// For indexes
|
||||
$strAddToIndex = 'Add to index %s column(s)';
|
||||
$strCantRenameIdxToPrimary = 'Can\'t rename index to PRIMARY!';
|
||||
$strCardinality = 'Cardinality';
|
||||
$strCreateIndex = 'Create an index on %s columns';
|
||||
$strCreateIndexTopic = 'Create a new index';
|
||||
$strIdxFulltext = 'Fulltext';
|
||||
$strIndexHasBeenDropped = 'Index %s has been dropped';
|
||||
$strIndexName = 'Index name :';
|
||||
$strIndexType = 'Index type :';
|
||||
$strModifyIndexTopic = 'Modify an index';
|
||||
$strNoIndex = 'No index defined!';
|
||||
$strNoIndexPartsDefined = 'No index parts defined!';
|
||||
$strPrimaryKeyHasBeenDropped = 'The primary key has been dropped';
|
||||
$strPrimaryKeyName = 'The name of the primary key must be... PRIMARY!';
|
||||
$strPrimaryKeyWarning = '("PRIMARY" <b>must</b> be the name of and <b>only of</b> a primary key!)';
|
||||
$strLinkNotFound = 'Link not found'; //to translate
|
||||
$strConfigureTableCoord = 'Please configure the coordinates for table %s'; //to translate
|
||||
$strScaleFactorSmall = 'The scale factor is too small to fit the schema on one page'; //to translate
|
||||
@@ -393,4 +376,23 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
|
||||
// For indexes
|
||||
$strAddToIndex = 'Add to index %s column(s)';
|
||||
$strCantRenameIdxToPrimary = 'Can\'t rename index to PRIMARY!';
|
||||
$strCardinality = 'Cardinality';
|
||||
$strCreateIndex = 'Create an index on %s columns';
|
||||
$strCreateIndexTopic = 'Create a new index';
|
||||
$strIdxFulltext = 'Fulltext';
|
||||
$strIndexHasBeenDropped = 'Index %s has been dropped';
|
||||
$strIndexName = 'Index name :';
|
||||
$strIndexType = 'Index type :';
|
||||
$strModifyIndexTopic = 'Modify an index';
|
||||
$strNoIndex = 'No index defined!';
|
||||
$strNoIndexPartsDefined = 'No index parts defined!';
|
||||
$strPrimaryKeyHasBeenDropped = 'The primary key has been dropped';
|
||||
$strPrimaryKeyName = 'The name of the primary key must be... PRIMARY!';
|
||||
$strPrimaryKeyWarning = '("PRIMARY" <b>must</b> be the name of and <b>only of</b> a primary key!)';
|
||||
?>
|
||||
|
@@ -85,7 +85,7 @@ $strCreateNewTable = 'Neue Tabelle in Datenbank %s erstellen';
|
||||
$strCriteria = 'Kriterium';
|
||||
|
||||
$strData = 'Daten';
|
||||
$strDatabase = 'Datenbank ';
|
||||
$strDatabase = 'Datenbank';
|
||||
$strDatabaseHasBeenDropped = 'Datenbank %s wurde gel<65>scht.';
|
||||
$strDatabases = 'Datenbanken';
|
||||
$strDatabasesStats = 'Statistiken <20>ber alle Datenbanken';
|
||||
@@ -140,6 +140,7 @@ $strFullText = 'vollst
|
||||
$strFunction = 'Funktion';
|
||||
|
||||
$strGenTime = 'Erstellungszeit';
|
||||
$strGenBy = 'Erstellt von';
|
||||
$strGo = 'OK';
|
||||
$strGrants = 'Rechte';
|
||||
$strGzip = '"GZip komprimiert"';
|
||||
@@ -327,6 +328,7 @@ $strSpaceUsage = 'Speicherplatzverbrauch';
|
||||
$strSplitWordsWithSpace = 'Die W<>rter werden durch Leerzeichen (" ") getrennt.';
|
||||
$strSQL = 'SQL';
|
||||
$strSQLQuery = 'SQL-Befehl';
|
||||
$strSQLResult = 'SQL-Abfrageergebnis';
|
||||
$strStatement = 'Angaben';
|
||||
$strStrucCSV = 'CSV-Daten';
|
||||
$strStrucData = 'Struktur und Daten';
|
||||
|
@@ -385,4 +385,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -384,4 +384,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -384,4 +384,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -385,4 +385,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -390,5 +390,7 @@ $strYes = ' Si ';
|
||||
$strZip = '"compresso con zip"';
|
||||
|
||||
// To translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
|
||||
?>
|
||||
|
@@ -393,4 +393,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -393,4 +393,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -385,4 +385,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -388,4 +388,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -384,4 +384,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -388,4 +388,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -384,4 +384,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -391,4 +391,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -385,4 +385,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -389,4 +389,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -389,4 +389,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -390,4 +390,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -387,4 +387,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -387,4 +387,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -382,4 +382,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -384,4 +384,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -391,4 +391,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -384,4 +384,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -384,4 +384,6 @@ $strExplain = 'Explain SQL Code'; //to translate
|
||||
$strPhp = 'Create PHP Code'; //to translate
|
||||
$strNoPhp = 'without PHP Code'; //to translate
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s'; //to translate
|
||||
$strGenBy = 'Generated by'; //to translate
|
||||
$strSQLResult = 'SQL result'; //to translate
|
||||
?>
|
||||
|
@@ -64,14 +64,26 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
|
||||
$do_display['ins_row'] = (string) $the_disp_mode[6];
|
||||
$do_display['bkm_form'] = (string) $the_disp_mode[7];
|
||||
$do_display['text_btn'] = (string) $the_disp_mode[8];
|
||||
$do_display['pview_lnk'] = (string) $the_disp_mode[9];
|
||||
|
||||
// 2. Display mode is not "false for all elements" -> updates the
|
||||
// display mode
|
||||
if ($the_disp_mode != 'nnnn00000') {
|
||||
if ($the_disp_mode != 'nnnn000000') {
|
||||
// 2.0 Print view -> set all elements to FALSE!
|
||||
if (isset($GLOBALS['printview']) && $GLOBALS['printview'] == '1') {
|
||||
$do_display['edit_lnk'] = 'nn'; // no edit link
|
||||
$do_display['del_lnk'] = 'nn'; // no delete link
|
||||
$do_display['sort_lnk'] = (string) '0';
|
||||
$do_display['nav_bar'] = (string) '0';
|
||||
$do_display['ins_row'] = (string) '0';
|
||||
$do_display['bkm_form'] = (string) '0';
|
||||
$do_display['text_btn'] = (string) '0';
|
||||
$do_display['pview_lnk'] = (string) '0';
|
||||
}
|
||||
// 2.1 Statement is a "SELECT COUNT", a
|
||||
// "CHECK/ANALYZE/REPAIR/OPTIMIZE", an "EXPLAIN" one or
|
||||
// contains a "PROC ANALYSE" part
|
||||
if ($GLOBALS['is_count'] || $GLOBALS['is_analyse'] || $GLOBALS['is_maint'] || $GLOBALS['is_explain']) {
|
||||
else if ($GLOBALS['is_count'] || $GLOBALS['is_analyse'] || $GLOBALS['is_maint'] || $GLOBALS['is_explain']) {
|
||||
$do_display['edit_lnk'] = 'nn'; // no edit link
|
||||
$do_display['del_lnk'] = 'nn'; // no delete link
|
||||
$do_display['sort_lnk'] = (string) '0';
|
||||
@@ -79,6 +91,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
|
||||
$do_display['ins_row'] = (string) '0';
|
||||
$do_display['bkm_form'] = (string) '1';
|
||||
$do_display['text_btn'] = (string) '0';
|
||||
$do_display['pview_lnk'] = (string) '1';
|
||||
}
|
||||
// 2.2 Statement is a "SHOW..."
|
||||
else if ($GLOBALS['is_show']) {
|
||||
@@ -99,6 +112,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
|
||||
$do_display['ins_row'] = (string) '0';
|
||||
$do_display['bkm_form'] = (string) '1';
|
||||
$do_display['text_btn'] = (string) '0';
|
||||
$do_display['pview_lnk'] = (string) '1';
|
||||
}
|
||||
// 2.3 Other statements (ie "SELECT" ones) -> updates
|
||||
// $do_display['edit_lnk'], $do_display['del_lnk'] and
|
||||
@@ -130,6 +144,8 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
|
||||
break;
|
||||
}
|
||||
} // end if (2.3.2)
|
||||
// 2.3.3 Always display print view link
|
||||
$do_display['pview_lnk'] = (string) '1';
|
||||
$prev_table = $fields_meta[$i]->table;
|
||||
} // end for
|
||||
} // end if..elseif...else (2.1 -> 2.3)
|
||||
@@ -765,11 +781,16 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
|
||||
echo '</tr>' . "\n";
|
||||
} // end if
|
||||
|
||||
if (isset($GLOBALS['printview']) && ($GLOBALS['printview'] == '1')) {
|
||||
$bgcolor = '#ffffff';
|
||||
} else {
|
||||
$bgcolor = ($row_no % 2) ? $GLOBALS['cfg']['BgcolorOne'] : $GLOBALS['cfg']['BgcolorTwo'];
|
||||
}
|
||||
|
||||
if ($disp_direction == 'horizontal') {
|
||||
// loic1: pointer code part
|
||||
$on_mouse = '';
|
||||
if (!isset($GLOBALS['printview']) || ($GLOBALS['printview'] != '1')) {
|
||||
if ($GLOBALS['cfg']['BrowsePointerColor'] != '') {
|
||||
$on_mouse = ' onmouseover="setPointer(this, ' . $row_no . ', \'over\', \'' . $bgcolor . '\', \'' . $GLOBALS['cfg']['BrowsePointerColor'] . '\', \'' . $GLOBALS['cfg']['BrowseMarkerColor'] . '\')"'
|
||||
. ' onmouseout="setPointer(this, ' . $row_no . ', \'out\', \'' . $bgcolor . '\', \'' . $GLOBALS['cfg']['BrowsePointerColor'] . '\', \'' . $GLOBALS['cfg']['BrowseMarkerColor'] . '\')"';
|
||||
@@ -777,6 +798,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
|
||||
if ($GLOBALS['cfg']['BrowseMarkerColor'] != '') {
|
||||
$on_mouse .= ' onmousedown="setPointer(this, ' . $row_no . ', \'click\', \'' . $bgcolor . '\', \'' . $GLOBALS['cfg']['BrowsePointerColor'] . '\', \'' . $GLOBALS['cfg']['BrowseMarkerColor'] . '\')"';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr<?php echo $on_mouse; ?>>
|
||||
<?php
|
||||
@@ -1322,7 +1344,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
|
||||
// 2. ----- Displays the top of the page -----
|
||||
|
||||
// 2.1 Displays a messages with position informations
|
||||
if ($is_display['nav_bar'] == '1' && isset($pos_next)) {
|
||||
if ($is_display['nav_bar'] == '1' && isset($pos_next) && (!isset($GLOBALS['printview']) || $GLOBALS['printview'] != '1')) {
|
||||
if (isset($unlim_num_rows) && $unlim_num_rows != $total) {
|
||||
$selectstring = ', ' . $unlim_num_rows . ' ' . $GLOBALS['strSelectNumRows'];
|
||||
} else {
|
||||
@@ -1332,7 +1354,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
|
||||
? $total - 1
|
||||
: $pos_next - 1;
|
||||
PMA_showMessage($GLOBALS['strShowingRecords'] . " $pos - $last_shown_rec ($total " . $GLOBALS['strTotal'] . $selectstring . ')');
|
||||
} else {
|
||||
} else if (!isset($GLOBALS['printview']) || $GLOBALS['printview'] != '1') {
|
||||
PMA_showMessage($GLOBALS['strSQLQuery']);
|
||||
}
|
||||
|
||||
@@ -1343,7 +1365,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
|
||||
if ($is_display['nav_bar'] == '1') {
|
||||
PMA_displayTableNavigation($pos_next, $pos_prev, $encoded_sql_query);
|
||||
echo "\n";
|
||||
} else {
|
||||
} else if (!isset($GLOBALS['printview']) || $GLOBALS['printview'] != '1') {
|
||||
echo "\n" . '<br /><br />' . "\n";
|
||||
}
|
||||
|
||||
@@ -1398,7 +1420,6 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
|
||||
unset($vertical_display);
|
||||
?>
|
||||
</table>
|
||||
<br />
|
||||
<?php
|
||||
|
||||
echo "\n";
|
||||
@@ -1406,9 +1427,10 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
|
||||
// 4. ----- Displays the navigation bar at the bottom if required -----
|
||||
|
||||
if ($is_display['nav_bar'] == '1') {
|
||||
echo '<br />' . "\n";
|
||||
PMA_displayTableNavigation($pos_next, $pos_prev, $encoded_sql_query);
|
||||
} else {
|
||||
echo "\n" . '<br />' . "\n";
|
||||
} else if (!isset($GLOBALS['printview']) || $GLOBALS['printview'] != '1') {
|
||||
echo "\n" . '<br /><br />' . "\n";
|
||||
}
|
||||
} // end of the 'PMA_displayTable()' function
|
||||
|
||||
|
42
sql.php3
42
sql.php3
@@ -388,9 +388,13 @@ else {
|
||||
if (isset($show_query)) {
|
||||
unset($show_query);
|
||||
}
|
||||
if (isset($printview) && $printview == '1') {
|
||||
include('./header_printview.inc.php3');
|
||||
} else {
|
||||
$js_to_run = 'functions.js';
|
||||
include('./header.inc.php3');
|
||||
include('./libraries/bookmark.lib.php3');
|
||||
}
|
||||
|
||||
// Gets the list of fields properties
|
||||
while ($field = mysql_fetch_field($result)) {
|
||||
@@ -403,11 +407,14 @@ else {
|
||||
if (empty($disp_mode)) {
|
||||
// see the "PMA_setDisplayMode()" function in
|
||||
// libraries/display_tbl.lib.php3
|
||||
$disp_mode = 'urdr11110';
|
||||
$disp_mode = 'urdr111101';
|
||||
}
|
||||
PMA_displayTable($result, $disp_mode);
|
||||
mysql_free_result($result);
|
||||
|
||||
if ($disp_mode[6] == '1' || $disp_mode[9] =='1') {
|
||||
echo '<p>' . "\n";
|
||||
|
||||
// Displays "Insert a new row" link if required
|
||||
if ($disp_mode[6] == '1') {
|
||||
$lnk_goto = 'sql.php3'
|
||||
@@ -420,7 +427,7 @@ else {
|
||||
. '&disp_direction=' . $disp_direction
|
||||
. '&repeat_cells=' . $repeat_cells
|
||||
. '&sql_query=' . urlencode($sql_query);
|
||||
$url_query = 'lang=' . $lang
|
||||
$url_query = '?lang=' . $lang
|
||||
. '&server=' . $server
|
||||
. '&db=' . urlencode($db)
|
||||
. '&table=' . urlencode($table)
|
||||
@@ -431,13 +438,34 @@ else {
|
||||
. '&sql_query=' . urlencode($sql_query)
|
||||
. '&goto=' . urlencode($lnk_goto);
|
||||
|
||||
echo "\n\n";
|
||||
echo '<!-- Insert a new row -->' . "\n";
|
||||
echo '<p>' . "\n";
|
||||
echo ' <a href="tbl_change.php3?' . $url_query . '">' . $strInsertNewRow . '</a>' . "\n";
|
||||
echo '</p>' . "\n";
|
||||
echo ' <!-- Insert a new row -->' . "\n"
|
||||
. ' <a href="tbl_change.php3' . $url_query . '">' . $strInsertNewRow . '</a>';
|
||||
if ($disp_mode[9] == '1') {
|
||||
echo '<br />';
|
||||
}
|
||||
echo "\n";
|
||||
} // end insert new row
|
||||
|
||||
// Displays "print view" link if required
|
||||
if ($disp_mode[9] == '1') {
|
||||
$url_query = '?lang=' . $lang
|
||||
. '&server=' . $server
|
||||
. '&db=' . urlencode($db)
|
||||
. '&table=' . urlencode($table)
|
||||
. '&pos=' . $pos
|
||||
. '&session_max_rows=' . $session_max_rows
|
||||
. '&disp_direction=' . $disp_direction
|
||||
. '&repeat_cells=' . $repeat_cells
|
||||
. '&printview=1'
|
||||
. (($dontlimitchars == '1') ? '&dontlimitchars=1' : '')
|
||||
. '&sql_query=' . urlencode($sql_query);
|
||||
echo ' <!-- Print view -->' . "\n"
|
||||
. ' <a href="sql.php3' . $url_query . '" target="_blank">' . $strPrintView . '</a>' . "\n";
|
||||
}
|
||||
|
||||
echo '</p>' . "\n";
|
||||
}
|
||||
|
||||
// Bookmark Support if required
|
||||
if ($disp_mode[7] == '1'
|
||||
&& ($cfg['Bookmark']['db'] && $cfg['Bookmark']['table'] && empty($id_bookmark))
|
||||
|
Reference in New Issue
Block a user