echo CUtils::getActivitiesDuration(null, $row['task_id'], $start_date, $end_date); echo "</th>"; echo "</tr>"; } $tasksId = implode(',', $tasksId); ?> <th><?php echo $AppUI->_("Total"); ?> </th> <?php //total duration -> tasks if (isset($userIdList)) { foreach ($userIdList as $userId) { echo "<th>"; echo CUtils::getActivitiesDuration($userId, null, $start_date, $end_date, $tasksId); echo "</th>"; } } else { echo "<th>"; echo "</th>"; } ?> <th> </th> <?php } else { echo "<tr>"; echo "<td nowrap='nowrap' colspan=3>"; echo $AppUI->_("You haven't tasks yet."); echo "</td>"; echo "</tr>";