2 /* vim: set expandtab sw=4 ts=4 sts=4: */
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 .= '&goto=export_relation_schema.php';
20 require_once './libraries/db_info.inc.php';
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
;
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
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']) {
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();
75 * This function will process the user input
78 $user_schema->userInputProcess($do);
81 * Now first show some possibility to select a page for the export of relation schema
83 $user_schema->selectPage();
86 * Possibility to create a new page:
88 $user_schema->createPage();
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();
99 ||
($do == 'selectpage' && isset($chpage))
100 ||
($do == 'createpage' && isset($chpage)))) {
102 * show Export schema generation options
104 $user_schema->displaySchemaGenerationOptions();
106 if ((isset($showwysiwyg) && $showwysiwyg == '1')) {
108 <script type
="text/javascript">
110 ToggleDragDrop('pdflayout');
116 } // end if ($cfgRelation['pdfwork'])
120 * Displays the footer
123 require_once './libraries/footer.inc.php';