automatic layout

This commit is contained in:
Marc Delisle
2003-03-15 11:45:35 +00:00
parent 2b6b387050
commit 07f2f3cc06
94 changed files with 220 additions and 20 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2003-03-15 Marc Delisle <lem9@users.sourceforge.net>
* pdf_pages.php3: Automatic layout of tables on the schema
2003-03-15 Garvin Hicking <me@supergarv.de>
* pdf_schema.php3: Fixed typo.

View File

@@ -623,4 +623,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -624,4 +624,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -616,4 +616,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -617,4 +617,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -638,4 +638,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -637,4 +637,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -637,4 +637,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -638,4 +638,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -636,4 +636,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -637,4 +637,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -636,4 +636,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -609,4 +609,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -610,4 +610,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -636,4 +636,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -635,4 +635,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -635,4 +635,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -634,4 +634,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -636,4 +636,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -637,4 +637,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -636,4 +636,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -616,4 +616,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -617,4 +617,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -616,4 +616,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -631,4 +631,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -632,4 +632,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -613,4 +613,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -614,4 +614,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -58,6 +58,7 @@ $strAscending = 'Ascending';
$strAtBeginningOfTable = 'At Beginning of Table';
$strAtEndOfTable = 'At End of Table';
$strAttr = 'Attributes';
$strAutomaticLayout = 'Automatic layout';
$strBack = 'Back';
$strBeginCut = 'BEGIN CUT';
@@ -73,6 +74,7 @@ $strBrowse = 'Browse';
$strBzError = 'phpMyAdmin was unable to compress the dump because of a broken Bz2 extension in this php version. It is strongly recommended to set the <code>$cfg[\'BZipDump\']</code> directive in your phpMyAdmin configuration file to <code>FALSE</code>. If you want to use the Bz2 compression features, you should upgrade to a later php version. See php bug report %s for details.';
$strBzip = '"bzipped"';
$strCSVOptions = 'CSV options';
$strCannotLogin = 'Cannot login to MySQL server';
$strCantLoad = 'cannot load %s extension,<br />please check PHP Configuration';
$strCantLoadMySQL = 'cannot load MySQL extension,<br />please check PHP Configuration.';
@@ -318,6 +320,7 @@ $strNoFrames = 'phpMyAdmin is more friendly with a <b>frames-capable</b> browser
$strNoIndex = 'No index defined!';
$strNoIndexPartsDefined = 'No index parts defined!';
$strNoModification = 'No change';
$strNoOptions = 'This format has no options';
$strNoPassword = 'No Password';
$strNoPhp = 'Without PHP Code';
$strNoPrivileges = 'No Privileges';
@@ -360,6 +363,8 @@ $strPdfInvalidPageNum = 'Undefined PDF page number!';
$strPdfInvalidTblName = 'The "%s" table doesn\'t exist!';
$strPdfNoTables = 'No tables';
$strPerHour = 'per hour';
$strPerMinute = 'per minute';
$strPerSecond = 'per second';
$strPhp = 'Create PHP Code';
$strPmaDocumentation = 'phpMyAdmin documentation';
$strPmaUriError = 'The <tt>$cfg[\'PmaAbsoluteUri\']</tt> directive MUST be set in your configuration file!';
@@ -460,6 +465,7 @@ $strRunSQLQuery = 'Run SQL query/queries on database %s';
$strRunning = 'running on %s';
$strSQL = 'SQL';
$strSQLOptions = 'SQL options';
$strSQLParserBugMessage = 'There is a chance that you may have found a bug in the SQL parser. Please examine your query closely, and check that the quotes are correct and not mis-matched. Other possible failure causes may be that you are uploading a file with binary outside of a quoted text area. You can also try your query on the MySQL command line interface. The MySQL server error output below, if there is any, may also help you in diagnosing the problem. If you still have problems or if the parser fails where the command line interface succeeds, please reduce your SQL query input to the single query that causes problems, and submit a bug report with the data chunk in the CUT section below:';
$strSQLParserUserError = 'There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem';
$strSQLQuery = 'SQL-query';
@@ -514,6 +520,9 @@ $strSize = 'Size';
$strSort = 'Sort';
$strSpaceUsage = 'Space usage';
$strSplitWordsWithSpace = 'Words are separated by a space character (" ").';
$strStatCheckTime = 'Last check';
$strStatCreateTime = 'Creation';
$strStatUpdateTime = 'Last update';
$strStatement = 'Statements';
$strStatus = 'Status';
$strStrucCSV = 'CSV data';
@@ -595,18 +604,11 @@ $strWritingCommentNotPossible = 'Writing of comment not possible';
$strWritingRelationNotPossible = 'Writing of relation not possible';
$strWrongUser = 'Wrong username/password. Access denied.';
$strXML = 'XML';
$strYes = 'Yes';
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.';
$strZip = '"zipped"';
$strSQLOptions = 'SQL options';
$strXML = 'XML';
$strCSVOptions = 'CSV options';
$strNoOptions = 'This format has no options';
$strStatCreateTime = 'Creation';
$strStatUpdateTime = 'Last update';
$strStatCheckTime = 'Last check';
$strPerMinute = 'per minute';
$strPerSecond = 'per second';
?>

