|   | "; + } + for($i=1;$i<=$this->colcount($sheet);$i++) { + $style = "width:" . ($this->colwidth($i,$sheet)*1) . "px;"; + if ($this->colhidden($i,$sheet)) { + $style .= "display:none;"; + } + $out .= "\n\t\t" . strtoupper($this->colindexes[$i]) . " | "; + } + $out .= "
|---|---|
| $row | "; + } + for($col=1;$col<=$this->colcount($sheet);$col++) { + // Account for Rowspans/Colspans + $rowspan = $this->rowspan($row,$col,$sheet); + $colspan = $this->colspan($row,$col,$sheet); + for($i=0;$i<$rowspan;$i++) { + for($j=0;$j<$colspan;$j++) { + if ($i>0 || $j>0) { + $this->sheets[$sheet]['cellsInfo'][$row+$i][$col+$j]['dontprint']=1; + } + } + } + if(!$this->sheets[$sheet]['cellsInfo'][$row][$col]['dontprint']) { + $style = $this->style($row,$col,$sheet); + if ($this->colhidden($col,$sheet)) { + $style .= "display:none;"; + } + $out .= "\n\t\t 1?" colspan=$colspan":"") . ($rowspan > 1?" rowspan=$rowspan":"") . ">";
+ $val = $this->val($row,$col,$sheet);
+ $val = ($val===floatval(0) ? '0' : $val);
+ if ($val=='') { $val=" "; }
+ else {
+ $val = htmlentities($val,ENT_QUOTES,$this->_defaultEncoding);
+ $link = $this->hyperlink($row,$col,$sheet);
+ if ($link!='') {
+ $val = "$val";
+ }
+ }
+ $out .= " | ";
+ }
+ }
+ $out .= "