Export Relation Schema: deleting wrong name files
[phpmyadmin-themes.git] / export_relation_schema.php
blobc3c98528390fb2a8abd213c8e6fd75153c674256
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @version $Id$
6 * @package phpMyAdmin
7 */
9 /**
10 * Gets some core libraries
13 require_once './libraries/common.inc.php';
14 require_once './libraries/db_common.inc.php';
15 require './libraries/StorageEngine.class.php';
17 $active_page = 'db_operations.php';
18 require_once './libraries/db_common.inc.php';
19 $url_query .= '&amp;goto=export_relation_schema.php';
20 require_once './libraries/db_info.inc.php';
22 /**
23 * Settings for relation stuff
25 require_once './libraries/relation.lib.php';
26 $cfgRelation = PMA_getRelationsParam();
28 // This is to avoid "Command out of sync" errors. Before switching this to
29 // a value of 0 (for MYSQLI_USE_RESULT), please check the logic
30 // to free results wherever needed.
31 $query_default_option = PMA_DBI_QUERY_STORE;
33 /**
34 * Now in ./libraries/relation.lib.php we check for all tables
35 * that we need, but if we don't find them we are quiet about it
36 * so people can work without.
37 * This page is absolutely useless if you didn't set up your tables
38 * correctly, so it is a good place to see which tables we can and
39 * complain ;-)
41 if (!$cfgRelation['relwork']) {
42 echo sprintf(__('<b>%s</b> table not found or not set in %s'), 'relation', 'config.inc.php') . '<br />' . "\n"
43 . PMA_showDocu('relation') . "\n";
44 require_once './libraries/footer.inc.php';
47 if (!$cfgRelation['displaywork']) {
48 echo sprintf(__('<b>%s</b> table not found or not set in %s'), 'table_info', 'config.inc.php') . '<br />' . "\n"
49 . PMA_showDocu('table_info') . "\n";
50 require_once './libraries/footer.inc.php';
53 if (!isset($cfgRelation['table_coords'])){
54 echo sprintf(__('<b>%s</b> table not found or not set in %s'), 'table_coords', 'config.inc.php') . '<br />' . "\n"
55 . PMA_showDocu('table_coords') . "\n";
56 require_once './libraries/footer.inc.php';
58 if (!isset($cfgRelation['pdf_pages'])) {
59 echo sprintf(__('<b>%s</b> table not found or not set in %s'), 'pdf_page', 'config.inc.php') . '<br />' . "\n"
60 . PMA_showDocu('pdf_pages') . "\n";
61 require_once './libraries/footer.inc.php';
64 if ($cfgRelation['pdfwork']) {
66 /**
67 * User Object Created for displaying the HTML options
68 * so, user can play with it and perform export of relations schema
71 require_once './libraries/schema/user_schema.php';
72 $user_schema = new PMA_User_Schema();
74 /**
75 * This function will process the user input
78 $user_schema->userInputProcess($do);
80 /**
81 * Now first show some possibility to select a page for the export of relation schema
83 $user_schema->selectPage();
85 /**
86 * Possibility to create a new page:
88 $user_schema->createPage();
90 /**
91 * After selection of page or creating a page
92 * It will show you the list of tables
93 * A dashboard will also be shown where you can position the tables
95 $user_schema->showTableDashBoard();
97 if (isset($do)
98 && ($do == 'edcoord'
99 || ($do == 'selectpage' && isset($chpage))
100 || ($do == 'createpage' && isset($chpage)))) {
101 /**
102 * show Export schema generation options
104 $user_schema->displaySchemaGenerationOptions();
106 if ((isset($showwysiwyg) && $showwysiwyg == '1')) {
108 <script type="text/javascript">
109 //<![CDATA[
110 ToggleDragDrop('pdflayout');
111 //]]>
112 </script>
113 <?php
115 } // end if
116 } // end if ($cfgRelation['pdfwork'])
120 * Displays the footer
122 echo "\n";
123 require_once './libraries/footer.inc.php';