views-calc-table.tpl.php in Views Calc 6
File
views-calc-table.tpl.php
View source
<?php
if (empty($rows) && empty($totals)) {
return;
}
?>
<table class="<?php
print $class;
?>">
<?php
if (!empty($title)) {
?>
<caption><?php
print $title;
?></caption>
<?php
}
?>
<thead>
<tr>
<?php
foreach ($header as $field => $label) {
?>
<th class="views-field views-field-<?php
print $fields[$field];
?> <?php
print $options['info'][$field]['justification'];
?>">
<?php
print $label;
?>
</th>
<?php
}
?>
</tr>
</thead>
<tbody>
<?php
foreach ($rows as $count => $row) {
?>
<tr class="<?php
print $count % 2 == 0 ? 'even' : 'odd';
?>">
<?php
foreach ($row as $field => $content) {
?>
<td class="views-field views-field-<?php
print $fields[$field];
?> <?php
print $options['info'][$field]['justification'];
?>">
<?php
print $content;
?>
</td>
<?php
}
?>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<?php
foreach ($sub_totals as $type => $row) {
?>
<tr class="view-subfooter-number">
<?php
foreach ($row as $field => $content) {
?>
<td class="view-subfooter views-field views-field-<?php
print $fields[$field];
?> <?php
print $options['info'][$field]['justification'];
?>">
<?php
print $content;
?>
</td>
<?php
}
?>
</tr>
<?php
}
?>
<?php
foreach ($totals as $type => $row) {
?>
<tr class="view-footer-number">
<?php
foreach ($row as $field => $content) {
?>
<td class="view-footer views-field views-field-<?php
print $fields[$field];
?> <?php
print $options['info'][$field]['justification'];
?>">
<?php
print $content;
?>
</td>
<?php
}
?>
</tr>
<?php
}
?>
</tfoot>
</table>