当前位置: 首页>>代码示例>>PHP>>正文


PHP CUtils::getTasksForThisPeriod方法代码示例

本文整理汇总了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']) {
开发者ID:kilivan,项目名称:dotproject,代码行数:31,代码来源:capture_sub.php

示例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&amp;a=reporting&amp;vw=' . $vw . '&amp;ago=' . $ago . '" title="' . $alt . '">
开发者ID:kilivan,项目名称:dotproject,代码行数:31,代码来源:reporting_sub.php


注:本文中的CUtils::getTasksForThisPeriod方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。