| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- /**
- * 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 https://www.zentao.net
- */
- namespace zin;
- if(!empty($repoID)) dropmenu(set::objectID($repoID), set::tab('repo'));
- /* zin: Define the set::module('compile') feature bar on main menu. */
- $queryMenuLink = createLink('compile', 'browse', "repoID={$repoID}&jobID={$jobID}&browseType=bySearch¶m={queryID}");
- featureBar
- (
- set::current('compile'),
- set::link(createLink('{key}', 'browse', "repoID=$repoID")),
- set::itemLink(array('compile' => createLink('compile', 'browse', "repoID=$repoID&jobID=$jobID"))),
- set::queryMenuLinkCallback(array(function ($key) use ($queryMenuLink) {
- return str_replace('{queryID}', (string)$key, $queryMenuLink);
- })),
- li(searchToggle(set::module('compile'), set::open($browseType == 'bySearch')))
- );
- /* zin: Define the toolbar on main menu. */
- toolbar();
- $tableData = initTableData($buildList, $config->compile->dtable->fieldList, $this->compile);
- dtable
- (
- set::cols($config->compile->dtable->fieldList),
- set::data($tableData),
- set::sortLink(createLink('compile', 'browse', "repoID=$repoID&jobID={$jobID}&browseType={$browseType}¶m={$param}&orderBy={name}_{sortType}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}")),
- set::orderBy($orderBy),
- set::onRenderCell(jsRaw('window.renderCell')),
- set::footPager(usePager())
- );
- if($repoID || $jobID) h::js("$.getJSON($.createLink('compile', 'ajaxSyncCompile', 'repoID={$repoID}&jobID={$jobID}'));");
|