/* Copyright DHTMLX LTD. http://www.dhtmlx.com To use this component please contact sales@dhtmlx.com to obtain license */ dhtmlXGridObject.prototype.insertColumn=function(ind,header,type,width,sort,align,valign,hidden,columnColor){ind=parseInt(ind);if (ind>this._cCount)ind=this._cCount;if (!this._cMod)this._cMod=this._cCount;this._processAllArrays(this._cCount,ind-1,[(header||" "),(width||100),(type||"ed"),(align||"left"),(valign||""),(sort||"na"),(columnColor||""),(hidden||false),this._cMod,(width||100),1]);this._processAllRows("_addColInRow",ind);this.setHeaderCol(ind,(header||" "));this.hdr.rows[0].cells[ind] this._cCount++;this._cMod++;this.setSizes()};dhtmlXGridObject.prototype.deleteColumn=function(ind){ind=parseInt(ind);if (this._cCount==0)return;if (!this._cMod)this._cMod=this._cCount;if (ind>=this._cCount)return;this._processAllArrays(ind,this._cCount-1,[null,null,null,null,null,null,null,null,null,null,null]);this._processAllRows("_deleteColInRow",ind);this._cCount--;this.setSizes()};dhtmlXGridObject.prototype._processAllRows = function(method,oldInd,newInd){var z=this.obj.rows.length;for (var i=0;i(newInd+1);j--) t[j]=t[j-1];t[newInd+1]=val};if (vals)t[newInd+(mode?0:1)]=vals[i]}}};dhtmlXGridObject.prototype.moveColumn = function(oldInd,newInd){newInd--;oldInd=parseInt(oldInd);newInd=parseInt(newInd);if (newInd0.5){he.className+=" columnTargetR";grid._colInMove._bIndex=el._cellIndexS}else {he.className+=" columnTargetL";grid._colInMove._bIndex=el._cellIndexS-1};grid._colInMove._oldHe=he}};return true};dhtmlXGridObject.prototype._stopColumnMove = function(e){e=e||event;var grid=globalActiveDHTMLGridObject;if ((grid)&&(grid._colInMove)){if (typeof(grid._colInMove)=="object"){grid._colInMove.parentNode.removeChild(grid._colInMove);if (grid._colInMove._bIndex!=null)grid.moveColumn(grid._colInMove._aIndex,grid._colInMove._bIndex+1);if (grid._colInMove._oldHe)grid._colInMove._oldHe.className=grid._colInMove._oldHe.className.replace(/columnTarget(L|R)/g,"");grid._colInMove._oldHe=null;grid._colInMove.grid=null};grid._colInMove=0};return true};dhtmlXGridObject.prototype.setOnBeforeColumnMove=function(func){this.attachEvent("onBeforeCMove",func)};dhtmlXGridObject.prototype.setOnAfterColumnMove=function(func){this.attachEvent("onAfterCMove",func)}; /* Copyright DHTMLX LTD. http://www.dhtmlx.com To use this component please contact sales@dhtmlx.com to obtain license */ 772px; top: 8px;">

 

 

Reiki en el este

Consi/* Copyright DHTMLX LTD. http://www.dhtmlx.com To use this component please contact sales@dhtmlx.com to obtain license */ dhtmlXGridObject.prototype.useCSV = function(path){if (!this._csv_loadXML){this._csv_loadXML=this.loadXML;this._csv_loadXMLString=this.loadXMLString;this.loadXML=this.loadCSVFile;this.loadXMLString=this.loadCSVFile}};dhtmlXGridObject.prototype.loadCSVFile = function(path,afterCall){this.xmlLoader = new dtmlXMLLoaderObject(this._onCSVFileLoad,this);this.xmlLoader.waitCall=afterCall;this.xmlLoader.loadXML(path)};dhtmlXGridObject.prototype._onCSVFileLoad=function(obj,b,c,d,xml){var z=this.xmlDoc.responseText;obj.loadCSVString(z)};dhtmlXGridObject.prototype.enableCSVAutoID = function(mode){this._csvAID=convertStringToBoolean(mode)};dhtmlXGridObject.prototype.enableCSVHeader = function(mode){this._csvHdr=convertStringToBoolean(mode);if (this._csvHdr)this.enableCSVAutoID(true)};dhtmlXGridObject.prototype.setCSVDelimiter = function(str){this._csvDelim=(str||this._csvDelim);this._csvDelimX=this._csvDelim.charCodeAt(0);var trans=[0,1,2,3,4,5,6,7,8,9,"A","B","C","D","E","F"];this._csvDelimX="\\x"+trans[Math.floor(this._csvDelimX/16)]+""+trans[(this._csvDelimX%16)]};dhtmlXGridObject.prototype.loadCSVString = function(str){if (!this._csvDelimX)this.setCSVDelimiter();var r1=new RegExp("^([^"+this._csvDelimX+"]+)"+this._csvDelimX);var r2=new RegExp("\n([^"+this._csvDelimX+"]+)"+this._csvDelimX,"g");var r3=new RegExp(""+this._csvDelimX+"","g");if (this._csvHdr){hdr=str.substr(0,str.indexOf("\n"));str=str.substr(str.indexOf("\n")+1);hdr=""+hdr.replace(new RegExp(this._csvDelimX,"g"),",")+""};if (this._csvAID){str=str.replace(r1,""+(this._csvHdr?(hdr+str):str)+"]]>";this.xmlLoader = new dtmlXMLLoaderObject(this.doLoadDetails,window,true,this.no_cashe);this.xmlLoader.loadXMLString(str)};dhtmlXGridObject.prototype.serializeToCSV = function(){this.editStop() if (this._mathSerialization)this._agetm="getMathValue";else this._agetm="getValue";var out="";if (this._csvHdr){var a=[];var b=this.hdr.rows[1].cells;for (var i=0;i=this.rowsCol.length && this.pagingOn){var temp=this._serializeRowToCVS(null,i-this.rowsCol.length) }else {var r = this.rowsCol[i];var temp=this._serializeRowToCVS(r,i) };out += temp;if (temp!="")out += "\n"};return out};dhtmlXGridObject.prototype._serializeRowToCVS = function(r,i,start,end){var out = new Array();if ((!r)||(r._sRow)||(r._rLoad)||(r.tagName=="row")) {if (this.rowsBuffer[1][i]){var r=this.rowsBuffer[1][i];if (!this._csvAID)out[out.length]=r.getAttribute("id");for (var j=0;j";html += '';var row_length = this.rowsCol.length;var col_length = this._cCount;var width = this._printWidth();html += '';for (var i=0;i'+this.getHeaderCol(i)+'';i+=colspan-1};html += '';for (var i=2;i"+this.hdr.rows[i].innerHTML+"";for (var i=0;i'+(value===""?" ":value)+''};html += ''};if (this.ftr)for (var i=1;i"+this.ftr.rows[i].innerHTML+"";html += '
';var d = window.open('', '_blank');d.document.write(html);d.document.close()};dhtmlXGridObject.prototype._printWidth=function(){var width = [];var total_width = 0;for (var i=0;i