Files
EasySoft-ZenTaoPMS/module/my/ui/score.html.php
T
2023-10-17 16:09:14 +08:00

53 lines
1.2 KiB
PHP

<?php
declare(strict_types=1);
/**
* The score view file of my 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 Yuting Wang <wangyuting@easycorp.ltd>
* @package my
* @link https://www.zentao.net
*/
namespace zin;
jsVar('methods', $lang->score->methods);
featureBar
(
set::current('all'),
set::linkParams("date={key}&userID={$app->user->id}&status=undone"),
);
$cols = array_values($config->my->score->dtable->fieldList);
$data = array_values($scores);
toolbar
(
span
(
setClass('btn text'),
h::strong
(
$lang->score->current,
':',
),
$user->score
),
btn
(
setClass('btn primary'),
set::url(helper::createLink('score', 'rule')),
$lang->my->scoreRule
),
);
dtable
(
set::cols($cols),
set::data($data),
set::fixedLeftWidth('0.2'),
set::onRenderCell(jsRaw('window.renderCell')),
set::footPager(usePager()),
);
render();