| 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',
|