diff options
author | Christian Foellmann <foellmann@foe-services.de> | 2014-04-05 17:35:38 +0400 |
---|---|---|
committer | Christian Foellmann <foellmann@foe-services.de> | 2014-04-05 17:35:38 +0400 |
commit | 9eb27ef6ebc763ddc6f6278462b8ffeed6de0e36 (patch) | |
tree | d3b4a1c7ae68cafb05b9d60040c9c22d457cee62 /tbl_printview.php | |
parent | d472216554769ba596795f23a70c1809fa8897a3 (diff) |
INIT phpmyadmin 4.1.12 multilanguage
Diffstat (limited to 'tbl_printview.php')
-rw-r--r-- | tbl_printview.php | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/tbl_printview.php b/tbl_printview.php new file mode 100644 index 0000000000..fd500eaf46 --- /dev/null +++ b/tbl_printview.php @@ -0,0 +1,73 @@ +<?php +/* vim: set expandtab sw=4 ts=4 sts=4: */ +/** + * Print view for table + * + * @package PhpMyAdmin + */ + +/** + * include the common file + */ +require_once 'libraries/common.inc.php'; + +$response = PMA_Response::getInstance(); +$response->getHeader()->enablePrintView(); + +require 'libraries/tbl_common.inc.php'; + +// Check parameters + +if (! isset($the_tables) || ! is_array($the_tables)) { + $the_tables = array(); +} + +/** + * Gets the relations settings + */ +require_once 'libraries/transformations.lib.php'; +require_once 'libraries/Index.class.php'; +require_once 'libraries/tbl_printview.lib.php'; + +$cfgRelation = PMA_getRelationsParam(); + +/** + * Defines the url to return to in case of error in a sql statement + */ +if (strlen($table)) { + $err_url = 'tbl_sql.php?' . PMA_URL_getCommon($db, $table); +} else { + $err_url = 'db_sql.php?' . PMA_URL_getCommon($db); +} + + +/** + * Selects the database + */ +$GLOBALS['dbi']->selectDb($db); + +/** + * Multi-tables printview + */ +if (isset($_POST['selected_tbl']) && is_array($_POST['selected_tbl'])) { + $the_tables = $_POST['selected_tbl']; +} elseif (strlen($table)) { + $the_tables[] = $table; +} + +$response->addHTML(PMA_getHtmlForTablesInfo($the_tables)); +$response->addHTML( + PMA_getHtmlForTablesDetail( + $the_tables, $db, $cfg, $cfgRelation, + isset($pk_array)? $pk_array: array(), + $cell_align_left + ) +); + +/** + * Displays the footer + */ +$response->addHTML(PMA_getHtmlForPrintViewFooter()); + +exit; +?> |