PMA_table_info
This commit is contained in:
@@ -5,6 +5,12 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2002-05-22 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
|
* Documentation.html, config.inc.php3, db_details_structure.php3,
|
||||||
|
pdf_schema.php3: PMA_pdf_table_position renamed
|
||||||
|
to PMA_table_info, because "foreign_display_field" will move from
|
||||||
|
PMA_relation to PMA_table_info (once per table)
|
||||||
|
|
||||||
2002-05-21 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
2002-05-21 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||||
* ldi_table.php3, line 44: beautified generated html.
|
* ldi_table.php3, line 44: beautified generated html.
|
||||||
* tbl_properties_options.php3: fixed display errors with IE5.
|
* tbl_properties_options.php3: fixed display errors with IE5.
|
||||||
|
@@ -656,10 +656,10 @@ $cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt>
|
<dt>
|
||||||
<b>$cfg['Servers'][$i]['pdf_table_position']</b> string
|
<b>$cfg['Servers'][$i]['table_info']</b> string
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Since release 2.3.0 you can describe, in a special 'pdf_table_position'
|
Since release 2.3.0 you can describe, in a special 'table_info'
|
||||||
table, the coordinates where each table will be placed on a PDF schema
|
table, the coordinates where each table will be placed on a PDF schema
|
||||||
output. This configuration variable will hold the name of this special
|
output. This configuration variable will hold the name of this special
|
||||||
table.
|
table.
|
||||||
@@ -671,20 +671,20 @@ $cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
To use this functionality you have to:
|
To use this functionality you have to:
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
create in the same database a table (for example 'PMA_pdf_table_position')
|
create in the same database a table (for example 'PMA_table_info')
|
||||||
following this scheme:<br />
|
following this scheme:<br />
|
||||||
<tt>
|
<tt>
|
||||||
CREATE TABLE `PMA_pdf_table_position` (<br />
|
CREATE TABLE `PMA_table_info` (<br />
|
||||||
`table_name` varchar(64) NOT NULL default '',<br />
|
`table_name` varchar(64) NOT NULL default '',<br />
|
||||||
`x` float unsigned NOT NULL default '0',<br />
|
`x` float unsigned NOT NULL default '0',<br />
|
||||||
`y` float unsigned NOT NULL default '0',<br />
|
`y` float unsigned NOT NULL default '0',<br />
|
||||||
PRIMARY KEY (`table_name`)<br />
|
PRIMARY KEY (`table_name`)<br />
|
||||||
) TYPE=MyISAM COMMENT='Table positions for PDF schema';<br />
|
) TYPE=MyISAM COMMENT='Table information for phpMyAdmin';<br />
|
||||||
</tt>
|
</tt>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
put the table name in
|
put the table name in
|
||||||
<tt>$cfg['Servers'][$i]['pdf_table_position']</tt>
|
<tt>$cfg['Servers'][$i]['table_info']</tt>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
then manually fill this table with information about the table
|
then manually fill this table with information about the table
|
||||||
@@ -1772,14 +1772,14 @@ $cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
<p>
|
<p>
|
||||||
<b>How can I produce a PDF schema of my database?</b>
|
<b>How can I produce a PDF schema of my database?</b>
|
||||||
<br />
|
<br />
|
||||||
First you have to fill the 'relation' and 'pdf_table_position'
|
First you have to fill the 'relation' and 'table_info'
|
||||||
configuration variables.
|
configuration variables.
|
||||||
<br /><br />
|
<br /><br />
|
||||||
Then, think about your schema layout: which tables will go on which pages.
|
Then, think about your schema layout: which tables will go on which pages.
|
||||||
You have to fill in the 'relation' table the page number for each
|
You have to fill in the 'relation' table the page number for each
|
||||||
master-foreign link.
|
master-foreign link.
|
||||||
<br /><br />
|
<br /><br />
|
||||||
Then manually fill the pdf_table_position table with the coordinates,
|
Then manually fill the table_info table with the coordinates,
|
||||||
x being the width and y the height, and (0,0) at the upper left corner.
|
x being the width and y the height, and (0,0) at the upper left corner.
|
||||||
For example, x=100 and y=200 means that the table will be at 200 mm down
|
For example, x=100 and y=200 means that the table will be at 200 mm down
|
||||||
and 100 mm right from the upper left corner.
|
and 100 mm right from the upper left corner.
|
||||||
|
@@ -50,7 +50,7 @@ $cfg['Servers'][$i]['bookmarkdb'] = ''; // Bookmark db - leave blank
|
|||||||
$cfg['Servers'][$i]['bookmarktable'] = ''; // Bookmark table - leave blank for no bookmark support
|
$cfg['Servers'][$i]['bookmarktable'] = ''; // Bookmark table - leave blank for no bookmark support
|
||||||
$cfg['Servers'][$i]['relation'] = ''; // table to describe the relation between links (see doc)
|
$cfg['Servers'][$i]['relation'] = ''; // table to describe the relation between links (see doc)
|
||||||
// - leave blank for no relation-links support
|
// - leave blank for no relation-links support
|
||||||
$cfg['Servers'][$i]['pdf_table_position']
|
$cfg['Servers'][$i]['table_info']
|
||||||
= ''; // table to describe the
|
= ''; // table to describe the
|
||||||
// tables position for the
|
// tables position for the
|
||||||
// PDF schema - leave blank
|
// PDF schema - leave blank
|
||||||
@@ -76,7 +76,7 @@ $cfg['Servers'][$i]['verbose'] = '';
|
|||||||
$cfg['Servers'][$i]['bookmarkdb'] = '';
|
$cfg['Servers'][$i]['bookmarkdb'] = '';
|
||||||
$cfg['Servers'][$i]['bookmarktable'] = '';
|
$cfg['Servers'][$i]['bookmarktable'] = '';
|
||||||
$cfg['Servers'][$i]['relation'] = '';
|
$cfg['Servers'][$i]['relation'] = '';
|
||||||
$cfg['Servers'][$i]['pdf_table_position']
|
$cfg['Servers'][$i]['table_info']
|
||||||
= '';
|
= '';
|
||||||
$cfg['Servers'][$i]['AllowDeny']['order']
|
$cfg['Servers'][$i]['AllowDeny']['order']
|
||||||
= '';
|
= '';
|
||||||
@@ -98,7 +98,7 @@ $cfg['Servers'][$i]['verbose'] = '';
|
|||||||
$cfg['Servers'][$i]['bookmarkdb'] = '';
|
$cfg['Servers'][$i]['bookmarkdb'] = '';
|
||||||
$cfg['Servers'][$i]['bookmarktable'] = '';
|
$cfg['Servers'][$i]['bookmarktable'] = '';
|
||||||
$cfg['Servers'][$i]['relation'] = '';
|
$cfg['Servers'][$i]['relation'] = '';
|
||||||
$cfg['Servers'][$i]['pdf_table_position']
|
$cfg['Servers'][$i]['table_info']
|
||||||
= '';
|
= '';
|
||||||
$cfg['Servers'][$i]['AllowDeny']['order']
|
$cfg['Servers'][$i]['AllowDeny']['order']
|
||||||
= '';
|
= '';
|
||||||
|
@@ -438,7 +438,7 @@ echo ' ' . ' <input type="submit" value="' . $strGo . '" />' . "\n";
|
|||||||
<?php
|
<?php
|
||||||
// is this OK to check for 'class' support?
|
// is this OK to check for 'class' support?
|
||||||
if (PMA_PHP_INT_VERSION >= 40000
|
if (PMA_PHP_INT_VERSION >= 40000
|
||||||
&& (!empty($cfg['Server']['pdf_table_position']))
|
&& (!empty($cfg['Server']['table_info']))
|
||||||
&& $num_tables > 0) {
|
&& $num_tables > 0) {
|
||||||
?>
|
?>
|
||||||
<!-- PDF schema -->
|
<!-- PDF schema -->
|
||||||
|
@@ -380,7 +380,7 @@ class PMA_RT_Table
|
|||||||
|
|
||||||
//x and y
|
//x and y
|
||||||
$sql = 'SELECT x, y FROM '
|
$sql = 'SELECT x, y FROM '
|
||||||
. PMA_backquote($GLOBALS['cfg']['Server']['pdf_table_position'])
|
. PMA_backquote($GLOBALS['cfg']['Server']['table_info'])
|
||||||
. ' WHERE table_name = \'' . PMA_sqlAddslashes($table_name) . '\'';
|
. ' WHERE table_name = \'' . PMA_sqlAddslashes($table_name) . '\'';
|
||||||
$result = mysql_query($sql);
|
$result = mysql_query($sql);
|
||||||
if (!$result || !mysql_num_rows($result)) {
|
if (!$result || !mysql_num_rows($result)) {
|
||||||
|
Reference in New Issue
Block a user