Files
EasySoft-ZenTaoPMS/module/execution/ui/importtask.html.php
T

70 lines
2.6 KiB
PHP

<?php
declare(strict_types=1);
/**
* The task view file of execution module of ZenTaoPMS.
*
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
* @author Yanyi Cao<caoyanyi@easycorp.ltd>
* @package execution
* @link http://www.zentao.net
*/
namespace zin;
$executions = array(0 => $lang->execution->allExecutions) + $executions;
featureBar
(
set::current('all'),
set::linkParams("toExecution={$execution->id}"),
btn
(
set::text($lang->execution->selectExecution),
setClass('ml-6')
),
productMenu
(
setClass('px-6'),
set::title($lang->execution->allExecutions),
set::items($executions),
set::activeKey($fromExecution),
set::link(inlink('importtask', "executionID={$execution->id}&fromExecution=%s"))
)
);
$config->task->dtable->importTask->fieldList['execution']['map'] = $executions;
if($execution->lifetime == 'ops' || in_array($execution->attribute, array('request', 'review'))) unset($config->task->dtable->importTask->fieldList['story']);
jsVar('orderBy', $orderBy);
jsVar('sortLink', helper::createLink('execution', 'importTask', "executionID={$execution->id}&fromExecution={$fromExecution}&orderBy={orderBy}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}"));
dtable
(
set::userMap($memberPairs),
set::cols(array_values($config->task->dtable->importTask->fieldList)),
set::data($tasks2Imported),
set::showToolbarOnChecked(false),
set::sortLink(jsRaw('createSortLink')),
set::footToolbar(array(
'items' => array(
array(
'text' => $lang->execution->importTask,
'class' => 'btn secondary toolbar-item batch-btn size-sm',
'data-url' => createLink('execution', 'importtask', "executionID={$execution->id}&fromExecution={$fromExecution}"),
),
array(
'text' => $lang->goback,
'class' => 'btn toolbar-item size-sm text-gray',
'url' => createLink('execution', 'task', "executionID={$execution->id}")
)
)
)),
set::footPager(
usePager(),
set::recPerPage($pager->recPerPage),
set::recTotal($pager->recTotal),
set::linkCreator(helper::createLink('execution', 'importTask', "executionID={$execution->id}&fromExecution={$fromExecution}&orderBy=$orderBy&recTotal={$pager->recTotal}&recPerPage={recPerPage}&page={page}"))
)
);
render();