@@ 1743-1768 (lines=26) @@ | ||
1740 | } |
|
1741 | ||
1742 | // draw the left border |
|
1743 | if ($testBl) { |
|
1744 | $pt = array(); |
|
1745 | $pt[] = $x; $pt[] = $y + $h; |
|
1746 | $pt[] = $x; $pt[] = $y + $h - $border['b']['width']; |
|
1747 | $pt[] = $x; $pt[] = $y + $border['t']['width']; |
|
1748 | $pt[] = $x; $pt[] = $y; |
|
1749 | $pt[] = $x + $border['l']['width']; $pt[] = $y + $border['t']['width']; |
|
1750 | $pt[] = $x + $border['l']['width']; $pt[] = $y + $h - $border['b']['width']; |
|
1751 | ||
1752 | $bord = 3; |
|
1753 | if (is_array($outBL)) { |
|
1754 | $bord -= 1; |
|
1755 | $pt[3] -= $outBL[1] - $border['b']['width']; |
|
1756 | if ($inBL) $pt[11] -= $inBL[1]; |
|
1757 | unset($pt[0]); unset($pt[1]); |
|
1758 | } |
|
1759 | if (is_array($outTL)) { |
|
1760 | $bord -= 2; |
|
1761 | $pt[5] += $outTL[1] - $border['t']['width']; |
|
1762 | if ($inTL) $pt[9] += $inTL[1]; |
|
1763 | unset($pt[6]); unset($pt[7]); |
|
1764 | } |
|
1765 | ||
1766 | $pt = array_values($pt); |
|
1767 | $this->_drawLine($pt, $border['l']['color'], $border['l']['type'], $border['l']['width'], $bord); |
|
1768 | } |
|
1769 | ||
1770 | // draw the top border |
|
1771 | if ($testBt) { |
|
@@ 1771-1796 (lines=26) @@ | ||
1768 | } |
|
1769 | ||
1770 | // draw the top border |
|
1771 | if ($testBt) { |
|
1772 | $pt = array(); |
|
1773 | $pt[] = $x; $pt[] = $y; |
|
1774 | $pt[] = $x + $border['l']['width']; $pt[] = $y; |
|
1775 | $pt[] = $x + $w - $border['r']['width']; $pt[] = $y; |
|
1776 | $pt[] = $x + $w; $pt[] = $y; |
|
1777 | $pt[] = $x + $w - $border['r']['width']; $pt[] = $y + $border['t']['width']; |
|
1778 | $pt[] = $x + $border['l']['width']; $pt[] = $y + $border['t']['width']; |
|
1779 | ||
1780 | $bord = 3; |
|
1781 | if (is_array($outTL)) { |
|
1782 | $bord -= 1; |
|
1783 | $pt[2] += $outTL[0] - $border['l']['width']; |
|
1784 | if ($inTL) $pt[10] += $inTL[0]; |
|
1785 | unset($pt[0]); unset($pt[1]); |
|
1786 | } |
|
1787 | if (is_array($outTR)) { |
|
1788 | $bord -= 2; |
|
1789 | $pt[4] -= $outTR[0] - $border['r']['width']; |
|
1790 | if ($inTR) $pt[8] -= $inTR[0]; |
|
1791 | unset($pt[6]); unset($pt[7]); |
|
1792 | } |
|
1793 | ||
1794 | $pt = array_values($pt); |
|
1795 | $this->_drawLine($pt, $border['t']['color'], $border['t']['type'], $border['t']['width'], $bord); |
|
1796 | } |
|
1797 | ||
1798 | // draw the right border |
|
1799 | if ($testBr) { |