@@ 904-913 (lines=10) @@ | ||
901 | if (!$this->_useInlineCss) { |
|
902 | $gridlines = $pSheet->getShowGridLines() ? ' gridlines' : ''; |
|
903 | $html .= ' <table border="0" cellpadding="0" cellspacing="0" id="sheet' . $sheetIndex . '" class="sheet' . $sheetIndex . $gridlines . '">' . PHP_EOL; |
|
904 | } else { |
|
905 | $style = isset($this->_cssStyles['table']) ? |
|
906 | $this->_assembleCSS($this->_cssStyles['table']) : ''; |
|
907 | ||
908 | if ($this->_isPdf && $pSheet->getShowGridLines()) { |
|
909 | $html .= ' <table border="1" cellpadding="1" id="sheet' . $sheetIndex . '" cellspacing="4" style="' . $style . '">' . PHP_EOL; |
|
910 | } else { |
|
911 | $html .= ' <table border="0" cellpadding="1" id="sheet' . $sheetIndex . '" cellspacing="4" style="' . $style . '">' . PHP_EOL; |
|
912 | } |
|
913 | } |
|
914 | ||
915 | // Write <col> elements |
|
916 | $highestColumnIndex = PHPExcel_Cell::columnIndexFromString($pSheet->getHighestColumn()) - 1; |
|
@@ 919-925 (lines=7) @@ | ||
916 | $highestColumnIndex = PHPExcel_Cell::columnIndexFromString($pSheet->getHighestColumn()) - 1; |
|
917 | $i = -1; |
|
918 | while($i++ < $highestColumnIndex) { |
|
919 | if (!$this->_useInlineCss) { |
|
920 | $html .= ' <col class="col' . $i . '">' . PHP_EOL; |
|
921 | } else { |
|
922 | $style = isset($this->_cssStyles['table.sheet' . $sheetIndex . ' col.col' . $i]) ? |
|
923 | $this->_assembleCSS($this->_cssStyles['table.sheet' . $sheetIndex . ' col.col' . $i]) : ''; |
|
924 | $html .= ' <col style="' . $style . '">' . PHP_EOL; |
|
925 | } |
|
926 | } |
|
927 | ||
928 | // Return |
|
@@ 981-988 (lines=8) @@ | ||
978 | } |
|
979 | ||
980 | // Write row start |
|
981 | if (!$this->_useInlineCss) { |
|
982 | $html .= ' <tr class="row' . $pRow . '">' . PHP_EOL; |
|
983 | } else { |
|
984 | $style = isset($this->_cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow]) |
|
985 | ? $this->_assembleCSS($this->_cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow]) : ''; |
|
986 | ||
987 | $html .= ' <tr style="' . $style . '">' . PHP_EOL; |
|
988 | } |
|
989 | ||
990 | // Write cells |
|
991 | $colNum = 0; |