Files
EasySoft-ZenTaoPMS/module/space/ui/browse.html.php
T
2023-06-15 06:31:14 +00:00

46 lines
1.1 KiB
PHP

<?php
declare(strict_types=1);
/**
* The browse view file of space 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 Zeng Gang<zenggang@easycorp.ltd>
* @package space
* @link https://www.zentao.net
*/
namespace zin;
foreach($instances as $instance)
{
$instance->statusText = $this->instance->printStatus($instance, false);
}
$instances = initTableData($instances, $config->space->dtable->fieldList, $this->instance);
featureBar
(
set::current($type),
set::linkParams("spaceID=&browseType={key}"),
);
toolBar
(
hasPriv('instance', 'create') ? item(set(array
(
'text' => $lang->space->install,
'icon' => 'plus',
'class' => 'btn primary',
'url' => createLink('store', 'browse'),
))) : null,
);
dtable
(
set::cols($config->space->dtable->fieldList),
set::data($instances),
set::footPager(usePager()),
);
render();