* @package execution * @version $Id: task.html.php 4894 2013-06-25 01:28:39Z wyd621@gmail.com $ * @link http://www.zentao.net */ ?> lifetime == 'ops' or in_array($execution->attribute, array('request', 'review'))) ? 'unsetStory' : ''); /* Set unfold parent taskID. */ $unfoldTasks = isset($config->execution->task->unfoldTasks) ? json_decode($config->execution->task->unfoldTasks, true) : array(); $unfoldTasks = zget($unfoldTasks, $executionID, array()); js::set('unfoldTasks', $unfoldTasks); js::set('unfoldAll', $lang->execution->treeLevel['all']); js::set('foldAll', $lang->execution->treeLevel['root']); ?> app->getViewType() == 'xhtml'):?>

task->noTask;?> " . $lang->task->create, '', "class='btn btn-info'");?>

moduleName . ucfirst($this->methodName); $useDatatable = (isset($config->datatable->$datatableId->mode) and $config->datatable->$datatableId->mode == 'datatable'); $vars = "executionID=$execution->id&status=$status&parma=$param&orderBy=%s&recTotal=$recTotal&recPerPage=$recPerPage"; if($useDatatable) include '../../common/view/datatable.html.php'; $customFields = $this->datatable->getSetting('execution'); if($execution->lifetime == 'ops' or in_array($execution->attribute, array('request', 'review'))) { foreach($customFields as $id => $customField) { if($customField->id == 'story') unset($customFields[$id]); } } $widths = $this->datatable->setFixedFieldWidth($customFields); $columns = 0; $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); ?> ';?> ' id='taskList' data-fixed-left-width='' data-fixed-right-width=''> app->getViewType() == 'xhtml'):?> id == 'name' || $field->id == 'id' || $field->id == 'pri' || $field->id == 'status') { if($field->show) { $this->datatable->printHead($field, $orderBy, $vars, $canBatchAction); $columns++; } } }?> show) { $this->datatable->printHead($field, $orderBy, $vars, $canBatchAction); $columns++; } } ?> children)) echo 'class="table-parent" '; ?>data-id='id;?>' data-status='status?>' data-estimate='estimate?>' data-consumed='consumed?>' data-left='left?>'> app->getViewType() == 'xhtml'):?> id == 'name' || $field->id == 'id' || $field->id == 'pri' || $field->id == 'status') { $this->task->printCell($field, $task, $users, $browseType, $branchGroups, $modulePairs, $useDatatable ? 'datatable' : 'table'); } }?> task->printCell($field, $task, $users, $browseType, $branchGroups, $modulePairs, $useDatatable ? 'datatable' : 'table', false, $showBranch);?> children)):?> children as $key => $child):?> children)) ? ' table-child-bottom' : '';?> app->getViewType() == 'xhtml'):?> id == 'name' || $field->id == 'id' || $field->id == 'pri' || $field->id == 'status') $this->task->printCell($field, $child, $users, $browseType, $branchGroups, $modulePairs, $useDatatable ? 'datatable' : 'table', true); }?> task->printCell($field, $child, $users, $browseType, $branchGroups, $modulePairs, $useDatatable ? 'datatable' : 'table', true, $showBranch);?>
';?>