Permalink
Browse files

Fixed incorrect colspan

  • Loading branch information...
EsmondTan committed Jun 21, 2016
1 parent 3b70d21 commit 8be5c5171cd7021e7dfa09cf32306cbf0a129ecd
@@ -68,31 +68,31 @@
<?php foreach ($accounts as $account) { ?>
<?php if (in_array($account['type'], $asset) && $header != 'asset') { ?>
<tr>
<th class="text-left" colspan="7"><?php echo $text_assets; ?></th>
<th class="text-left" colspan="8"><?php echo $text_assets; ?></th>
</tr>
<?php $header = 'asset'; ?>
<?php } ?>
<?php if (in_array($account['type'], $equity) && $header != 'equity') { ?>
<tr>
<th class="text-left" colspan="7"><?php echo $text_equity; ?></th>
<th class="text-left" colspan="8"><?php echo $text_equity; ?></th>
</tr>
<?php $header = 'equity'; ?>
<?php } ?>
<?php if (in_array($account['type'], $expense) && $header != 'expense') { ?>
<tr>
<th class="text-left" colspan="7"><?php echo $text_expenses; ?></th>
<th class="text-left" colspan="8"><?php echo $text_expenses; ?></th>
</tr>
<?php $header = 'expense'; ?>
<?php } ?>
<?php if (in_array($account['type'], $liability) && $header != 'liability') { ?>
<tr>
<th class="text-left" colspan="7"><?php echo $text_liabilities; ?></th>
<th class="text-left" colspan="8"><?php echo $text_liabilities; ?></th>
</tr>
<?php $header = 'liability'; ?>
<?php } ?>
<?php if (in_array($account['type'], $revenue) && $header != 'revenue') { ?>
<tr>
<th class="text-left" colspan="7"><?php echo $text_revenue; ?></th>
<th class="text-left" colspan="8"><?php echo $text_revenue; ?></th>
</tr>
<?php $header = 'revenue'; ?>
<?php } ?>
@@ -115,7 +115,7 @@
<?php } ?>
<?php } else { ?>
<tr>
<td class="text-center" colspan="7"><?php echo $text_no_results; ?></td>
<td class="text-center" colspan="8"><?php echo $text_no_results; ?></td>
</tr>
<?php } ?>
</table>
@@ -26,42 +26,42 @@
<?php foreach ($accounts as $account) { ?>
<?php if (in_array($account['type'], $asset) && $header != 'asset') { ?>
<tr>
<th class="text-left" colspan="4"><?php echo $text_assets; ?></th>
<th class="text-left" colspan="5"><?php echo $text_assets; ?></th>
</tr>
<?php $header = 'asset'; ?>
<?php } ?>
<?php if (in_array($account['type'], $equity) && $header != 'equity') { ?>
<tr>
<th class="text-left" colspan="4"><?php echo $text_equity; ?></th>
<th class="text-left" colspan="5"><?php echo $text_equity; ?></th>
</tr>
<?php $header = 'equity'; ?>
<?php } ?>
<?php if (in_array($account['type'], $expense) && $header != 'expense') { ?>
<tr>
<th class="text-left" colspan="4"><?php echo $text_expenses; ?></th>
<th class="text-left" colspan="5"><?php echo $text_expenses; ?></th>
</tr>
<?php $header = 'expense'; ?>
<?php } ?>
<?php if (in_array($account['type'], $liability) && $header != 'liability') { ?>
<tr>
<th class="text-left" colspan="4"><?php echo $text_liabilities; ?></th>
<th class="text-left" colspan="5"><?php echo $text_liabilities; ?></th>
</tr>
<?php $header = 'liability'; ?>
<?php } ?>
<?php if (in_array($account['type'], $revenue) && $header != 'revenue') { ?>
<tr>
<th class="text-left" colspan="4"><?php echo $text_revenue; ?></th>
<th class="text-left" colspan="5"><?php echo $text_revenue; ?></th>
</tr>
<?php $header = 'revenue'; ?>
<?php } ?>
<?php if ($account['children']) { ?>
<tr>
<td class="text-left indent-1" colspan="4"><b><?php echo $account['name']; ?></td>
<td class="text-left indent-1" colspan="5"><b><?php echo $account['name']; ?></td>
</tr>
<?php foreach ($account['children'] as $child) { ?>
<?php if ($child['grandchildren']) { ?>
<tr>
<td class="text-left indent-2" colspan="4"><b><?php echo $child['name']; ?></td>
<td class="text-left indent-2" colspan="5"><b><?php echo $child['name']; ?></td>
</tr>
<?php foreach ($child['grandchildren'] as $grandchild) { ?>
<tr>
@@ -94,7 +94,7 @@
<?php } ?>
<?php } else { ?>
<tr>
<td class="text-center" colspan="4"><?php echo $text_no_results; ?></td>
<td class="text-center" colspan="5"><?php echo $text_no_results; ?></td>
</tr>
<?php } ?>
</table>

0 comments on commit 8be5c51

Please sign in to comment.