Ejemplo n.º 1
0
echo $AppUI->_("Tasks");
?>
</th>
		<?php 
foreach ($timestampArray as $timestamp) {
    echo '<th nowrap="nowrap">' . $AppUI->_(date("l", $timestamp)) . ' ' . date("d/m/Y", $timestamp) . '</th>';
}
echo '<th nowrap="nowrap" width="100">' . $AppUI->_("Total") . '</th>';
?>
	</tr>
	
	<!-- Timesheet contents : Projects and tasks -->
	<?php 
//Get tasks list
$allAssignedTasks = CUtils::getAllAssignedTasks($user_id);
$rowTasks = CUtils::getTasksForThisPeriod($allAssignedTasks, min($timestampArray), max($timestampArray));
//There are avalaible tasks
if ($rowTasks) {
    $publicHolidays = CUtils::getPublicHolidays();
    $project_name = '';
    $newTaskIdList = array();
    //Display them
    while ($row = db_fetch_assoc($rowTasks)) {
        array_push($newTaskIdList, $row['task_id']);
        if ($timesheetId != 0 && $timesheet->getStatus($row['task_id']) != -1) {
            $status = $timesheet->getStatus($row['task_id']);
        }
        //Used to count total activities
        $task_total = 0;
        //Group tasks by project
        if ($project_name != $row['project_name']) {
Ejemplo n.º 2
0
        $edate->addMonths(12);
        $edate->addDays(-1);
        $header .= " " . $time_set->format("%Y");
        break;
    case 'all':
        $header = $AppUI->_("All activities");
        break;
}
if (isset($sdate)) {
    $start_date = $sdate->getTime();
}
if (isset($edate)) {
    $end_date = $edate->getTime();
}
$rowTasks = CUtils::getTasksForThisPeriod($tasksId);
$rowTasks2 = CUtils::getTasksForThisPeriod($tasksId);
if ($rowTasks2) {
    $rowUsers = CUtils::getAllAssignedUsers($rowTasks2);
}
?>

<!-- Build activity view header -->
<table width="100%" class="motitle" cellspacing="0" cellpading="3" border="0">
<tr>
<?php 
//Show prev/next arrows for all but 'all' view
if ($vw != all) {
    $alt = $AppUI->_('Previous ' . $vw);
    $ago -= 1;
    echo '<td align="left">
		<a href="index.php?m=activity&amp;a=reporting&amp;vw=' . $vw . '&amp;ago=' . $ago . '" title="' . $alt . '">