本文整理匯總了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