Files
EasySoft-ZenTaoPMS/module/compile/ui/browse.html.php
2023-10-16 15:57:04 +08:00

48 lines
1.5 KiB
PHP

<?php
declare(strict_types=1);
/**
* The browse view file of compile 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 Ke Zhao<zhaoke@easycorp.ltd>
* @package compile
* @link http://www.zentao.net
*/
namespace zin;
if($repoID)
{
$repoName = $this->dao->select('name')->from(TABLE_REPO)->where('id')->eq($repoID)->fetch('name');
dropmenu(set::objectID($repoID), set::text($repoName), set::tab('repo'));
}
/* zin: Define the set::module('compile') feature bar on main menu. */
featureBar
(
set::current('compile'),
set::link($this->createLink('{key}', 'browse', "repoID=$repoID")),
);
/* zin: Define the toolbar on main menu. */
toolbar();
jsVar('orderBy', $orderBy);
jsVar('sortLink', helper::createLink('compile', 'browse', "repoID=$repoID&jobID={$jobID}&orderBy={orderBy}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}"));
$tableData = initTableData($buildList, $config->compile->dtable->fieldList, $this->compile);
foreach($tableData as $row) if(!$row->testtask) unset($row->actions[1]);
dtable
(
set::cols($config->compile->dtable->fieldList),
set::data($tableData),
set::sortLink(jsRaw('createSortLink')),
set::onRenderCell(jsRaw('window.renderCell')),
set::footPager(usePager()),
);
render();