* @package block * @link https://www.zentao.net */ namespace zin; if(!$longBlock) { unset($config->block->case->dtable->fieldList['status']); unset($config->block->case->dtable->fieldList['lastRunDate']); unset($config->block->case->dtable->fieldList['lastRunResult']); } foreach($cases as $case) $case->lastRunDate = formatTime($case->lastRunDate, DT_DATE1); panel ( set::title($block->title), set('class', 'case-block list-block ' . ($longBlock ? 'block-long' : 'block-sm')), set('headingClass', 'border-b'), to::headingActions ( a ( set('class', 'text-gray'), set('href', $block->moreLink), $lang->more, icon('caret-right') ) ), dtable ( set::id('case'), set::height(320), set::bordered(false), set::horzScrollbarPos('inside'), set::cols(array_values($config->block->case->dtable->fieldList)), set::data(array_values($cases)), ) ); render();