LaTeX export improvements.
This commit is contained in:
@@ -11,7 +11,11 @@ $Source$
|
||||
libraries/charset_conversion.lib.php3, libraries/config_import.lib.php3:
|
||||
Merged patch #729514 - support for iconv parameters.
|
||||
* read_dump.php3, libraries/common.lib.php3: Merged patch #728928 - show
|
||||
multi statement query result.
|
||||
multi statement query result. Closes RFE #728833.
|
||||
* tbl_dump.php3, libraries/build_dump.lib.php3,
|
||||
libraries/display_export.lib.php3, lang/*: Merged patch #727027 - LaTeX
|
||||
export improvements. Now can export table structure and some other
|
||||
options. Closes RFE #718942.
|
||||
|
||||
2003-05-11 Marc Delisle <lem9@users.sourceforge.net>
|
||||
### 2.5.0 released
|
||||
|
@@ -638,4 +638,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -639,4 +639,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -630,4 +630,6 @@ $strZip = '"kompresuar me zip"';
|
||||
// To translate
|
||||
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -631,4 +631,6 @@ $strZip = '"kompresuar me zip"';
|
||||
// To translate
|
||||
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -653,4 +653,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -652,4 +652,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -652,4 +652,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -653,4 +653,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -645,4 +645,6 @@ $strXML = 'XML';//to translate
|
||||
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -646,4 +646,6 @@ $strXML = 'XML';//to translate
|
||||
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -645,4 +645,6 @@ $strXML = 'XML';//to translate
|
||||
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -626,4 +626,6 @@ $strZeroRemovesTheLimit = 'Nota: Establint aquestes opcions a 0 (zero) treu el l
|
||||
$strZip = '"comprimit amb zip"';
|
||||
// To translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -627,4 +627,6 @@ $strZeroRemovesTheLimit = 'Nota: Establint aquestes opcions a 0 (zero) treu el l
|
||||
$strZip = '"comprimit amb zip"';
|
||||
// To translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -650,4 +650,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -649,4 +649,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -630,4 +630,6 @@ $strYes = '是';
|
||||
$strZeroRemovesTheLimit = '注意:将这些选项设为 0 (零)将删除限制。';
|
||||
$strZip = '"zipped"';
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -629,4 +629,6 @@ $strYes = '
|
||||
$strZeroRemovesTheLimit = 'ע<>⣺<EFBFBD><E2A3BA><EFBFBD><EFBFBD>Щѡ<D0A9><D1A1><EFBFBD><EFBFBD>Ϊ 0 (<28><>)<29><>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD><EFBFBD>ơ<EFBFBD>';
|
||||
$strZip = '"zipped"';
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -651,4 +651,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -652,4 +652,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -651,4 +651,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -275,6 +275,7 @@ $strKeyname = 'Kl
|
||||
$strKill = 'Zab<61>t';
|
||||
|
||||
$strLaTeX = 'LaTeX';
|
||||
$strLaTeXOptions = 'Nastaven<65> exportu do LaTeXu';
|
||||
$strLandscape = 'Na <20><><EFBFBD>ku';
|
||||
$strLength = 'D<>lka';
|
||||
$strLengthSet = 'D<>lka/Mno<6E>ina*';
|
||||
@@ -442,6 +443,7 @@ $strReferentialIntegrity = 'Zkontrolovat integritu odkaz
|
||||
$strRelationNotWorking = 'N<>kter<65> funkce pro pr<70>ci s propojen<65>mi tabulkami byly vypnuty. %sZde%s zjist<73>te pro<72>.';
|
||||
$strRelationView = 'Zobrazit relace';
|
||||
$strRelationalSchema = 'Rela<6C>n<EFBFBD> sch<63>ma';
|
||||
$strRelations = 'Relace';
|
||||
$strReloadFailed = 'Znovuna<6E>ten<65> MySQL selhalo.';
|
||||
$strReloadMySQL = 'Znovuna<6E>ten<65> MySQL';
|
||||
$strReloadingThePrivileges = 'Znovuna<6E><61>t<EFBFBD>m opr<70>vn<76>n<EFBFBD>';
|
||||
|
@@ -276,6 +276,7 @@ $strKeyname = 'Klíčový název';
|
||||
$strKill = 'Zabít';
|
||||
|
||||
$strLaTeX = 'LaTeX';
|
||||
$strLaTeXOptions = 'Nastavení exportu do LaTeXu';
|
||||
$strLandscape = 'Na šířku';
|
||||
$strLength = 'Délka';
|
||||
$strLengthSet = 'Délka/Množina*';
|
||||
@@ -443,6 +444,7 @@ $strReferentialIntegrity = 'Zkontrolovat integritu odkazů:';
|
||||
$strRelationNotWorking = 'Některé funkce pro práci s propojenými tabulkami byly vypnuty. %sZde%s zjistíte proč.';
|
||||
$strRelationView = 'Zobrazit relace';
|
||||
$strRelationalSchema = 'Relační schéma';
|
||||
$strRelations = 'Relace';
|
||||
$strReloadFailed = 'Znovunačtení MySQL selhalo.';
|
||||
$strReloadMySQL = 'Znovunačtení MySQL';
|
||||
$strReloadingThePrivileges = 'Znovunačítám oprávnění';
|
||||
|
@@ -275,6 +275,7 @@ $strKeyname = 'Kl
|
||||
$strKill = 'Zab<61>t';
|
||||
|
||||
$strLaTeX = 'LaTeX';
|
||||
$strLaTeXOptions = 'Nastaven<65> exportu do LaTeXu';
|
||||
$strLandscape = 'Na <20><><EFBFBD>ku';
|
||||
$strLength = 'D<>lka';
|
||||
$strLengthSet = 'D<>lka/Mno<6E>ina*';
|
||||
@@ -442,6 +443,7 @@ $strReferentialIntegrity = 'Zkontrolovat integritu odkaz
|
||||
$strRelationNotWorking = 'N<>kter<65> funkce pro pr<70>ci s propojen<65>mi tabulkami byly vypnuty. %sZde%s zjist<73>te pro<72>.';
|
||||
$strRelationView = 'Zobrazit relace';
|
||||
$strRelationalSchema = 'Rela<6C>n<EFBFBD> sch<63>ma';
|
||||
$strRelations = 'Relace';
|
||||
$strReloadFailed = 'Znovuna<6E>ten<65> MySQL selhalo.';
|
||||
$strReloadMySQL = 'Znovuna<6E>ten<65> MySQL';
|
||||
$strReloadingThePrivileges = 'Znovuna<6E><61>t<EFBFBD>m opr<70>vn<76>n<EFBFBD>';
|
||||
|
@@ -646,4 +646,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -647,4 +647,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -641,4 +641,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -642,4 +642,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -269,6 +269,7 @@ $strKeyname = 'Keyname';
|
||||
$strKill = 'Kill';
|
||||
|
||||
$strLaTeX = 'LaTeX';
|
||||
$strLaTeXOptions = 'LaTeX options';
|
||||
$strLandscape = 'Landscape';
|
||||
$strLength = 'Length';
|
||||
$strLengthSet = 'Length/Values*';
|
||||
@@ -436,6 +437,7 @@ $strReferentialIntegrity = 'Check referential integrity:';
|
||||
$strRelationNotWorking = 'The additional Features for working with linked Tables have been deactivated. To find out why click %shere%s.';
|
||||
$strRelationView = 'Relation view';
|
||||
$strRelationalSchema = 'Relational schema';
|
||||
$strRelations = 'Relations';
|
||||
$strReloadFailed = 'MySQL reload failed.';
|
||||
$strReloadMySQL = 'Reload MySQL';
|
||||
$strReloadingThePrivileges = 'Reloading the privileges';
|
||||
|
@@ -270,6 +270,7 @@ $strKeyname = 'Keyname';
|
||||
$strKill = 'Kill';
|
||||
|
||||
$strLaTeX = 'LaTeX';
|
||||
$strLaTeXOptions = 'LaTeX options';
|
||||
$strLandscape = 'Landscape';
|
||||
$strLength = 'Length';
|
||||
$strLengthSet = 'Length/Values*';
|
||||
@@ -437,6 +438,7 @@ $strReferentialIntegrity = 'Check referential integrity:';
|
||||
$strRelationNotWorking = 'The additional Features for working with linked Tables have been deactivated. To find out why click %shere%s.';
|
||||
$strRelationView = 'Relation view';
|
||||
$strRelationalSchema = 'Relational schema';
|
||||
$strRelations = 'Relations';
|
||||
$strReloadFailed = 'MySQL reload failed.';
|
||||
$strReloadMySQL = 'Reload MySQL';
|
||||
$strReloadingThePrivileges = 'Reloading the privileges';
|
||||
|
@@ -626,4 +626,6 @@ $strZip = '"zipitud"';
|
||||
|
||||
$strPasswordChanged = 'Kasutaja %s parool vahetati <20>nnestunult.'; // to translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -627,4 +627,6 @@ $strZip = '"zipitud"';
|
||||
|
||||
$strPasswordChanged = 'Kasutaja %s parool vahetati õnnestunult.'; // to translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -627,4 +627,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -626,4 +626,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -648,4 +648,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -649,4 +649,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -626,4 +626,6 @@ $strZeroRemovesTheLimit = 'Note: Une valeur de 0 (zero) enl
|
||||
$strZip = '"zipp<70>"';
|
||||
// To translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -627,4 +627,6 @@ $strZeroRemovesTheLimit = 'Note: Une valeur de 0 (zero) enlève la limite.';
|
||||
$strZip = '"zippé"';
|
||||
// To translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -632,4 +632,6 @@ $strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strTransformation_text_plain__external = 'LINUX ONLY: Launches an external application and feeds the fielddata via standard input. Returns standard output of the application. Default is Tidy, to pretty print HTML code. For security reasons, you have to manually edit the file libraries/transformations/text_plain__external.inc.php and insert the tools you allow to be run. The first option is then the number of the program you want to use and the second option are the parameters for the program. The third parameter, if set to 1 will convert the output using htmlspecialchars() (Default is 1). A fourth parameter, if set to 1 will put a NOWRAP to the content cell so that the whole output will be shown without reformatting (Default 1)';
|
||||
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -633,4 +633,6 @@ $strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strTransformation_text_plain__external = 'LINUX ONLY: Launches an external application and feeds the fielddata via standard input. Returns standard output of the application. Default is Tidy, to pretty print HTML code. For security reasons, you have to manually edit the file libraries/transformations/text_plain__external.inc.php and insert the tools you allow to be run. The first option is then the number of the program you want to use and the second option are the parameters for the program. The third parameter, if set to 1 will convert the output using htmlspecialchars() (Default is 1). A fourth parameter, if set to 1 will put a NOWRAP to the content cell so that the whole output will be shown without reformatting (Default 1)';
|
||||
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -651,4 +651,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -633,4 +633,6 @@ $strZeroRemovesTheLimit = 'Anmerkung: Der Wert 0 (null) entfernt die Beschr
|
||||
$strZip = 'Zip-komprimiert';
|
||||
//To translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -634,4 +634,6 @@ $strZeroRemovesTheLimit = 'Anmerkung: Der Wert 0 (null) entfernt die Beschränku
|
||||
$strZip = 'Zip-komprimiert';
|
||||
//To translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -650,4 +650,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -651,4 +651,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -648,4 +648,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -662,4 +662,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -636,4 +636,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -637,4 +637,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -625,4 +625,6 @@ $strZeroRemovesTheLimit = 'Perhatian: Merubah pilihan ini ke posisi 0 (zero) aka
|
||||
$strZip = '"Dikompress dengan Zip"';
|
||||
// To translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -626,4 +626,6 @@ $strZeroRemovesTheLimit = 'Perhatian: Merubah pilihan ini ke posisi 0 (zero) aka
|
||||
$strZip = '"Dikompress dengan Zip"';
|
||||
// To translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -630,4 +630,6 @@ $strZip = '"compresso con zip"';
|
||||
// To translate
|
||||
|
||||
$strCharset = 'Set di caratteri';
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -631,4 +631,6 @@ $strZip = '"compresso con zip"';
|
||||
// To translate
|
||||
|
||||
$strCharset = 'Set di caratteri';
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -636,4 +636,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -636,4 +636,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -637,4 +637,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -650,4 +650,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -630,4 +630,6 @@ $strYes = 'Jā';
|
||||
$strZeroRemovesTheLimit = 'Piezīme: Šo opciju uzstādīšana uz 0 (nulli) atceļ ierobežojumus.';
|
||||
$strZip = 'Arhivēts ar zip';
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -629,4 +629,6 @@ $strYes = 'J
|
||||
$strZeroRemovesTheLimit = 'Piez<65>me: <20>o opciju uzst<73>d<EFBFBD><64>ana uz 0 (nulli) atce<63> ierobe<62>ojumus.';
|
||||
$strZip = 'Arhiv<69>ts ar zip';
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -629,4 +629,6 @@ $strTransformation_text_plain__imagelink = 'Displays an image and a link, the fi
|
||||
$strTransformation_text_plain__link = 'Displays a link, the field contains the filename; first option is a prefix like "http://domain.com/", second option is a title for the link.'; //to translate
|
||||
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -628,4 +628,6 @@ $strTransformation_text_plain__imagelink = 'Displays an image and a link, the fi
|
||||
$strTransformation_text_plain__link = 'Displays a link, the field contains the filename; first option is a prefix like "http://domain.com/", second option is a title for the link.'; //to translate
|
||||
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -647,4 +647,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -648,4 +648,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -629,4 +629,6 @@ $strZeroRemovesTheLimit = 'Merk: Ved
|
||||
$strZip = 'Komprimert (zip)';
|
||||
// To translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -630,4 +630,6 @@ $strZeroRemovesTheLimit = 'Merk: Ved å sette disse til 0 (null) fjerner begrens
|
||||
$strZip = 'Komprimert (zip)';
|
||||
// To translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -625,4 +625,6 @@ $strZeroRemovesTheLimit = 'Uwaga: Ustawienie tych opcji na 0 (zero) usuwa ograni
|
||||
$strZip = '".zip"';
|
||||
// To translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -626,4 +626,6 @@ $strZeroRemovesTheLimit = 'Uwaga: Ustawienie tych opcji na 0 (zero) usuwa ograni
|
||||
$strZip = '".zip"';
|
||||
// To translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -647,4 +647,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -648,4 +648,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -626,4 +626,6 @@ $strZeroRemovesTheLimit = 'Observatie: Prin setarea acestor optiuni la 0 (zero)
|
||||
$strZip = '"arhivat"';
|
||||
// To translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -627,4 +627,6 @@ $strZeroRemovesTheLimit = 'Observatie: Prin setarea acestor optiuni la 0 (zero)
|
||||
$strZip = '"arhivat"';
|
||||
// To translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -634,4 +634,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -632,4 +632,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -633,4 +633,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -632,4 +632,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -654,4 +654,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -653,4 +653,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -625,4 +625,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -626,4 +626,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -625,4 +625,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -631,4 +631,6 @@ $strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strUseHostTable = 'Use Host Table'; //to translate
|
||||
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -632,4 +632,6 @@ $strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strUseHostTable = 'Use Host Table'; //to translate
|
||||
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -631,4 +631,6 @@ $strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strUseHostTable = 'Use Host Table'; //to translate
|
||||
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -625,4 +625,6 @@ $strZip = '"comprimido con zip"';
|
||||
|
||||
// To translate
|
||||
$strUpdComTab = 'Please see Documentation on how to update your Column_comments Table'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -626,4 +626,6 @@ $strZip = '"comprimido con zip"';
|
||||
|
||||
// To translate
|
||||
$strUpdComTab = 'Please see Documentation on how to update your Column_comments Table'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -625,4 +625,6 @@ $strZeroRemovesTheLimit = 'Anm: Genom att s
|
||||
$strZip = '"zippad"';
|
||||
// To translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -626,4 +626,6 @@ $strZeroRemovesTheLimit = 'Anm: Genom att sätta dessa alternativ till 0 (noll)
|
||||
$strZip = '"zippad"';
|
||||
// To translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -636,4 +636,6 @@ $strTransformation_text_plain__substr = '
|
||||
|
||||
$strUseHostTable = 'Use Host Table'; //to translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -637,4 +637,6 @@ $strTransformation_text_plain__substr = 'แสดงข้อความบา
|
||||
|
||||
$strUseHostTable = 'Use Host Table'; //to translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -649,4 +649,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -650,4 +650,6 @@ $strShowFullQueries = 'Show Full Queries'; //to translate
|
||||
$strTruncateQueries = 'Truncate Shown Queries'; //to translate
|
||||
$strSwitchToTable = 'Switch to copied table'; //to translate
|
||||
$strCharset = 'Charset'; //to translate
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -627,4 +627,6 @@ $strZeroRemovesTheLimit = 'Примітка: Встановлення цієї
|
||||
$strZip = 'запакувати в "zip"';
|
||||
// To translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -626,4 +626,6 @@ $strZeroRemovesTheLimit = '
|
||||
$strZip = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> "zip"';
|
||||
// To translate
|
||||
|
||||
$strLaTeXOptions = 'LaTeX options'; //to translate
|
||||
$strRelations = 'Relations'; //to translate
|
||||
?>
|
||||
|
@@ -755,10 +755,10 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){
|
||||
*
|
||||
* @param string the database name
|
||||
* @param string the table name
|
||||
* @param string the environment name to be used for the table
|
||||
* @param integer the offset on this table
|
||||
* @param integer the last row to get
|
||||
* @param string the end of line sequence
|
||||
* @param bool whether to show column headers
|
||||
* @param string the url to go back in case of error
|
||||
* @param string sql query (optional)
|
||||
*
|
||||
@@ -766,7 +766,7 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
function PMA_getTableLatex($db, $table, $environment, $limit_from, $limit_to, $crlf, $error_url, $sql_query) {
|
||||
function PMA_getTableLaTeX($db, $table, $limit_from, $limit_to, $crlf, $do_columns, $error_url, $sql_query) {
|
||||
|
||||
$local_query = 'SHOW COLUMNS FROM ' . PMA_backquote($table) . ' FROM ' . PMA_backquote($db);
|
||||
$result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $error_url);
|
||||
@@ -788,7 +788,8 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){
|
||||
}
|
||||
$result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $error_url);
|
||||
|
||||
$buffer = '\\begin{table} ' . $crlf
|
||||
$buffer = $crlf . '%' . $crlf . '% ' . $GLOBALS['strData'] . $crlf . '%' . $crlf
|
||||
. '\\begin{table} ' . $crlf
|
||||
. ' \\begin{longtable}{|';
|
||||
|
||||
for($index=0;$index<$columns_cnt;$index++) {
|
||||
@@ -797,6 +798,17 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){
|
||||
$buffer .= '} ' . $crlf ;
|
||||
|
||||
$buffer .= ' \\hline \\endhead \\hline \\endfoot \\hline ' . $crlf;
|
||||
|
||||
// show column names
|
||||
if ($do_columns) {
|
||||
$local_buffer = implode("\000", $columns);
|
||||
for($k=0;$k<count($tex_escape);$k++) {
|
||||
$local_buffer = str_replace($tex_escape[$k], '\\' . $tex_escape[$k], $local_buffer);
|
||||
}
|
||||
$buffer .= str_replace("\000", ' & ', $local_buffer);
|
||||
unset($local_buffer);
|
||||
$buffer .= ' \\\\ \\hline \\hline' . $crlf;
|
||||
}
|
||||
|
||||
// print the whole table
|
||||
while ($record = PMA_mysql_fetch_array($result, MYSQL_ASSOC)) {
|
||||
@@ -828,12 +840,166 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){
|
||||
mysql_free_result($result);
|
||||
return $buffer;
|
||||
|
||||
} // end getTableLatex
|
||||
} // end getTableLaTeX
|
||||
|
||||
/**
|
||||
* Returns $table's structure as LaTeX
|
||||
*
|
||||
* @param string the database name
|
||||
* @param string the table name
|
||||
* @param string the end of line sequence
|
||||
* @param string the url to go back in case of error
|
||||
*
|
||||
* @return string the structure on success
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
function PMA_getTableStructureLaTeX($db, $table, $crlf, $error_url, $do_relation = false, $do_comments = false, $do_mime = false)
|
||||
{
|
||||
/**
|
||||
* Gets the relations settings
|
||||
*/
|
||||
require('./libraries/relation.lib.php3');
|
||||
require('./libraries/transformations.lib.php3');
|
||||
|
||||
$cfgRelation = PMA_getRelationsParam();
|
||||
$tex_escape = array("$", "%", "{", "}", "&", "#", "_", "^");
|
||||
/**
|
||||
* Gets fields properties
|
||||
*/
|
||||
$local_query = 'SHOW FIELDS FROM ' . PMA_backquote($table);
|
||||
$result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url);
|
||||
$fields_cnt = mysql_num_rows($result);
|
||||
|
||||
// Check if we can use Relations (Mike Beck)
|
||||
if ($do_relation && !empty($cfgRelation['relation'])) {
|
||||
// Find which tables are related with the current one and write it in
|
||||
// an array
|
||||
$res_rel = PMA_getForeigners($db, $table);
|
||||
|
||||
if ($res_rel && count($res_rel) > 0) {
|
||||
$have_rel = TRUE;
|
||||
} else {
|
||||
$have_rel = FALSE;
|
||||
}
|
||||
}
|
||||
else {
|
||||
$have_rel = FALSE;
|
||||
} // end if
|
||||
|
||||
/**
|
||||
* Displays the table structure
|
||||
*/
|
||||
$buffer = $crlf . '%' . $crlf . '% ' . $GLOBALS['strStructure'] . $crlf . '%' . $crlf
|
||||
. '\\begin{table} ' . $crlf
|
||||
. ' \\begin{longtable}{|';
|
||||
|
||||
$columns_cnt = 4;
|
||||
if ($do_relation && $have_rel) {
|
||||
$columns_cnt++;
|
||||
}
|
||||
if ($do_comments && $cfgRelation['commwork']) {
|
||||
$columns_cnt++;
|
||||
}
|
||||
if ($do_mime && $cfgRelation['mimework']) {
|
||||
$columns_cnt++;
|
||||
}
|
||||
for($index=0;$index<$columns_cnt;$index++) {
|
||||
$buffer .= 'c|';
|
||||
}
|
||||
$buffer .= '} ' . $crlf ;
|
||||
|
||||
$buffer .= ' \\hline \\endhead \\hline \\endfoot \\hline ' . $crlf;
|
||||
|
||||
$buffer .= $GLOBALS['strField'] . ' & ' . $GLOBALS['strType'] . ' & ' . $GLOBALS['strNull'] . ' & ' . $GLOBALS['strDefault'];
|
||||
if ($do_relation && $have_rel) {
|
||||
$buffer .= ' & ' . $GLOBALS['strLinksTo'];
|
||||
}
|
||||
if ($do_comments && $cfgRelation['commwork']) {
|
||||
$buffer .= ' & ' . $GLOBALS['strComments'];
|
||||
$comments = PMA_getComments($db, $table);
|
||||
}
|
||||
if ($do_mime && $cfgRelation['mimework']) {
|
||||
$buffer .= ' & MIME';
|
||||
$mime_map = PMA_getMIME($db, $table, true);
|
||||
}
|
||||
$buffer .= ' \\\\ \\hline \\hline ' . $crlf;
|
||||
|
||||
while ($row = PMA_mysql_fetch_array($result)) {
|
||||
|
||||
$type = $row['Type'];
|
||||
// reformat mysql query output - staybyte - 9. June 2001
|
||||
// loic1: set or enum types: slashes single quotes inside options
|
||||
if (eregi('^(set|enum)\((.+)\)$', $type, $tmp)) {
|
||||
$tmp[2] = substr(ereg_replace('([^,])\'\'', '\\1\\\'', ',' . $tmp[2]), 1);
|
||||
$type = $tmp[1] . '(' . str_replace(',', ', ', $tmp[2]) . ')';
|
||||
$type_nowrap = '';
|
||||
|
||||
$binary = 0;
|
||||
$unsigned = 0;
|
||||
$zerofill = 0;
|
||||
} else {
|
||||
$type_nowrap = ' nowrap="nowrap"';
|
||||
$type = eregi_replace('BINARY', '', $type);
|
||||
$type = eregi_replace('ZEROFILL', '', $type);
|
||||
$type = eregi_replace('UNSIGNED', '', $type);
|
||||
if (empty($type)) {
|
||||
$type = ' ';
|
||||
}
|
||||
|
||||
$binary = eregi('BINARY', $row['Type'], $test);
|
||||
$unsigned = eregi('UNSIGNED', $row['Type'], $test);
|
||||
$zerofill = eregi('ZEROFILL', $row['Type'], $test);
|
||||
}
|
||||
$strAttribute = ' ';
|
||||
if ($binary) {
|
||||
$strAttribute = 'BINARY';
|
||||
}
|
||||
if ($unsigned) {
|
||||
$strAttribute = 'UNSIGNED';
|
||||
}
|
||||
if ($zerofill) {
|
||||
$strAttribute = 'UNSIGNED ZEROFILL';
|
||||
}
|
||||
if (!isset($row['Default'])) {
|
||||
if ($row['Null'] != '') {
|
||||
$row['Default'] = 'NULL';
|
||||
}
|
||||
} else {
|
||||
$row['Default'] = $row['Default'];
|
||||
}
|
||||
$field_name = $row['Field'];
|
||||
|
||||
$local_buffer = $field_name . "\000" . $type . "\000" . (($row['Null'] == '') ? $GLOBALS['strNo'] : $GLOBALS['strYes']) . "\000" . (isset($row['Default']) ? $row['Default'] : '');
|
||||
|
||||
if ($do_relation && $have_rel) {
|
||||
$local_buffer .= "\000";
|
||||
if (isset($res_rel[$field_name])) {
|
||||
$local_buffer .= $res_rel[$field_name]['foreign_table'] . ' -> ' . $res_rel[$field_name]['foreign_field'];
|
||||
}
|
||||
}
|
||||
if ($do_comments && $cfgRelation['commwork']) {
|
||||
$local_buffer .= "\000";
|
||||
if (isset($comments[$field_name])) {
|
||||
$local_buffer .= $comments[$field_name];
|
||||
}
|
||||
}
|
||||
if ($do_mime && $cfgRelation['mimework']) {
|
||||
$local_buffer .= "\000";
|
||||
if (isset($mime_map[$field_name])) {
|
||||
$local_buffer .= str_replace('_', '/', $mime_map[$field_name]['mimetype']);
|
||||
}
|
||||
}
|
||||
for($k=0;$k<count($tex_escape);$k++) {
|
||||
$local_buffer = str_replace($tex_escape[$k], '\\' . $tex_escape[$k], $local_buffer);
|
||||
}
|
||||
$buffer .= str_replace("\000", ' & ', $local_buffer);
|
||||
$buffer .= ' \\\\ \\hline ' . $crlf;
|
||||
} // end while
|
||||
mysql_free_result($result);
|
||||
$buffer .= ' \\end{longtable} \\end{table}' . $crlf;
|
||||
return $buffer;
|
||||
} // end of the 'PMA_getTableStructureLaTeX()' function
|
||||
|
||||
} // $__PMA_BUILD_DUMP_LIB__
|
||||
?>
|
||||
|
@@ -42,6 +42,7 @@ if (isset($sql_query)) {
|
||||
<?php if ($export_single) { ?>
|
||||
gE("csv_options").style.display = 'none';
|
||||
<?php } ?>
|
||||
gE("latex_options").style.display = 'none';
|
||||
gE("sql_options").style.display = 'none';
|
||||
gE("none_options").style.display = 'none';
|
||||
}
|
||||
@@ -68,19 +69,8 @@ if (isset($sql_query)) {
|
||||
<br /><br />
|
||||
|
||||
<!-- LaTeX table -->
|
||||
<input type="radio" name="what" value="latex" id="radio_dump_latex" onclick="if(this.checked) { hide_them_all(); gE('none_options').style.display = 'block'; }; return true" />
|
||||
<input type="radio" name="what" value="latex" id="radio_dump_latex" onclick="if(this.checked) { hide_them_all(); gE('latex_options').style.display = 'block'; }; return true" />
|
||||
<label for="radio_dump_latex"><?php echo $strLaTeX; ?></label>
|
||||
<!-- for now we have only one environment supported -->
|
||||
<?php
|
||||
/*
|
||||
<select name="environment">
|
||||
<option value="longtable" selected><?php echo $strLaTeXMultipageTable; ?></option>
|
||||
<option value="sideways"><?php echo $strLaTeXSidewaysTable; ?></option>
|
||||
<option value="table"><?php echo $strLaTeXStandardTable; ?></option>
|
||||
</select>
|
||||
*/
|
||||
?>
|
||||
<input type="hidden" name="environment" value="longtable" />
|
||||
<br /><br />
|
||||
|
||||
<?php
|
||||
@@ -105,6 +95,8 @@ if ($export_single) {
|
||||
</td>
|
||||
<!-- Options -->
|
||||
<td valign="top" id="options_td" width="400">
|
||||
|
||||
<!-- SQL options -->
|
||||
<fieldset id="sql_options">
|
||||
<legend><?php echo $strSQLOptions; ?> (<a href="./Documentation.html#faqexport" target="documentation"><?php echo $strDocu; ?></a>)</legend>
|
||||
|
||||
@@ -152,6 +144,59 @@ echo "\n";
|
||||
<label for="checkbox_dump_extended_ins"><?php echo $strExtendedInserts; ?></label><br />
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
|
||||
<!-- LaTeX options -->
|
||||
<fieldset id="latex_options">
|
||||
<legend><?php echo $strLaTeXOptions; ?></legend>
|
||||
|
||||
<!-- For structure -->
|
||||
<fieldset>
|
||||
<legend>
|
||||
<input type="checkbox" name="ltx_structure" value="structure" id="checkbox_ltx_structure" checked="checked" onclick="if(!this.checked && !gE('checkbox_ltx_data').checked) return false; else return true;" />
|
||||
<label for="checkbox_ltx_structure"><?php echo $strStructure; ?></label><br />
|
||||
</legend>
|
||||
<?php
|
||||
|
||||
// garvin: whether to show column comments
|
||||
require('./libraries/relation.lib.php3');
|
||||
$cfgRelation = PMA_getRelationsParam();
|
||||
|
||||
if (!empty($cfgRelation['relation'])) {
|
||||
?>
|
||||
<input type="checkbox" name="ltx_relation" value="yes" id="checkbox_ltx_use_relation" checked="checked" />
|
||||
<label for="checkbox_ltx_use_relation"><?php echo $strRelations; ?></label><br />
|
||||
<?php
|
||||
} // end relation
|
||||
|
||||
if ($cfgRelation['commwork']) {
|
||||
?>
|
||||
<input type="checkbox" name="ltx_comments" value="yes" id="checkbox_ltx_use_comments" checked="checked" />
|
||||
<label for="checkbox_ltx_use_comments"><?php echo $strComments; ?></label><br />
|
||||
<?php
|
||||
} // end comments
|
||||
|
||||
if ($cfgRelation['mimework']) {
|
||||
?>
|
||||
<input type="checkbox" name="ltx_mime" value="yes" id="checkbox_ltx_use_mime" checked="checked" />
|
||||
<label for="checkbox_ltx_use_mime"><?php echo $strMIME_MIMEtype; ?></label><br />
|
||||
<?php
|
||||
} // end MIME
|
||||
echo "\n";
|
||||
?>
|
||||
</fieldset>
|
||||
|
||||
<!-- For data -->
|
||||
<fieldset>
|
||||
<legend>
|
||||
<input type="checkbox" name="ltx_data" value="data" id="checkbox_ltx_data" checked="checked" onclick="if(!this.checked && !gE('checkbox_ltx_structure').checked) return false; else return true;" />
|
||||
<label for="checkbox_ltx_data"><?php echo $strData; ?></label><br />
|
||||
</legend>
|
||||
<input type="checkbox" name="ltx_showcolumns" value="yes" id="ch_ltx_showcolumns" checked="checked" />
|
||||
<label for="ch_ltx_showcolumns"><?php echo $strColumnNames; ?></label><br />
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
|
||||
<!-- CSV options -->
|
||||
<?php
|
||||
/* CSV export just for single table */
|
||||
if ($export_single) {
|
||||
@@ -206,10 +251,13 @@ if ($export_single) {
|
||||
<?php if ($export_single) { ?>
|
||||
gE('csv_options').style.display = 'none';
|
||||
<?php } ?>
|
||||
gE('latex_options').style.display = 'none';
|
||||
gE('sql_options').style.display = 'none';
|
||||
gE('none_options').style.display = 'none';
|
||||
if (document.getElementById('radio_dump_sql').checked) {
|
||||
gE('sql_options').style.display = 'block';
|
||||
} else if (document.getElementById('radio_dump_latex').checked) {
|
||||
gE('latex_options').style.display = 'block';
|
||||
<?php if ($export_single) { ?>
|
||||
} else if (document.getElementById('radio_dump_csv').checked) {
|
||||
gE('csv_options').style.display = 'block';
|
||||
|
@@ -333,8 +333,16 @@ else {
|
||||
|| (!isset($tmp_select) && !empty($table))) {
|
||||
|
||||
// to do: add option for the formatting ( c, l, r, p)
|
||||
$dump_buffer .= PMA_getTableLatex($db, $table, $environment, $limit_from, $limit_to, $crlf, $err_url,
|
||||
(isset($sql_query)?urldecode($sql_query):''));
|
||||
if (isset($ltx_structure) && $sql_structure == 'structure') {
|
||||
$dump_buffer .= PMA_getTableStructureLaTeX($db, $table, $crlf, $err_url,
|
||||
isset($ltx_relation) && $ltx_relation == 'yes',
|
||||
isset($ltx_comments) && $ltx_comments == 'yes',
|
||||
isset($ltx_mime) && $ltx_mime == 'yes'
|
||||
);
|
||||
}
|
||||
if (isset($ltx_data) && $sql_data == 'data') {
|
||||
$dump_buffer .= PMA_getTableLaTeX($db, $table, $limit_from, $limit_to, $crlf, isset($ltx_showcolumns) && $ltx_showcolumns == 'yes', $err_url, (isset($sql_query)?urldecode($sql_query):''));
|
||||
}
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user