From 44bd9a80b08b009defa0c7dab468e3e7e1c21b3a Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Tue, 26 May 2020 20:23:27 +0000 Subject: [PATCH] modelGraph : better text indentation git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5999 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- tools/modelGraph.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tools/modelGraph.php b/tools/modelGraph.php index 8cff261..95e749e 100755 --- a/tools/modelGraph.php +++ b/tools/modelGraph.php @@ -66,17 +66,17 @@ class modelgraph $d .= " /** TABLE '$table' */\n"; $d .= " \"$table\" [\n"; $d .= " shape = \"plaintext\"\n"; - $d .= " label = <"; - $d .= "\n"; + $d .= " label = <\n"; + $d .= "
\n"; // Display the name of the table as title - $d .= " \n"; // Display the fields $i = 0; foreach ($schema["fields"] as $field => $params) { - $d .= " \n"; - $d .= "\n"; + $d .= " \n"; - $d .= "\n"; - $d .= "\n"; - $d .= "\n"; + $d .= " \n"; $i++; } - $d .= "
"; + $d .= "
"; $d .= "$table
"; + $d .= "
"; if (key_exists ($field, $schema["foreign"])) { // Foreign Key @@ -90,16 +90,16 @@ class modelgraph else $d .= "◇"; $d .= ""; + $d .= " "; $d .= $field; $d .= ""; + $d .= " "; $d .= $params[0]; $d .= "
>\n"; + $d .= " >\n"; $d .= " ];\n"; } // Generate the links between the tables