2 /* vim: set expandtab sw=4 ts=4 sts=4: */
10 * include the common file
12 require_once 'libraries/common.inc.php';
14 $response = PMA_Response
::getInstance();
15 $response->getHeader()->enablePrintView();
17 require 'libraries/tbl_common.inc.php';
21 if (! isset($the_tables) ||
! is_array($the_tables)) {
22 $the_tables = array();
26 * Gets the relations settings
28 require_once 'libraries/transformations.lib.php';
29 require_once 'libraries/Index.class.php';
30 require_once 'libraries/tbl_printview.lib.php';
32 $cfgRelation = PMA_getRelationsParam();
35 * Defines the url to return to in case of error in a sql statement
38 $err_url = 'tbl_sql.php?' . PMA_URL_getCommon($db, $table);
40 $err_url = 'db_sql.php?' . PMA_URL_getCommon($db);
45 * Selects the database
47 $GLOBALS['dbi']->selectDb($db);
50 * Multi-tables printview
52 if (isset($_POST['selected_tbl']) && is_array($_POST['selected_tbl'])) {
53 $the_tables = $_POST['selected_tbl'];
54 } elseif (strlen($table)) {
55 $the_tables[] = $table;
58 $response->addHTML(PMA_getHtmlForTablesInfo($the_tables));
60 PMA_getHtmlForTablesDetail(
61 $the_tables, $db, $cfg, $cfgRelation,
62 isset($pk_array)?
$pk_array: array(),
70 $response->addHTML(PMA_getHtmlForPrintViewFooter());