|
@@ 5132-5150 (lines=19) @@
|
| 5129 |
|
if ($height != $h0 || $k == 0) HTML2PDF::$_tables[$param['num']]['height'][] = $height; |
| 5130 |
|
} else { |
| 5131 |
|
// if we have tfoor, draw it |
| 5132 |
|
if (count(HTML2PDF::$_tables[$param['num']]['tfoot']['code'])) { |
| 5133 |
|
$tmpTR = HTML2PDF::$_tables[$param['num']]['tr_curr']; |
| 5134 |
|
$tmpTD = HTML2PDF::$_tables[$param['num']]['td_curr']; |
| 5135 |
|
$oldParsePos = $this->_parsePos; |
| 5136 |
|
$oldParseCode = $this->parsingHtml->code; |
| 5137 |
|
|
| 5138 |
|
HTML2PDF::$_tables[$param['num']]['tr_curr'] = HTML2PDF::$_tables[$param['num']]['tfoot']['tr'][0]; |
| 5139 |
|
HTML2PDF::$_tables[$param['num']]['td_curr'] = 0; |
| 5140 |
|
$this->_parsePos = 0; |
| 5141 |
|
$this->parsingHtml->code = HTML2PDF::$_tables[$param['num']]['tfoot']['code']; |
| 5142 |
|
$this->_isInTfoot = true; |
| 5143 |
|
$this->_makeHTMLcode(); |
| 5144 |
|
$this->_isInTfoot = false; |
| 5145 |
|
|
| 5146 |
|
$this->_parsePos = $oldParsePos; |
| 5147 |
|
$this->parsingHtml->code = $oldParseCode; |
| 5148 |
|
HTML2PDF::$_tables[$param['num']]['tr_curr'] = $tmpTR; |
| 5149 |
|
HTML2PDF::$_tables[$param['num']]['td_curr'] = $tmpTD; |
| 5150 |
|
} |
| 5151 |
|
|
| 5152 |
|
// get the positions of the end of the table |
| 5153 |
|
$x = HTML2PDF::$_tables[$param['num']]['curr_x'] + HTML2PDF::$_tables[$param['num']]['width']; |
|
@@ 5248-5266 (lines=19) @@
|
| 5245 |
|
if ( ! $this->_isInTfoot && HTML2PDF::$_tables[$param['num']]['td_y'] + HTML2PDF::$_tables[$param['num']]['marge']['b'] + $ty + $hfoot > $this->pdf->getH() - $this->pdf->getbMargin()) { |
| 5246 |
|
|
| 5247 |
|
// fi ther is a tfoot => draw it |
| 5248 |
|
if (count(HTML2PDF::$_tables[$param['num']]['tfoot']['code'])) { |
| 5249 |
|
$tmpTR = HTML2PDF::$_tables[$param['num']]['tr_curr']; |
| 5250 |
|
$tmpTD = HTML2PDF::$_tables[$param['num']]['td_curr']; |
| 5251 |
|
$oldParsePos = $this->_parsePos; |
| 5252 |
|
$oldParseCode = $this->parsingHtml->code; |
| 5253 |
|
|
| 5254 |
|
HTML2PDF::$_tables[$param['num']]['tr_curr'] = HTML2PDF::$_tables[$param['num']]['tfoot']['tr'][0]; |
| 5255 |
|
HTML2PDF::$_tables[$param['num']]['td_curr'] = 0; |
| 5256 |
|
$this->_parsePos = 0; |
| 5257 |
|
$this->parsingHtml->code = HTML2PDF::$_tables[$param['num']]['tfoot']['code']; |
| 5258 |
|
$this->_isInTfoot = true; |
| 5259 |
|
$this->_makeHTMLcode(); |
| 5260 |
|
$this->_isInTfoot = false; |
| 5261 |
|
|
| 5262 |
|
$this->_parsePos = $oldParsePos; |
| 5263 |
|
$this->parsingHtml->code = $oldParseCode; |
| 5264 |
|
HTML2PDF::$_tables[$param['num']]['tr_curr'] = $tmpTR; |
| 5265 |
|
HTML2PDF::$_tables[$param['num']]['td_curr'] = $tmpTD; |
| 5266 |
|
} |
| 5267 |
|
|
| 5268 |
|
// new page |
| 5269 |
|
HTML2PDF::$_tables[$param['num']]['new_page'] = true; |