本文整理汇总了PHP中CUtils::getAllAssignedTasks方法的典型用法代码示例。如果您正苦于以下问题:PHP CUtils::getAllAssignedTasks方法的具体用法?PHP CUtils::getAllAssignedTasks怎么用?PHP CUtils::getAllAssignedTasks使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CUtils
的用法示例。
在下文中一共展示了CUtils::getAllAssignedTasks方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
<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