* @package execution * @version $Id: task.html.php 4894 2013-06-25 01:28:39Z wyd621@gmail.com $ * @link http://www.zentao.net */ ?> task->generateCol($orderBy); $tasks = $this->task->generateRow($tasks, $users, $execution, $showBranch, $branchGroups, $modulePairs); $assignApp = $setModule ? '' : '#app=project'; $sortLink = helper::createLink('execution', 'task', "executionID={$execution->id}&status={$status}¶m={$param}&orderBy={orderBy}&recTotal={$recTotal}&recPerPage={$recPerPage}") . $assignApp; js::set('moduleID', $moduleID); js::set('productID', $productID); js::set('executionID', $executionID); js::set('browseType', $browseType); js::set('extra', ($execution->lifetime == 'ops' or in_array($execution->attribute, array('request', 'review'))) ? 'unsetStory' : ''); $task = reset($tasks); $canBatchEdit = common::hasPriv('task', 'batchEdit', !empty($task) ? $task : null); $canBatchClose = (common::hasPriv('task', 'batchClose', !empty($task) ? $task : null) and strtolower($browseType) != 'closed'); $canBatchCancel = (common::hasPriv('task', 'batchCancel', !empty($task) ? $task : null) and strtolower($browseType) != 'cancel'); $canBatchChangeModule = common::hasPriv('task', 'batchChangeModule', !empty($task) ? $task : null); $canBatchAssignTo = common::hasPriv('task', 'batchAssignTo', !empty($task) ? $task : null); $canBatchAction = ($canBatchEdit or $canBatchClose or $canBatchCancel or $canBatchChangeModule or $canBatchAssignTo); if(!$canBatchAction) unset($cols[0]->checkbox); /* Set unfold parent taskID. */ js::set('orderBy', $orderBy); js::set('sortLink', $sortLink); js::set('cols', json_encode($cols)); js::set('data', json_encode($tasks)); ?>
task->noTask;?> " . $lang->task->create, '', "class='btn btn-info'");?>