* @package block * @link https://www.zentao.net */ namespace zin; jsVar('delay', $lang->block->delay); if(!$longBlock) { unset($config->block->plan->dtable->fieldList['id']); unset($config->block->plan->dtable->fieldList['product']); unset($config->block->plan->dtable->fieldList['hour']); unset($config->block->plan->dtable->fieldList['bugs']); } else { $config->block->plan->dtable->fieldList['product']['map'] = $products; foreach($plans as $plan) $plan->hour .= $config->hourUnit; } blockPanel ( setClass('list-block'), dtable ( set::height(318), set::fixedLeftWidth($longBlock ? '0.33' : '0.5'), set::onRenderCell(jsRaw('window.onRenderPlanNameCell')), set::cols(array_values($config->block->plan->dtable->fieldList)), set::data(array_values($plans)) ) ); render();