CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

27639.patch

Jonas Renggli, 2011-06-22 11:34

Download (4 kB)

 
typo3conf/ext/powermail/pageTSconfig.txt (revision )
20 20
        timeFormat = H:i
21 21
        uploadFolder = uploads/tx_powermail/files/
22 22
    }
23
	enableXlsExport = 1
24
	enableCsvExport = 1
25
	enableHtmlExport = 1
26
	enablePdfExport = 0
23 27
}
typo3conf/ext/powermail/res/js/powermail_backend.js (revision )
31 31
Powermail.topMenu = {
32 32
	init: function() {
33 33
        var filterUrlPart = '&pid=' + Powermail.statics.pid + '&startDateTime=' + Powermail.statics.startDateTime + '&endDateTime=' + Powermail.statics.endDateTime;
34
        var xls_button = {tag: 'a', href: '?export=xls' + filterUrlPart, target:'_self', html: Powermail.statics.excelIcon, title: Powermail.lang.exportExcelText};
35
        var csv_button = {tag: 'a', href: '?export=csv' + filterUrlPart, target:'_self', html: Powermail.statics.csvIcon, title: Powermail.lang.exportCsvText};
36
        var html_button = {tag: 'a', href: '?export=html' + filterUrlPart, target:'_self', html: Powermail.statics.htmlIcon, title: Powermail.lang.exportHtmlText};
37
        var pdf_button = {tag: 'a', href: '?export=pdf' + filterUrlPart, target:'_self', html: Powermail.statics.pdfIcon, title: Powermail.lang.exportPdfText};
38
		if (!Powermail.statics.phpexcel_library_loaded) {
39
            var xls_button = {tag: 'a', href: '#', target:'_self', html: Powermail.statics.excelIcon, title: Powermail.lang.noExcel, cls: 'powermail_icon_inactive', onclick: 'msg(\'' + Powermail.lang.noExcel + '\'); return false;'};
40
		}
34
        var xls_button = Powermail.statics.enableXlsExport ? {tag: 'a', href: '?export=xls' + filterUrlPart, target:'_self', html: Powermail.statics.excelIcon, title: Powermail.lang.exportExcelText} : {};
35
        var csv_button = Powermail.statics.enableCsvExport ? {tag: 'a', href: '?export=csv' + filterUrlPart, target:'_self', html: Powermail.statics.csvIcon, title: Powermail.lang.exportCsvText} : {};
36
        var html_button = Powermail.statics.enableHtmlExport ? {tag: 'a', href: '?export=html' + filterUrlPart, target:'_self', html: Powermail.statics.htmlIcon, title: Powermail.lang.exportHtmlText} : {};
37
        var pdf_button = Powermail.statics.enablePdfExport ? {tag: 'a', href: '?export=pdf' + filterUrlPart, target:'_self', html: Powermail.statics.pdfIcon, title: Powermail.lang.exportPdfText} : {};
38

  
41 39
		var powermailtopmenu = new Ext.Toolbar({
42 40
			id: 'topmenu',
43 41
		    width: 'auto',
typo3conf/ext/powermail/mod1/index.php (revision )
122 122
						"endDateTime": 0,
123 123
						"dateFormat": "' . htmlspecialchars($this->tsconfig['properties']['config.']['list.']['dateFormat']) . '",
124 124
						"datetimeFormat": "' . htmlspecialchars($this->tsconfig['properties']['config.']['list.']['datetimeFormat']) . '",
125
						"phpexcel_library_loaded": ' . (t3lib_extMgm::isLoaded('phpexcel_library') ? '1' : '0') . ',
125
						"enableXlsExport": ' . ($this->tsconfig['properties']['config.']['enableXlsExport'] && t3lib_extMgm::isLoaded('phpexcel_library') ? '1' : '0') . ',
126
						"enableCsvExport": ' . ($this->tsconfig['properties']['config.']['enableCsvExport'] ? '1' : '0') . ',
127
						"enableHtmlExport": ' . ($this->tsconfig['properties']['config.']['enableHtmlExport'] ? '1' : '0') . ',
128
						"enablePdfExport": ' . ($this->tsconfig['properties']['config.']['enablePdfExport'] ? '1' : '0') . ',
126 129
						"mailsOnCurrentPage": ' . $this->mailsOnCurrentPage() . ',
127 130
						"uploadFolder": "' . htmlspecialchars($this->tsconfig['properties']['config.']['list.']['uploadFolder']) . '"
128 131
					};