View File

@@ -59,6 +59,7 @@ $strAscending = 'Ascending';
$strAtBeginningOfTable = 'At Beginning of Table';
$strAtEndOfTable = 'At End of Table';
$strAttr = 'Attributes';
$strAutomaticLayout = 'Automatic layout';
$strBack = 'Back';
$strBeginCut = 'BEGIN CUT';
@@ -74,6 +75,7 @@ $strBrowse = 'Browse';
$strBzError = 'phpMyAdmin was unable to compress the dump because of a broken Bz2 extension in this php version. It is strongly recommended to set the <code>$cfg[\'BZipDump\']</code> directive in your phpMyAdmin configuration file to <code>FALSE</code>. If you want to use the Bz2 compression features, you should upgrade to a later php version. See php bug report %s for details.';
$strBzip = '"bzipped"';
$strCSVOptions = 'CSV options';
$strCannotLogin = 'Cannot login to MySQL server';
$strCantLoad = 'cannot load %s extension,<br />please check PHP Configuration';
$strCantLoadMySQL = 'cannot load MySQL extension,<br />please check PHP Configuration.';
@@ -319,6 +321,7 @@ $strNoFrames = 'phpMyAdmin is more friendly with a <b>frames-capable</b> browser
$strNoIndex = 'No index defined!';
$strNoIndexPartsDefined = 'No index parts defined!';
$strNoModification = 'No change';
$strNoOptions = 'This format has no options';
$strNoPassword = 'No Password';
$strNoPhp = 'Without PHP Code';
$strNoPrivileges = 'No Privileges';
@@ -361,6 +364,8 @@ $strPdfInvalidPageNum = 'Undefined PDF page number!';
$strPdfInvalidTblName = 'The "%s" table doesn\'t exist!';
$strPdfNoTables = 'No tables';
$strPerHour = 'per hour';
$strPerMinute = 'per minute';
$strPerSecond = 'per second';
$strPhp = 'Create PHP Code';
$strPmaDocumentation = 'phpMyAdmin documentation';
$strPmaUriError = 'The <tt>$cfg[\'PmaAbsoluteUri\']</tt> directive MUST be set in your configuration file!';
@@ -461,6 +466,7 @@ $strRunSQLQuery = 'Run SQL query/queries on database %s';
$strRunning = 'running on %s';
$strSQL = 'SQL';
$strSQLOptions = 'SQL options';
$strSQLParserBugMessage = 'There is a chance that you may have found a bug in the SQL parser. Please examine your query closely, and check that the quotes are correct and not mis-matched. Other possible failure causes may be that you are uploading a file with binary outside of a quoted text area. You can also try your query on the MySQL command line interface. The MySQL server error output below, if there is any, may also help you in diagnosing the problem. If you still have problems or if the parser fails where the command line interface succeeds, please reduce your SQL query input to the single query that causes problems, and submit a bug report with the data chunk in the CUT section below:';
$strSQLParserUserError = 'There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem';
$strSQLQuery = 'SQL-query';
@@ -515,6 +521,9 @@ $strSize = 'Size';
$strSort = 'Sort';
$strSpaceUsage = 'Space usage';
$strSplitWordsWithSpace = 'Words are separated by a space character (" ").';
$strStatCheckTime = 'Last check';
$strStatCreateTime = 'Creation';
$strStatUpdateTime = 'Last update';
$strStatement = 'Statements';
$strStatus = 'Status';
$strStrucCSV = 'CSV data';
@@ -596,18 +605,11 @@ $strWritingCommentNotPossible = 'Writing of comment not possible';
$strWritingRelationNotPossible = 'Writing of relation not possible';
$strWrongUser = 'Wrong username/password. Access denied.';
$strXML = 'XML';
$strYes = 'Yes';
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.';
$strZip = '"zipped"';
$strSQLOptions = 'SQL options';
$strXML = 'XML';
$strCSVOptions = 'CSV options';
$strNoOptions = 'This format has no options';
$strStatCreateTime = 'Creation';
$strStatUpdateTime = 'Last update';
$strStatCheckTime = 'Last check';
$strPerMinute = 'per minute';
$strPerSecond = 'per second';
?>

