52 lines
1.2 KiB
PHP
52 lines
1.2 KiB
PHP
<?php
|
|
declare(strict_types = 1);
|
|
/**
|
|
* The preview view file of chart 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 Chenxuan Song <songchenxuan@easycorp.ltd>
|
|
* @package chart
|
|
* @link https://www.zentao.net
|
|
*/
|
|
namespace zin;
|
|
|
|
include 'echarts.html.php';
|
|
|
|
jsVar('groupID', isset($group->id) ? $group->id : 0);
|
|
jsVar('charts', $charts);
|
|
jsVar('noChartSelected', $lang->chart->noChartSelected);
|
|
|
|
featureBar
|
|
(
|
|
set::current($group->id),
|
|
set::linkParams("dimension={$dimensionID}&group={key}")
|
|
);
|
|
|
|
div
|
|
(
|
|
setClass('flex gap-4'),
|
|
sidebar
|
|
(
|
|
set::width('60'),
|
|
moduleMenu
|
|
(
|
|
set::title($group->name),
|
|
set::modules($charts),
|
|
set::closeLink(''),
|
|
set::showDisplay(false)
|
|
),
|
|
$config->edition == 'open' ? div
|
|
(
|
|
setClass('bg-white p-4'),
|
|
html(empty($config->isINT) ? $lang->bizVersion : $lang->bizVersionINT)
|
|
) : null
|
|
),
|
|
div
|
|
(
|
|
setClass('w-full'),
|
|
$chartItems()
|
|
)
|
|
);
|
|
|
|
render();
|