Coding standards
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2002-05-15 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||
* db_details_structure.php3; Documentation.html: coding standards.
|
||||
|
||||
2002-05-14 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* pdf_schema.php3, db_details_structure.php3, lang/*, fpdf/*,
|
||||
Documentation.html: new feature: pdf schema output,
|
||||
|
@@ -592,16 +592,16 @@ $cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
||||
</li>
|
||||
<li>
|
||||
display in an optional tooltip the "display field"
|
||||
when browsing the master table, if
|
||||
you move the mouse to a column containing a foreign key;
|
||||
when browsing the master table, if you move the mouse to a column
|
||||
containing a foreign key;
|
||||
</li>
|
||||
<li>
|
||||
display links on the table properties page, to check referential
|
||||
integrity (display missing foreign keys) for each described key;
|
||||
</li>
|
||||
<li>
|
||||
in query-by-example, create automatic joints (see an example
|
||||
in the FAQ, section "Using phpMyAdmin");
|
||||
in query-by-example, create automatic joints (see an example in
|
||||
the FAQ, section "Using phpMyAdmin");
|
||||
</li>
|
||||
<li>
|
||||
enable you to get a PDF schema of your database.
|
||||
@@ -661,8 +661,8 @@ $cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
||||
output. This configuration variable will hold the name of this special
|
||||
table.
|
||||
<br /><br />
|
||||
This feature is supported under PHP4, and you must be using also
|
||||
the 'relation' feature.
|
||||
This feature is supported under PHP4, and you must be using also the
|
||||
'relation' feature.
|
||||
<br /><br />
|
||||
To use this functionality you have to:
|
||||
<ul>
|
||||
@@ -673,8 +673,8 @@ $cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
||||
CREATE TABLE `pdf_table_position` (<br />
|
||||
`table_name` varchar(50) NOT NULL default '',<br />
|
||||
`x` float unsigned NOT NULL default '0',<br />
|
||||
`y` float unsigned NOT NULL default '0'<br />
|
||||
PRIMARY KEY (`table_name`)<br />
|
||||
`y` float unsigned NOT NULL default '0',<br />
|
||||
PRIMARY KEY (`table_name`)<br />
|
||||
) TYPE=MyISAM COMMENT='Table positions for PDF schema';<br />
|
||||
</tt>
|
||||
</li>
|
||||
@@ -683,11 +683,12 @@ $cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
||||
<tt>$cfg['Servers'][$i]['pdf_table_position']</tt>
|
||||
</li>
|
||||
<li>
|
||||
then manually fill this table with information about
|
||||
the table positions on the PDF schema.
|
||||
then manually fill this table with information about the table
|
||||
positions on the PDF schema.
|
||||
</li>
|
||||
</ul><br />
|
||||
See also this <a class="navigation" href="#faqpdf">usage tip.</a><br /><br />
|
||||
See also this <a class="navigation" href="#faqpdf">usage tip.</a>
|
||||
<br /><br />
|
||||
</dd>
|
||||
|
||||
<dt><b>$cfg['ServerDefault']</b> integer</dt>
|
||||
@@ -1672,6 +1673,7 @@ $cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
||||
<li>Click "Submit query"</li>
|
||||
</ul>
|
||||
<br />
|
||||
|
||||
<a name="faqpdf"></a>
|
||||
<p>
|
||||
<b>How can I produce a PDF schema of my database?</b>
|
||||
@@ -1679,20 +1681,19 @@ $cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
||||
First you have to fill the 'relation' and 'pdf_table_position'
|
||||
configuration variables.
|
||||
<br /><br />
|
||||
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 master-foreign link.
|
||||
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
|
||||
master-foreign link.
|
||||
<br /><br />
|
||||
Then manually fill the pdf_table_position table with the coordinates,
|
||||
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 and 100 mm right from the upper left corner.
|
||||
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.
|
||||
<br /><br />
|
||||
To produce the output, click on your database name, then choose 'Structure'
|
||||
and 'Display PDF schema', and enter the page number.
|
||||
</p>
|
||||
|
||||
|
||||
<a name="faqproject"></a>
|
||||
<h3>[phpMyAdmin project]</h3>
|
||||
<p>
|
||||
|
@@ -436,36 +436,35 @@ echo ' ' . ' <input type="submit" value="' . $strGo . '" />' . "\n";
|
||||
</li>
|
||||
|
||||
<?php
|
||||
|
||||
// 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']))) {
|
||||
?>
|
||||
|
||||
?>
|
||||
<!-- PDF schema -->
|
||||
<li>
|
||||
<form method="post" action="pdf_schema.php3">
|
||||
<input type="hidden" name="server" value="<?php echo $server; ?>" />
|
||||
<input type="hidden" name="lang" value="<?php echo $lang; ?>" />
|
||||
<input type="hidden" name="db" value="<?php echo $db; ?>" />
|
||||
<?php
|
||||
echo ' ' . $strDisplayPDF . ' :<br />' . "\n";
|
||||
echo ' ' . $strPageNumber . ' ' . "\n";
|
||||
echo ' ' . '<input type="text" name="pdf_page_number" size="3" class="textfield" value="1" /> <br />' . "\n";
|
||||
echo ' ' . '<input type="checkbox" name="show_grid" />' . "\n";
|
||||
echo ' ' . $strShowGrid . ' <br />' . "\n";
|
||||
echo ' ' . '<input type="checkbox" name="show_color" checked="checked" />' . "\n";
|
||||
echo ' ' . $strShowColor . ' <br />' . "\n";
|
||||
echo ' ' . '<input type="checkbox" name="show_table_dimension" />' . "\n";
|
||||
echo ' ' . $strShowTableDimension . ' ' . "\n";
|
||||
echo ' ' . ' <input type="submit" value="' . $strGo . '" />' . "\n";
|
||||
?>
|
||||
<?php
|
||||
echo ' ' . $strDisplayPDF . ' :<br />' . "\n";
|
||||
echo ' ' . $strPageNumber . ' ' . "\n";
|
||||
echo ' ' . '<input type="text" name="pdf_page_number" size="3" class="textfield" value="1" /><br />' . "\n";
|
||||
echo ' ' . '<input type="checkbox" name="show_grid" />' . "\n";
|
||||
echo ' ' . $strShowGrid . ' <br />' . "\n";
|
||||
echo ' ' . '<input type="checkbox" name="show_color" checked="checked" />' . "\n";
|
||||
echo ' ' . $strShowColor . ' <br />' . "\n";
|
||||
echo ' ' . '<input type="checkbox" name="show_table_dimension" />' . "\n";
|
||||
echo ' ' . $strShowTableDimension . ' ' . "\n";
|
||||
echo ' ' . ' <input type="submit" value="' . $strGo . '" />' . "\n";
|
||||
?>
|
||||
</form>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
<?php
|
||||
} // end if
|
||||
|
||||
echo "\n" . '</ul>';
|
||||
|
||||
echo '</ul>';
|
||||
|
||||
/**
|
||||
* Displays the footer
|
||||
|
Reference in New Issue
Block a user