@@ 250-255 (lines=6) @@ | ||
247 | $buffer .= '<thead>'; |
|
248 | $buffer .= '<tr>'; |
|
249 | $i = 0; |
|
250 | foreach ($headers as &$col) { |
|
251 | $width = ($w and isset($w[$i])) ? (';width:'.$w[$i].'mm') : ''; |
|
252 | $align = isset($a[$i]) ? $a[$i] : 'center'; |
|
253 | $buffer .= '<th style="border-right:1px solid #333;border-bottom:1px solid #333;text-align:'.$align.$width.'"><strong>'.strip_tags($col).'</strong></th>'; |
|
254 | $i++; |
|
255 | } |
|
256 | $buffer .= '</tr>'; |
|
257 | if ($thead) |
|
258 | $buffer .= '</thead>'; |
|
@@ 265-270 (lines=6) @@ | ||
262 | foreach ($data as &$row) { |
|
263 | $buffer .= '<tr>'; |
|
264 | $i = 0; |
|
265 | foreach ($row as &$col) { |
|
266 | $width = ($w and isset($w[$i])) ? (';width:'.$w[$i].'mm') : ''; |
|
267 | $align = isset($a[$i]) ? $a[$i] : 'center'; |
|
268 | $buffer .= '<td style="border-right:1px solid #333;text-align:'.$align.$width.'">'.$col.'</td>'; |
|
269 | $i++; |
|
270 | } |
|
271 | $buffer .= '</tr>'; |
|
272 | } |
|
273 | if ($thead) |