Date.patterns = { ISO8601Long:"Y-m-d H:i:s", ISO8601Short:"Y-m-d", ShortDate: "n/j/Y", LongDate: "l, F d, Y", FullDateTime: "l, F d, Y g:i:s A", MonthDay: "F d", ShortTime: "g:i A", LongTime: "g:i:s A", SortableDateTime: "Y-m-d\\TH:i:s", UniversalSortableDateTime: "Y-m-d H:i:sO", YearMonth: "F, Y" }; /*SHADOWS DISABLE*/ Ext.form.ComboBox.prototype.shadow = false; Ext.Panel.prototype.shadow = false; Ext.menu.Menu.prototype.shadow = false; /* PRINT METHOD */ Ext.override(Ext.Element, { /** * @cfg {string} printCSS The file path of a CSS file for printout. */ printCSS: '/ext/app/window.print.css' /** * @cfg {Boolean} printStyle Copy the style attribute of this element to the print iframe. */ ,printStyle: false /** * @property {string} printTitle Page Title for printout. */ ,printTitle: document.title /** * Prints this element. * * @param config {object} (optional) */ ,print: function(config) { Ext.apply(this, config); //console.log(this.id+'-data'); var el = Ext.get(this.id+'-data').dom; var c = document.getElementById('printcontainer'); var iFrame = document.getElementById('printframe'); var strTemplate = '{0}{1}
{4}
'; var strLinkTpl = ''; var strAttr = ''; var strFormat; var strHTML; //Get rid of the old crap so we don't copy it //to our iframe if (iFrame != null) {c.removeChild(iFrame)}; if (c != null) {el.removeChild(c)}; //Copy attributes from this element. for (var i = 0; i < el.attributes.length; i++) { if (Ext.isEmpty(el.attributes[i].value) || el.attributes[i].value.toLowerCase() != 'null') { strFormat = Ext.isEmpty(el.attributes[i].value)? '{0}="true" ': '{0}="{1}" '; if (this.printStyle? this.printStyle: el.attributes[i].name.toLowerCase() != 'style') strAttr += String.format(strFormat, el.attributes[i].name, el.attributes[i].value); } } var strLink =''; if(this.printCSS){ if(!Ext.isArray(this.printCSS)) this.printCSS = [this.printCSS]; for(var i=0; i