コード例 #1
0
ファイル: capture_sub.php プロジェクト: kilivan/dotproject
		<th nowrap="nowrap" width="150"><?php 
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