} } //foreach ?> </tr> <?php } // if } //foreach } for ($i = $sectionDepth - 1; $i >= 0; $i--) { ?> <tr style="padding-top:2px;text-align:right;font-weight:bold;"> <td style="padding:4px;border-top:2px solid #888;font-size:90%;color:#AAA;text-align:left;font-weight:normal"><?php echo truncate(clean(getGroupTitle($group_by[$i], $previousTSRow)), 40, '…'); ?> </td> <td colspan=<?php echo $showBillingCol ? $totCols - 2 : $totCols - 1; ?> style="padding:4px;border-top:2px solid #888;text-align:right;"><?php echo lang('total'); ?> : <?php echo DateTimeValue::FormatTimeDiff(new DateTimeValue(0), new DateTimeValue($sumTimes[$i] * 60), "hm", 60); ?> </td> <?php if ($showBillingCol) { ?>
?><td style="padding:4px;max-width:250px;<?php echo $isAlt? 'background-color:#F2F2F2':'' ?>"><?php echo ('') ?></td><?php } } } else{ ?><td style="padding:4px;max-width:250px;<?php echo $isAlt? 'background-color:#F2F2F2':'' ?>"><?php echo ('') ?></td><?php } } //foreach ?> </tr> <?php } // if } //foreach } for ($i = $sectionDepth - 1; $i >= 0; $i--){?> <tr style="padding-top:2px;text-align:right;font-weight:bold;"> <td style="padding:4px;border-top:2px solid #888;font-size:90%;color:#AAA;text-align:left;font-weight:normal"><?php echo truncate(clean(getGroupTitle($group_by[$i], $previousTSRow)),40,'…') ?></td> <td colspan=<?php echo ($showBillingCol)? $totCols -2 : $totCols -1 ?> style="padding:4px;border-top:2px solid #888;text-align:right;"><?php echo lang('total') ?>: <?php echo DateTimeValue::FormatTimeDiff(new DateTimeValue(0), new DateTimeValue($sumTimes[$i] * 60), "hm", 60) ?></td> <?php if ($showBillingCol) { ?><td style="width:30px;padding:4px;border-top:2px solid #888;text-align:right;"><?php echo config_option('currency_code', '$') ?> <?php echo $sumBillings[$i] ?></td><?php } ?> </tr></table></div></td></tr> <?php }?> <?php // TOTAL TIME if (count($timeslotsArray) > 0) { foreach ($timeslotsArray as $t) { if (isset($has_conditions) && $has_conditions && $t->getObjectManager() == 'Projects') continue; $sumTime += $t->getMinutes(); if($ts->getIsFixedBilling()){ $sumBilling += $t->getFixedBilling(); }else{ $sumBillings[$i] += ($ts->getHourlyBilling()/60) * $ts->getMinutes(); }