Translated using Weblate (Korean)
[phpmyadmin.git] / tbl_printview.php
blobf8ca99d908ea707ce7122cffd69935a01a8b7d24
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Print view for table
6 * @package PhpMyAdmin
7 */
9 /**
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';
19 // Check parameters
21 if (! isset($the_tables) || ! is_array($the_tables)) {
22 $the_tables = array();
25 /**
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();
34 /**
35 * Defines the url to return to in case of error in a sql statement
37 if (/*overload*/mb_strlen($table)) {
38 $err_url = 'tbl_sql.php?' . PMA_URL_getCommon(
39 array('db' => $db, 'table' => $table)
41 } else {
42 $err_url = 'db_sql.php' . PMA_URL_getCommon(array('db' => $db));
46 /**
47 * Selects the database
49 $GLOBALS['dbi']->selectDb($db);
51 /**
52 * Multi-tables printview
54 if (isset($_POST['selected_tbl']) && is_array($_POST['selected_tbl'])) {
55 $the_tables = $_POST['selected_tbl'];
56 } elseif (/*overload*/mb_strlen($table)) {
57 $the_tables[] = $table;
60 $response->addHTML(PMA_getHtmlForTablesInfo($the_tables));
61 $response->addHTML(
62 PMA_getHtmlForTablesDetail(
63 $the_tables, $db, $cfg, $cfgRelation,
64 $cell_align_left
68 /**
69 * Displays the footer
71 $response->addHTML(PMA_getHtmlForPrintViewFooter());
73 exit;