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