diff --git a/ChangeLog b/ChangeLog index 5b3c024ca..69023716a 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2002-05-15 Loïc Chapeaux + * db_details_structure.php3; Documentation.html: coding standards. + 2002-05-14 Marc Delisle * pdf_schema.php3, db_details_structure.php3, lang/*, fpdf/*, Documentation.html: new feature: pdf schema output, diff --git a/Documentation.html b/Documentation.html index b81d62880..29847a12e 100755 --- a/Documentation.html +++ b/Documentation.html @@ -592,16 +592,16 @@ $cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://'
  • 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;
  • display links on the table properties page, to check referential integrity (display missing foreign keys) for each described key;
  • - 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");
  • 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.

    - 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.

    To use this functionality you have to:
      @@ -673,8 +673,8 @@ $cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://'      CREATE TABLE `pdf_table_position` (
             `table_name` varchar(50) NOT NULL default '',
             `x` float unsigned NOT NULL default '0',
      -        `y` float unsigned NOT NULL default '0'
      -        PRIMARY KEY (`table_name`)
      +        `y` float unsigned NOT NULL default '0',
      +        PRIMARY KEY (`table_name`)
           ) TYPE=MyISAM COMMENT='Table positions for PDF schema';
      @@ -683,11 +683,12 @@ $cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://' $cfg['Servers'][$i]['pdf_table_position']
    • - 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.

    - See also this usage tip.

    + See also this usage tip. +

    $cfg['ServerDefault'] integer
    @@ -1672,6 +1673,7 @@ $cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://'
  • Click "Submit query"

  • +

    How can I produce a PDF schema of my database? @@ -1679,20 +1681,19 @@ $cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://' First you have to fill the 'relation' and 'pdf_table_position' configuration variables.

    - 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.

    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.

    To produce the output, click on your database name, then choose 'Structure' and 'Display PDF schema', and enter the page number.

    -

    [phpMyAdmin project]

    diff --git a/db_details_structure.php3 b/db_details_structure.php3 index 6fe279e66..66a40f445 100644 --- a/db_details_structure.php3 +++ b/db_details_structure.php3 @@ -436,36 +436,35 @@ echo ' ' . ' ' . "\n"; = 40000 +if (PMA_PHP_INT_VERSION >= 40000 && (!empty($cfg['Server']['pdf_table_position']))) { -?> - + ?>

  • -' . "\n"; -echo ' ' . $strPageNumber . ' ' . "\n"; -echo ' ' . '
    ' . "\n"; -echo ' ' . '' . "\n"; -echo ' ' . $strShowGrid . ' 
    ' . "\n"; -echo ' ' . '' . "\n"; -echo ' ' . $strShowColor . ' 
    ' . "\n"; -echo ' ' . '' . "\n"; -echo ' ' . $strShowTableDimension . ' ' . "\n"; -echo ' ' . ' ' . "\n"; -?> + ' . "\n"; + echo ' ' . $strPageNumber . ' ' . "\n"; + echo ' ' . '
    ' . "\n"; + echo ' ' . '' . "\n"; + echo ' ' . $strShowGrid . ' 
    ' . "\n"; + echo ' ' . '' . "\n"; + echo ' ' . $strShowColor . ' 
    ' . "\n"; + echo ' ' . '' . "\n"; + echo ' ' . $strShowTableDimension . ' ' . "\n"; + echo ' ' . ' ' . "\n"; + ?>
  • -'; -echo ''; /** * Displays the footer