1. Check existence of mb_string, mysql and xml extensions before installation.
[openemr.git] / phpmyadmin / libraries / display_export.inc.php
blob9d251a3272d289a6a8f134ca425d85c89aab0797
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Displays export tab.
6 * @package PhpMyAdmin
7 */
8 if (! defined('PHPMYADMIN')) {
9 exit;
12 // Get relations & co. status
13 $cfgRelation = PMA_getRelationsParam();
15 if (isset($_REQUEST['single_table'])) {
16 $GLOBALS['single_table'] = $_REQUEST['single_table'];
19 require_once './libraries/file_listing.lib.php';
20 require_once './libraries/plugin_interface.lib.php';
21 require_once './libraries/display_export.lib.php';
23 /* Scan for plugins */
24 /* @var $export_list ExportPlugin[] */
25 $export_list = PMA_getPlugins(
26 "export",
27 'libraries/plugins/export/',
28 array(
29 'export_type' => $export_type,
30 'single_table' => isset($single_table)
34 /* Fail if we didn't find any plugin */
35 if (empty($export_list)) {
36 PMA_Message::error(
37 __('Could not load export plugins, please check your installation!')
38 )->display();
39 exit;
42 $html = PMA_getHtmlForExportOptionHeader($export_type, $db, $table);
44 $cfgRelation = PMA_getRelationsParam();
45 if ($cfgRelation['exporttemplateswork']) {
46 $html .= PMA_getHtmlForExportTemplateLoading($export_type);
49 $html .= '<form method="post" action="export.php" '
50 . ' name="dump" class="disableAjax">';
52 //output Hidden Inputs
53 $single_table_str = isset($single_table)? $single_table : '';
54 $sql_query_str = isset($sql_query)? $sql_query : '';
55 $html .= PMA_getHtmlForHiddenInput(
56 $export_type,
57 $db,
58 $table,
59 $single_table_str,
60 $sql_query_str
63 //output Export Options
64 $num_tables_str = isset($num_tables)? $num_tables : '';
65 $unlim_num_rows_str = isset($unlim_num_rows)? $unlim_num_rows : '';
66 $multi_values_str = isset($multi_values)? $multi_values : '';
67 $html .= PMA_getHtmlForExportOptions(
68 $export_type,
69 $db,
70 $table,
71 $multi_values_str,
72 $num_tables_str,
73 $export_list,
74 $unlim_num_rows_str
77 $html .= '</form>';
79 $response = PMA_Response::getInstance();
80 $response->addHTML($html);