|
13 | 13 | <?php endif; ?>
|
14 | 14 |
|
15 | 15 | <?php if ($this->useHeader): ?>
|
16 |
| - <?php if (!$blnContao5): ?> |
17 |
| - <thead> |
| 16 | + <thead> |
18 | 17 | <tr>
|
19 |
| - <?php foreach ($this->header as $col): ?> |
20 |
| - <th class="<?= $col['class'] ?>"><?= $col['content'] ?></th> |
21 |
| - <?php endforeach; ?> |
| 18 | + <?php if (!$blnContao5): ?> |
| 19 | + <?php foreach ($this->header as $col): ?> |
| 20 | + <th class="<?= $col['class'] ?>"><?= $col['content'] ?></th> |
| 21 | + <?php endforeach; ?> |
| 22 | + <?php else: ?> |
| 23 | + <?php foreach ($this->header as $i => $col): ?> |
| 24 | + <?php if (0 == $i && $this->useLeftTh): ?> |
| 25 | + <th class="unsortable"><?= $col ?></th> |
| 26 | + <?php else: ?> |
| 27 | + <th><?= $col ?></th> |
| 28 | + <?php endif; ?> |
| 29 | + <?php endforeach; ?> |
| 30 | + <?php endif; ?> |
22 | 31 | </tr>
|
23 |
| - </thead> |
24 |
| - <?php else: ?> |
25 |
| - <thead> |
| 32 | + </thead> |
| 33 | + <?php endif; ?> |
| 34 | + |
| 35 | + <?php if ($this->useFooter): ?> |
| 36 | + <tfoot> |
26 | 37 | <tr>
|
27 |
| - <?php foreach ($this->header as $i => $col): ?> |
28 |
| - <?php if (0 == $i && $this->useLeftTh): ?> |
29 |
| - <th class="unsortable"><?= $col ?></th> |
| 38 | + <?php foreach ($this->footer as $col): ?> |
| 39 | + <?php if (!$blnContao5): ?> |
| 40 | + <td class="<?= $col['class'] ?>"><?= $col['content'] ?></td> |
30 | 41 | <?php else: ?>
|
31 |
| - <th><?= $col ?></th> |
| 42 | + <td><?= $col ?></td> |
32 | 43 | <?php endif; ?>
|
33 | 44 | <?php endforeach; ?>
|
34 | 45 | </tr>
|
35 |
| - </thead> |
36 |
| - <?php endif; ?> |
37 |
| - <?php endif; ?> |
38 |
| - |
39 |
| - <?php if ($this->useFooter): ?> |
40 |
| - <?php if (!$blnContao5): ?> |
41 |
| - <tfoot> |
42 |
| - <tr> |
43 |
| - <?php foreach ($this->footer as $col): ?> |
44 |
| - <td class="<?= $col['class'] ?>"><?= $col['content'] ?></td> |
45 |
| - <?php endforeach; ?> |
46 |
| - </tr> |
47 |
| - </tfoot> |
48 |
| - <?php else: ?> |
49 |
| - <?php foreach ($this->footer as $col): ?> |
50 |
| - <td><?= $col ?></td> |
51 |
| - <?php endforeach; ?> |
52 |
| - <?php endif; ?> |
| 46 | + </tfoot> |
53 | 47 | <?php endif; ?>
|
54 | 48 |
|
55 | 49 | <tbody>
|
|
66 | 60 | </tr>
|
67 | 61 | <?php endforeach; ?>
|
68 | 62 | <?php else: ?>
|
69 |
| - <?php foreach ($this->body as $row): ?> |
70 |
| - <tr> |
71 |
| - <?php foreach ($row as $i => $col): ?> |
72 |
| - <?php if (0 == $i && $this->useLeftTh): ?> |
73 |
| - <th scope="row"><?= $col ?></th> |
74 |
| - <?php else: ?> |
75 |
| - <td><?= $col ?></td> |
76 |
| - <?php endif; ?> |
77 |
| - <?php endforeach; ?> |
78 |
| - </tr> |
79 |
| - <?php endforeach; ?> |
| 63 | + <?php foreach ($this->body as $row): ?> |
| 64 | + <tr> |
| 65 | + <?php foreach ($row as $i => $col): ?> |
| 66 | + <?php if (0 == $i && $this->useLeftTh): ?> |
| 67 | + <th scope="row"><?= $col ?></th> |
| 68 | + <?php else: ?> |
| 69 | + <td><?= $col ?></td> |
| 70 | + <?php endif; ?> |
| 71 | + <?php endforeach; ?> |
| 72 | + </tr> |
| 73 | + <?php endforeach; ?> |
80 | 74 | <?php endif; ?>
|
81 | 75 | </tbody>
|
82 | 76 | </table>
|
|
0 commit comments