View File

@@ -612,4 +612,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -613,4 +613,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -612,4 +612,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -611,4 +611,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -633,4 +633,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -634,4 +634,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -610,4 +610,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -611,4 +611,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -613,4 +613,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -614,4 +614,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -636,4 +636,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -618,4 +618,5 @@ $strStatUpdateTime = 'Aktualisiert am';
$strStatCheckTime = 'Letzter Check am';
$strPerMinute = 'pro Minute';
$strPerSecond = 'pro Sekunde';
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -619,4 +619,5 @@ $strStatUpdateTime = 'Aktualisiert am';
$strStatCheckTime = 'Letzter Check am';
$strPerMinute = 'pro Minute';
$strPerSecond = 'pro Sekunde';
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -635,4 +635,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -636,4 +636,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -633,4 +633,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -647,4 +647,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -621,4 +621,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -622,4 +622,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -609,4 +609,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -610,4 +610,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -614,4 +614,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -615,4 +615,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -621,4 +621,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -621,4 +621,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -622,4 +622,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -635,4 +635,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -637,4 +637,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -636,4 +636,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -610,4 +610,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -609,4 +609,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -632,4 +632,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -633,4 +633,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -611,4 +611,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -612,4 +612,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -609,4 +609,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -610,4 +610,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -632,4 +632,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -633,4 +633,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -610,4 +610,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -611,4 +611,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -619,4 +619,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -617,4 +617,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -618,4 +618,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -617,4 +617,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -639,4 +639,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -638,4 +638,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -610,4 +610,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -611,4 +611,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -610,4 +610,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -612,4 +612,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -613,4 +613,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -612,4 +612,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -613,4 +613,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -614,4 +614,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -609,4 +609,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -610,4 +610,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -623,4 +623,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -624,4 +624,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -634,4 +634,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -635,4 +635,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -624,4 +624,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -623,4 +623,5 @@ $strStatUpdateTime = 'Last update';//to translate
$strStatCheckTime = 'Last check';//to translate
$strPerMinute = 'per minute';//to translate
$strPerSecond = 'per second';//to translate
$strAutomaticLayout = 'Automatic layout'; //to translate
?>

View File

