* Finish task #92563.
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
/**
|
||||
* The contribute block view file of block 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 LiuRuoGu <liuruogu@easycorp.ltd>
|
||||
* @package block
|
||||
* @link https://www.zentao.net
|
||||
*/
|
||||
|
||||
namespace zin;
|
||||
|
||||
$blocks = array();
|
||||
|
||||
foreach($data as $code => $value)
|
||||
{
|
||||
$blocks[] = cell
|
||||
(
|
||||
set('flex', '0 0 33.33%'),
|
||||
col
|
||||
(
|
||||
set('justify', 'around'),
|
||||
set('class', 'text-center'),
|
||||
span(zget($lang->block, $code)),
|
||||
a
|
||||
(
|
||||
set('class', 'font-bold text-2xl text-darker leading-loose'), // TODO:zu1
|
||||
$value
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
panel
|
||||
(
|
||||
div
|
||||
(
|
||||
set('class', 'flex flex-wrap gap-y-2'),
|
||||
$blocks
|
||||
)
|
||||
);
|
||||
|
||||
render();
|
||||
@@ -1,64 +0,0 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
/**
|
||||
* The execution overview block view file of block 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 LiuRuoGu <liuruogu@easycorp.ltd>
|
||||
* @package block
|
||||
* @link https://www.zentao.net
|
||||
*/
|
||||
|
||||
namespace zin;
|
||||
|
||||
panel
|
||||
(
|
||||
div
|
||||
(
|
||||
set('class', 'flex'),
|
||||
cell
|
||||
(
|
||||
set('class', 'border-right'),
|
||||
set('style', ['width' => '25%']),
|
||||
col
|
||||
(
|
||||
set('class', 'text-center'),
|
||||
span
|
||||
(
|
||||
set('class', 'text-2xl font-bold leading-10 text-primary'),
|
||||
132
|
||||
),
|
||||
span
|
||||
(
|
||||
set('class', 'text-light'),
|
||||
'执行总量'
|
||||
)
|
||||
)
|
||||
),
|
||||
cell
|
||||
(
|
||||
set('class', 'border-right'),
|
||||
set('style', ['width' => '25%']),
|
||||
col
|
||||
(
|
||||
set('class', 'text-center'),
|
||||
span
|
||||
(
|
||||
set('class', 'text-2xl font-bold leading-10'),
|
||||
12
|
||||
),
|
||||
span
|
||||
(
|
||||
set('class', 'text-light'),
|
||||
'今年完成'
|
||||
)
|
||||
)
|
||||
),
|
||||
cell
|
||||
(
|
||||
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
render();
|
||||
@@ -368,6 +368,7 @@ class blockZen extends block
|
||||
*/
|
||||
public function printContributeBlock()
|
||||
{
|
||||
/* TODO:zu1*/
|
||||
$this->view->data = $this->loadModel('user')->getPersonalData();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user