Commit 5a3f9eb6 by Azhan Hannan

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

parent 43cb2d4d
...@@ -437,10 +437,10 @@ ...@@ -437,10 +437,10 @@
<div class="ui segment"> <div class="ui segment">
<table id="printtable6" class="ui celled structured table unstackable"> <table id="printtable6" class="ui celled structured table unstackable">
<tbody> <thead>
<tr> <tr>
<td style="width: 4%"></td> <th style="width: 4%"></th>
<td style="width: 23%;">Total (A) + (B) Working Hours</td> <th style="width: 23%;">Total (A) + (B) Working Hours</th>
@if( $phase == 1 ) @if( $phase == 1 )
@for($i = 0; $i < 15 ; $i++) @for($i = 0; $i < 15 ; $i++)
<?php <?php
...@@ -470,7 +470,7 @@ ...@@ -470,7 +470,7 @@
$ac = $totalcbyday + $totaloverheadbyday; $ac = $totalcbyday + $totaloverheadbyday;
?> ?>
<td style="width: 4%;">{{ number_format($ac, '1', '.', '') }}</td> <th style="width: 4%;">{{ number_format($ac, '1', '.', '') }}</th>
@endfor @endfor
@else @else
@for($i = 15; $i < $daymonth; $i++) @for($i = 15; $i < $daymonth; $i++)
...@@ -501,16 +501,16 @@ ...@@ -501,16 +501,16 @@
$ac = $totalcbyday + $totaloverheadbyday; $ac = $totalcbyday + $totaloverheadbyday;
?> ?>
<td style="width: 4%;">{{ number_format($ac, '1', '.', '') }}</td> <th style="width: 4%;">{{ number_format($ac, '1', '.', '') }}</th>
@endfor @endfor
@endif @endif
<td style="width: 5%;"> @if($check) {{ number_format(($totalchargeableall + $totaloverheadall), 1, '.', '') }} @else 0 @endif </td> <th style="width: 5%;"> @if($check) {{ number_format(($totalchargeableall + $totaloverheadall), 1, '.', '') }} @else 0 @endif </th>
<td style="width: 5%;"> {{ number_format(($totalchargeableall + $totaloverheadall)/8, 1, '.', '') }} </td> <th style="width: 5%;"> {{ number_format(($totalchargeableall + $totaloverheadall)/8, 1, '.', '') }} </th>
</tr> </tr>
<tr> <tr>
<td style="width: 4%"></td> <th style="width: 4%"></th>
<td style="width: 23%;">Total (A+B) - 8 Overtime</td> <th style="width: 23%;">Total (A+B) - 8 Overtime</th>
<?php $totalot = 0; ?> <?php $totalot = 0; ?>
@if( $phase == 1 ) @if( $phase == 1 )
@for($i = 0; $i < 15 ; $i++) @for($i = 0; $i < 15 ; $i++)
...@@ -542,13 +542,13 @@ ...@@ -542,13 +542,13 @@
// if($ot >= 0) // if($ot >= 0)
$totalot += $ot; $totalot += $ot;
?> ?>
<td style="width: 4%;"> <th style="width: 4%;">
@if($ot > 0) @if($ot > 0)
{{ number_format($ot, '1', '.', '') }} {{ number_format($ot, '1', '.', '') }}
@else @else
({{ number_format(abs($ot), '1', '.', '') }}) ({{ number_format(abs($ot), '1', '.', '') }})
@endif @endif
</td> </th>
@endfor @endfor
@else @else
@for($i = 15; $i < $daymonth; $i++) @for($i = 15; $i < $daymonth; $i++)
...@@ -578,31 +578,31 @@ ...@@ -578,31 +578,31 @@
$totalot += $ot; $totalot += $ot;
?> ?>
<td style="width: 4%;"> <th style="width: 4%;">
@if($ot > 0) @if($ot > 0)
{{ number_format($ot, '1', '.', '') }} {{ number_format($ot, '1', '.', '') }}
@else @else
({{ number_format(abs($ot), '1', '.', '') }}) ({{ number_format(abs($ot), '1', '.', '') }})
@endif @endif
</td> </th>
@endfor @endfor
@endif @endif
<td style="width: 5%;"> <th style="width: 5%;">
@if($totalot >= 0) @if($totalot >= 0)
{{ number_format($totalot, 1, '.', '') }} {{ number_format($totalot, 1, '.', '') }}
@else @else
({{ abs(number_format($totalot, 1, '.', '')) }}) ({{ abs(number_format($totalot, 1, '.', '')) }})
@endif @endif
</td> </th>
<td style="width: 5%;"> <th style="width: 5%;">
@if($totalot/8 >= 0) @if($totalot/8 >= 0)
{{ number_format($totalot/8, 1, '.', '') }} {{ number_format($totalot/8, 1, '.', '') }}
@else @else
({{ abs(number_format($totalot/8, 1, '.', '')) }}) ({{ abs(number_format($totalot/8, 1, '.', '')) }})
@endif @endif
</td> </th>
</tr> </tr>
</tbody> </thead>
</table> </table>
</div> </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