@@ 1799-1824 (lines=26) @@ | ||
1796 | } |
|
1797 | ||
1798 | // draw the right border |
|
1799 | if ($testBr) { |
|
1800 | $pt = array(); |
|
1801 | $pt[] = $x + $w; $pt[] = $y; |
|
1802 | $pt[] = $x + $w; $pt[] = $y + $border['t']['width']; |
|
1803 | $pt[] = $x + $w; $pt[] = $y + $h - $border['b']['width']; |
|
1804 | $pt[] = $x + $w; $pt[] = $y + $h; |
|
1805 | $pt[] = $x + $w - $border['r']['width']; $pt[] = $y + $h - $border['b']['width']; |
|
1806 | $pt[] = $x + $w - $border['r']['width']; $pt[] = $y + $border['t']['width']; |
|
1807 | ||
1808 | $bord = 3; |
|
1809 | if (is_array($outTR)) { |
|
1810 | $bord -= 1; |
|
1811 | $pt[3] += $outTR[1] - $border['t']['width']; |
|
1812 | if ($inTR) $pt[11] += $inTR[1]; |
|
1813 | unset($pt[0]); unset($pt[1]); |
|
1814 | } |
|
1815 | if (is_array($outBR)) { |
|
1816 | $bord -= 2; |
|
1817 | $pt[5] -= $outBR[1] - $border['b']['width']; |
|
1818 | if ($inBR) $pt[9] -= $inBR[1]; |
|
1819 | unset($pt[6]); unset($pt[7]); |
|
1820 | } |
|
1821 | ||
1822 | $pt = array_values($pt); |
|
1823 | $this->_drawLine($pt, $border['r']['color'], $border['r']['type'], $border['r']['width'], $bord); |
|
1824 | } |
|
1825 | ||
1826 | // draw the bottom border |
|
1827 | if ($testBb) { |
|
@@ 1827-1853 (lines=27) @@ | ||
1824 | } |
|
1825 | ||
1826 | // draw the bottom border |
|
1827 | if ($testBb) { |
|
1828 | $pt = array(); |
|
1829 | $pt[] = $x + $w; $pt[] = $y + $h; |
|
1830 | $pt[] = $x + $w - $border['r']['width']; $pt[] = $y + $h; |
|
1831 | $pt[] = $x + $border['l']['width']; $pt[] = $y + $h; |
|
1832 | $pt[] = $x; $pt[] = $y + $h; |
|
1833 | $pt[] = $x + $border['l']['width']; $pt[] = $y + $h - $border['b']['width']; |
|
1834 | $pt[] = $x + $w - $border['r']['width']; $pt[] = $y + $h - $border['b']['width']; |
|
1835 | ||
1836 | $bord = 3; |
|
1837 | if (is_array($outBL)) { |
|
1838 | $bord -= 2; |
|
1839 | $pt[4] += $outBL[0] - $border['l']['width']; |
|
1840 | if ($inBL) $pt[8] += $inBL[0]; |
|
1841 | unset($pt[6]); unset($pt[7]); |
|
1842 | } |
|
1843 | if (is_array($outBR)) { |
|
1844 | $bord -= 1; |
|
1845 | $pt[2] -= $outBR[0] - $border['r']['width']; |
|
1846 | if ($inBR) $pt[10] -= $inBR[0]; |
|
1847 | unset($pt[0]); unset($pt[1]); |
|
1848 | ||
1849 | } |
|
1850 | ||
1851 | $pt = array_values($pt); |
|
1852 | $this->_drawLine($pt, $border['b']['color'], $border['b']['type'], $border['b']['width'], $bord); |
|
1853 | } |
|
1854 | ||
1855 | if ($background['color']) { |
|
1856 | $this->pdf->setFillColorArray($background['color']); |