@@ 4670-4696 (lines=27) @@ | ||
4667 | * @param array $param |
|
4668 | * @return boolean |
|
4669 | */ |
|
4670 | protected function _tag_open_THEAD($param) |
|
4671 | { |
|
4672 | if ($this->_isForOneLine) { |
|
4673 | return false; |
|
4674 | } |
|
4675 | ||
4676 | $this->parsingCss->save(); |
|
4677 | $this->parsingCss->analyse('thead', $param); |
|
4678 | $this->parsingCss->setPosition(); |
|
4679 | $this->parsingCss->fontSet(); |
|
4680 | ||
4681 | // if we are in a sub part, save the number of the first TR in the thead |
|
4682 | if ($this->_subPart) { |
|
4683 | HTML2PDF::$_tables[$param['num']]['thead']['tr'][0] = HTML2PDF::$_tables[$param['num']]['tr_curr']; |
|
4684 | HTML2PDF::$_tables[$param['num']]['thead']['code'] = array(); |
|
4685 | for ($pos = $this->_tempPos; $pos < count($this->parsingHtml->code); $pos++) { |
|
4686 | $action = $this->parsingHtml->code[$pos]; |
|
4687 | if (strtolower($action['name']) == 'thead') $action['name'] = 'thead_sub'; |
|
4688 | HTML2PDF::$_tables[$param['num']]['thead']['code'][] = $action; |
|
4689 | if (strtolower($action['name']) == 'thead_sub' && $action['close']) break; |
|
4690 | } |
|
4691 | } else { |
|
4692 | $level = $this->parsingHtml->getLevel($this->_parsePos); |
|
4693 | $this->_parsePos += count($level); |
|
4694 | HTML2PDF::$_tables[$param['num']]['tr_curr'] += count(HTML2PDF::$_tables[$param['num']]['thead']['tr']); |
|
4695 | } |
|
4696 | ||
4697 | return true; |
|
4698 | } |
|
4699 | ||
@@ 4733-4759 (lines=27) @@ | ||
4730 | * @param array $param |
|
4731 | * @return boolean |
|
4732 | */ |
|
4733 | protected function _tag_open_TFOOT($param) |
|
4734 | { |
|
4735 | if ($this->_isForOneLine) { |
|
4736 | return false; |
|
4737 | } |
|
4738 | ||
4739 | $this->parsingCss->save(); |
|
4740 | $this->parsingCss->analyse('tfoot', $param); |
|
4741 | $this->parsingCss->setPosition(); |
|
4742 | $this->parsingCss->fontSet(); |
|
4743 | ||
4744 | // if we are in a sub part, save the number of the first TR in the tfoot |
|
4745 | if ($this->_subPart) { |
|
4746 | HTML2PDF::$_tables[$param['num']]['tfoot']['tr'][0] = HTML2PDF::$_tables[$param['num']]['tr_curr']; |
|
4747 | HTML2PDF::$_tables[$param['num']]['tfoot']['code'] = array(); |
|
4748 | for ($pos = $this->_tempPos; $pos < count($this->parsingHtml->code); $pos++) { |
|
4749 | $action = $this->parsingHtml->code[$pos]; |
|
4750 | if (strtolower($action['name']) == 'tfoot') $action['name'] = 'tfoot_sub'; |
|
4751 | HTML2PDF::$_tables[$param['num']]['tfoot']['code'][] = $action; |
|
4752 | if (strtolower($action['name']) == 'tfoot_sub' && $action['close']) break; |
|
4753 | } |
|
4754 | } else { |
|
4755 | $level = $this->parsingHtml->getLevel($this->_parsePos); |
|
4756 | $this->_parsePos += count($level); |
|
4757 | HTML2PDF::$_tables[$param['num']]['tr_curr'] += count(HTML2PDF::$_tables[$param['num']]['tfoot']['tr']); |
|
4758 | } |
|
4759 | ||
4760 | return true; |
|
4761 | } |
|
4762 |