Go to the documentation of this file.00001 <?php
00019 ?>
00020 <table <?php if ($classes) { print 'class="'. $classes . '" '; } ?><?php print $attributes; ?>>
00021 <?php if (!empty($title)) : ?>
00022 <caption><?php print $title; ?></caption>
00023 <?php endif; ?>
00024 <?php if (!empty($header)) : ?>
00025 <thead>
00026 <tr>
00027 <?php foreach ($header as $field => $label): ?>
00028 <th <?php if ($header_classes[$field]) { print 'class="'. $header_classes[$field] . '" '; } ?>>
00029 <?php print $label; ?>
00030 </th>
00031 <?php endforeach; ?>
00032 </tr>
00033 </thead>
00034 <?php endif; ?>
00035 <tbody>
00036 <?php foreach ($rows as $row_count => $row): ?>
00037 <tr class="<?php print implode(' ', $row_classes[$row_count]); ?>">
00038 <?php foreach ($row as $field => $content): ?>
00039 <td <?php if ($field_classes[$field][$row_count]) { print 'class="'. $field_classes[$field][$row_count] . '" '; } ?><?php print drupal_attributes($field_attributes[$field][$row_count]); ?>>
00040 <?php print $content; ?>
00041 </td>
00042 <?php endforeach; ?>
00043 </tr>
00044 <?php endforeach; ?>
00045 </tbody>
00046 </table>