Skip to content

Commit 9121a9e

Browse files
committed
3.0.0
1 parent 6711399 commit 9121a9e

File tree

6 files changed

+243
-248
lines changed

6 files changed

+243
-248
lines changed

code/ExportGroups.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ public static function addExportGroup($info, $L)
8787
"popup_height" => null,
8888
"popup_width" => null,
8989
"action" => "new_window",
90+
"action_button_text" => $L["word_generate"],
91+
"smarty_template" => "",
9092
"headers" => ""
9193
), $info);
9294

code/Module.class.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ public function addExcelExportGroup()
338338
list ($success, $message, $export_group_id) = ExportGroups::addExportGroup(array(
339339
"group_name" => $L["word_excel"],
340340
"icon" => "xls.gif",
341-
"action_button_text" => $L["word_generate"],
342341
"headers" => "Pragma: public\nCache-Control: max-age=0\nContent-Type: application/vnd.ms-excel; charset=utf-8\nContent-Disposition: attachment; filename={\$filename}",
343342
"smarty_template" => "<html>\n<head>\n</head>\n<body>\n\n{\$export_type_smarty_template}\n\n</body>\n</html>"
344343
), $L);
@@ -388,7 +387,7 @@ private function addXmlExportGroup ()
388387
"group_name" => $L["word_xml"],
389388
"visibility" => "hide",
390389
"icon" => "xml.jpg",
391-
"action_button_text" => $L["word_generate"],
390+
"headers" => "Content-type: application/xml; charset=\"octet-stream\"\r\nContent-Disposition: attachment; filename={\$filename}",
392391
"smarty_template" => "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\r\n\r\n{\$export_type_smarty_template}"
393392
), $L);
394393

@@ -442,8 +441,7 @@ private function addCsvExportGroup()
442441
"group_name" => $L["word_csv"],
443442
"visibility" => "hide",
444443
"icon" => "csv.gif",
445-
"action_button_text" => $L["word_generate"],
446-
"headers" => "Content-type: text/csv; charset=\"octet-stream\"\r\nContent-Disposition: attachment; filename={\$filename}",
444+
"headers" => "Content-type: text/csv;\r\nContent-Disposition: attachment; filename={\$filename}",
447445
"smarty_template" => "{\$export_type_smarty_template}"
448446
), $L);
449447

css/styles.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ ul.icon_list li {
7979
-moz-border-radius: 4px;
8080
border-radius: 4px;
8181
float: left;
82+
cursor: pointer;
8283
}
8384
ul.icon_list li:hover, ul.icon_list li.selected {
8485
background-color: #bad7eb;

export.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,8 @@
137137
$placeholders["export_types"] = $export_types;
138138
$placeholders["export_type_smarty_template"] = $export_type_smarty_template;
139139

140-
//print_r($placeholders);
141-
//exit;
142-
143140
$page = CoreGeneral::evalSmartyString($template, $placeholders);
144141

145-
146142
if ($export_group_info["action"] == "new_window" || $export_group_info["action"] == "popup") {
147143

148144
// if required, send the HTTP headers

lang/en_us.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@
8282

8383
$L["text_export_group_summary"] = "Add the new export group below. After this step you will be able to edit all aspects of the new export group.";
8484
$L["text_export_manager_intro"] = "Welcome to the Export Manager module! This module lets you control the various ways in which your form submissions can be viewed and downloaded.";
85-
$L["text_help_link"] = "For help on how to use this module, please see the <a href=\"https://docs.formtools.org/modules/export_manager/\">module help documentation</a>.";
86-
$L["text_reset_defaults"] = "This page lets you reset all the configurations for the Export Manager's export groups and types. This is convenient if you've accidentally broken something. If you're upgrading to 2.1.0, resetting to the defaults is <b>required</b> because earlier export type code is no longer compatible. Please note that any client permissions will be lost by resetting to the defaults here.";
85+
$L["text_help_link"] = "For help on how to use this module, please see the <a href=\"https://docs.formtools.org/modules/export_manager/\" target=\"_blank\">module help documentation</a>.";
86+
$L["text_reset_defaults"] = "This page lets you reset all the configurations for the Export Manager's export groups and types. This is convenient if you've accidentally broken something.";
8787

8888
$L["validation_select_rows_to_export"] = "Please select those rows you would like to export.";
8989
$L["validation_no_export_group_name"] = "Please enter the export group name.";

0 commit comments

Comments
 (0)