@@ -74,6 +74,100 @@ if ($cfgRelation['pdfwork']) {
. ' (db_name, page_descr)'
. ' VALUES (\'' . PMA_sqlAddslashes($db) . '\', \'' . PMA_sqlAddslashes($newpage) . '\')';
PMA_query_as_cu($ins_query);
// A u t o m a t i c l a y o u t
if (isset($autolayout)) {
// save the page number
$pdf_page_number = mysql_insert_id((isset($dbh)?$dbh:''));
// get the tables that have relations, by descending
// number of links
$master_tables = 'SELECT COUNT(master_table), master_table'
. ' FROM ' . PMA_backquote($cfgRelation['relation'])
. ' WHERE master_db = \'' . $db . '\''
. ' GROUP BY master_table'
. ' ORDER BY ' . PMA_backquote('COUNT(master_table)') . ' DESC ';
$master_tables_rs = PMA_query_as_cu($master_tables);
if ($master_tables_rs && mysql_num_rows($master_tables_rs) > 0) {
// first put all the master tables at beginning
// of the list, so they are near the center of
// the schema
while (list(,$master_table) = mysql_fetch_row($master_tables_rs)) {
$all_tables[] = $master_table;
}
// then for each master, add its foreigns into an array
// of foreign tables, if not already there
// (a foreign might be foreign for more than
// one table, and might be a master itself)
$foreign_tables = array();
while (list(,$master_table) = each($all_tables)) {
$foreigners = PMA_getForeigners($db, $master_table);
while (list(, $foreigner) = each($foreigners)) {
if (!in_array($foreigner['foreign_table'], $foreign_tables)) {
$foreign_tables[] = $foreigner['foreign_table'];
}
}
}
// then merge the arrays
while (list(,$foreign_table) = each($foreign_tables)) {
if (!in_array($foreign_table, $all_tables)) {
$all_tables[] = $foreign_table;
}
}
// now generate the coordinates for the schema,
// in a clockwise spiral
$pos_x = 500;
$pos_y = 500;
$delta = 50;
$delta_mult = 1.34;
$direction = "right";
reset($all_tables);
while (list(,$current_table) = each($all_tables)) {
// save current table's coordinates
$insert_query = 'INSERT INTO ' . PMA_backquote($cfgRelation['table_coords']) . ' '
. '(db_name, table_name, pdf_page_number, x, y) '
. 'VALUES (\'' . PMA_sqlAddslashes($db) . '\', \'' . PMA_sqlAddslashes($current_table) . '\',' . $pdf_page_number . ',' . $pos_x . ',' . $pos_y . ')';
PMA_query_as_cu($insert_query);
// compute for the next table
switch ($direction) {
case 'right':
$pos_x += $delta;
$direction = "down";
$delta *= $delta_mult;
break;
case 'down':
$pos_y += $delta;
$direction = "left";
$delta *= $delta_mult;
break;
case 'left':
$pos_x -= $delta;
$direction = "up";
$delta *= $delta_mult;
break;
case 'up':
$pos_y -= $delta;
$direction = "right";
$delta *= $delta_mult;
break;
} // end switch
} // end while
} // end if there are master tables
$chpage = $pdf_page_number;
} // end if isset autolayout
break;
case 'edcoord':
@@ -166,10 +260,12 @@ if ($cfgRelation['pdfwork']) {
<?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
<input type="hidden" name="do" value="createpage" />
<input type="text" name="newpage" size="20" maxlength="50" />
<input type="checkbox" name="autolayout" />
<?php echo '(' . $strAutomaticLayout . ')' . "\n"; ?>
<input type="submit" value="<?php echo $strGo; ?>" />
</form>
<?php
// Now if we allready have choosen a page number then we should show the
// Now if we already have chosen a page number then we should show the
// tables involved
if (isset($chpage) && $chpage > 0) {
echo "\n";
@@ -264,7 +360,14 @@ if ($cfgRelation['pdfwork']) {
echo "\n" . '</form>' . "\n\n";
} // end if
if (isset($do) && ($do == 'edcoord' || $do == 'choosepage')) {
// ------------------------------------
// d i s p l a y p d f s c h e m a
// ------------------------------------
if (isset($do)
&& ($do == 'edcoord'
|| $do == 'choosepage'
|| ($do == 'createpage' && isset($chpage)))) {
?>
<form method="post" action="pdf_schema.php3">
<?php echo PMA_generate_common_hidden_inputs($db); ?>