* @package execution * @link https://www.zentao.net */ namespace zin; $moduleList = array(); foreach($lang->execution->report->typeList[$browseType] as $code => $module) { $moduleList[$code] = (object)array( 'key' => $code, 'id' => $code, 'name' => $module, 'parent' => 0, 'url' => createLink('execution', "report$browseType", "executionID=$executionID&type=$code") ); } detailHeader ( to::prefix ( btn ( set::icon('back'), set::type('primary-outline'), set::url(createLink('execution', $browseType, "executionID=$executionID") . "#app={$app->tab}"), $lang->goback ) ), to::title ( div ( setClass('clip'), span ( setClass('text-base'), sprintf($lang->execution->report->subtitle, $lang->execution->report->browseType[$browseType]) ) ) ), hasPriv('report', 'export') ? to::suffix ( btn ( set::type('primary'), set::text($lang->export), set::url(createLink('execution', 'exportchart', array('executionID' => $executionID, 'browseType' => $browseType, 'type' => $type))), setData('toggle', 'modal'), setData('size', 'sm') ) ) : null ); $staticData->editCanvasConfig->theme = 'light'; $staticData->editCanvasConfig->previewScaleType = 'top'; $staticDataJson = str_replace(array('"', '''), array("\\\"", "\'"), json_encode($staticData)); div ( setClass('flex flex-nowrap report-view'), setStyle(array('height' => 'calc(100vh - 8rem)')), cell ( set::width('200'), moduleMenu ( set::moduleName('execution'), set::title($lang->execution->report->notice), set::modules($moduleList), set::showDisplay(false), set::toggleSidebar(false), set::activeKey($type), set::closeLink('') ) ), cell ( setID('chartContainer'), set::flex('1'), setClass('ml-4 bg-white px-2 py-2'), h4(setClass('mt-2 ml-1'), zget($lang->execution->report->typeList[$browseType], $type)), h::iframe ( setID('staticScreen'), set('width', '100%'), set('height', '95%'), set('scrolling', 'no'), set('frameborder', '0'), set('marginheight', '0'), set('src', createLink('screen', 'staticDataOld')), on::init()->do(<<