| @@ 340-346 (lines=7) @@ | ||
| 337 | { |
|
| 338 | $temp = $this->template['heading_cell_start']; |
|
| 339 | ||
| 340 | foreach ($heading as $key => $val) |
|
| 341 | { |
|
| 342 | if ($key !== 'data') |
|
| 343 | { |
|
| 344 | $temp = str_replace('<th', '<th '.$key.'="'.$val.'"', $temp); |
|
| 345 | } |
|
| 346 | } |
|
| 347 | ||
| 348 | $out .= $temp.(isset($heading['data']) ? $heading['data'] : '').$this->template['heading_cell_end']; |
|
| 349 | } |
|
| @@ 376-382 (lines=7) @@ | ||
| 373 | { |
|
| 374 | $temp = $this->template['cell_'.$name.'start']; |
|
| 375 | ||
| 376 | foreach ($cell as $key => $val) |
|
| 377 | { |
|
| 378 | if ($key !== 'data') |
|
| 379 | { |
|
| 380 | $temp = str_replace('<td', '<td '.$key.'="'.$val.'"', $temp); |
|
| 381 | } |
|
| 382 | } |
|
| 383 | ||
| 384 | $cell = isset($cell['data']) ? $cell['data'] : ''; |
|
| 385 | $out .= $temp; |
|