Commit 5a3f9eb6 by Azhan Hannan

timesheet viewer -> alignment total hours and overtime, change tbody to thead tag

parent 43cb2d4d
......@@ -437,10 +437,10 @@
<div class="ui segment">
<table id="printtable6" class="ui celled structured table unstackable">
<tbody>
<thead>
<tr>
<td style="width: 4%"></td>
<td style="width: 23%;">Total (A) + (B) Working Hours</td>
<th style="width: 4%"></th>
<th style="width: 23%;">Total (A) + (B) Working Hours</th>
@if( $phase == 1 )
@for($i = 0; $i < 15 ; $i++)
<?php
......@@ -470,7 +470,7 @@
$ac = $totalcbyday + $totaloverheadbyday;
?>
<td style="width: 4%;">{{ number_format($ac, '1', '.', '') }}</td>
<th style="width: 4%;">{{ number_format($ac, '1', '.', '') }}</th>
@endfor
@else
@for($i = 15; $i < $daymonth; $i++)
......@@ -501,16 +501,16 @@
$ac = $totalcbyday + $totaloverheadbyday;
?>
<td style="width: 4%;">{{ number_format($ac, '1', '.', '') }}</td>
<th style="width: 4%;">{{ number_format($ac, '1', '.', '') }}</th>
@endfor
@endif
<td style="width: 5%;"> @if($check) {{ number_format(($totalchargeableall + $totaloverheadall), 1, '.', '') }} @else 0 @endif </td>
<td style="width: 5%;"> {{ number_format(($totalchargeableall + $totaloverheadall)/8, 1, '.', '') }} </td>
<th style="width: 5%;"> @if($check) {{ number_format(($totalchargeableall + $totaloverheadall), 1, '.', '') }} @else 0 @endif </th>
<th style="width: 5%;"> {{ number_format(($totalchargeableall + $totaloverheadall)/8, 1, '.', '') }} </th>
</tr>
<tr>
<td style="width: 4%"></td>
<td style="width: 23%;">Total (A+B) - 8 Overtime</td>
<th style="width: 4%"></th>
<th style="width: 23%;">Total (A+B) - 8 Overtime</th>
<?php $totalot = 0; ?>
@if( $phase == 1 )
@for($i = 0; $i < 15 ; $i++)
......@@ -542,13 +542,13 @@
// if($ot >= 0)
$totalot += $ot;
?>
<td style="width: 4%;">
<th style="width: 4%;">
@if($ot > 0)
{{ number_format($ot, '1', '.', '') }}
@else
({{ number_format(abs($ot), '1', '.', '') }})
@endif
</td>
</th>
@endfor
@else
@for($i = 15; $i < $daymonth; $i++)
......@@ -578,31 +578,31 @@
$totalot += $ot;
?>
<td style="width: 4%;">
<th style="width: 4%;">
@if($ot > 0)
{{ number_format($ot, '1', '.', '') }}
@else
({{ number_format(abs($ot), '1', '.', '') }})
@endif
</td>
</th>
@endfor
@endif
<td style="width: 5%;">
<th style="width: 5%;">
@if($totalot >= 0)
{{ number_format($totalot, 1, '.', '') }}
@else
({{ abs(number_format($totalot, 1, '.', '')) }})
@endif
</td>
<td style="width: 5%;">
</th>
<th style="width: 5%;">
@if($totalot/8 >= 0)
{{ number_format($totalot/8, 1, '.', '') }}
@else
({{ abs(number_format($totalot/8, 1, '.', '')) }})
@endif
</td>
</th>
</tr>
</tbody>
</thead>
</table>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment