PK z`Ï<-„ÍÓ Ó dhtmlxgrid_export.jsdhtmlXGridObject.prototype.toPDF=function(url,mode,header,footer,rows){
mode = mode || "color";
var grid = this;
grid._asCDATA = true;
eXcell_ch.prototype.getContent = function(){
return this.getValue();
};
eXcell_ra.prototype.getContent = function(){
return this.getValue();
};
function xml_top(profile) {
var spans = [];
for (var i=1; i"+grid._serialiseExportConfig(spans).replace(/^$/,"columns>");
for (var i=2; i < grid.hdr.rows.length; i++) {
var empty_cols = 0;
var row = grid.hdr.rows[i];
var cxml="";
for (var j=0; j < grid._cCount; j++) {
var s = spans[i][j];
var rspan = (( s[0] && s[0] > 1 ) ? ' colspan="'+s[0]+'" ' : "");
if (s[1] && s[1] > 1){
rspan+=' rowspan="'+s[1]+'" ';
empty_cols = -1;
}
var val = "";
for (var k=0; k";
};
if (empty_cols != grid._cCount)
xml+="\n"+cxml+"";
};
xml+="\n";
return xml;
};
function xml_body() {
var xml =[];
if (rows)
for (var i=0; i";
}
};
return xml+"";
}
function xml_end(){
var xml = "";
return xml;
}
var d=document.createElement("div");
d.style.display="none";
document.body.appendChild(d);
var uid = "form_"+grid.uid();
d.innerHTML = '';
document.getElementById(uid).firstChild.value = xml_top(mode).replace("\u2013", "-") + xml_body() + xml_end();
document.getElementById(uid).submit();
d.parentNode.removeChild(d);
grid = null;
};
dhtmlXGridObject.prototype._serialiseExportConfig=function(spans){
var out = "";
for (var i = 0; i < this.hdr.rows[0].cells.length; i++){
if (this._srClmn && !this._srClmn[i]) continue;
var sort = this.fldSort[i];
if (sort == "cus"){
sort = this._customSorts[i].toString();
sort=sort.replace(/function[\ ]*/,"").replace(/\([^\f]*/,"");
}
var s = spans[1][i];
var rpans = (( s[1] && s[1] > 1 ) ? ' rowspan="'+s[1]+'" ' : "")+(( s[0] && s[0] > 1 ) ? ' colspan="'+s[0]+'" ' : "");
out+="";
if (this._asCDATA)
out+="";
else
out+=this.getHeaderCol(i);
var z = this.getCombo(i);
if (z)
for (var j = 0; j < z.keys.length; j++)out+="";
out+="";
}
return out+="";
};
dhtmlXGridObject.prototype.toExcel = dhtmlXGridObject.prototype.toPDF;
PK z`Ï<-„ÍÓ Ó dhtmlxgrid_export.jsPK B