| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- /**
- * The task 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 Tingting Dai <daitingting@easycorp.ltd>
- * @package block
- * @link https://www.zentao.net
- */
- namespace zin;
- if(!$longBlock)
- {
- unset($config->block->task->dtable->fieldList['deadline']);
- unset($config->block->task->dtable->fieldList['estimate']);
- unset($config->block->task->dtable->fieldList['left']);
- unset($config->block->task->dtable->fieldList['progress']);
- }
- blockPanel
- (
- setClass('list-block'),
- dtable
- (
- set::height(318),
- set::bordered(false),
- set::horzScrollbarPos('inside'),
- set::cols(array_values($config->block->task->dtable->fieldList)),
- set::data(array_values($tasks))
- )
- );
- render();
|