* @package caselib * @link https://www.zentao.net */ namespace zin; $isInModal = isAjaxRequest('modal'); detailHeader ( $isInModal ? to::prefix('') : '', to::title(entityLabel(set(array('entityID' => $lib->id, 'level' => 1, 'text' => $lib->name)))) ); $commonActions = array(); foreach($config->caselib->actionList as $operate => $settings) { if(!common::hasPriv('caselib', $operate)) continue; $commonActions[] = $settings; } detailBody ( sectionList ( section ( set::title($lang->caselib->legendDesc), set::content($lib->desc), set::useHtml(true) ), history(set::objectID($lib->id)) ), floatToolbar ( !$isInModal ? set::prefix ( array(array('icon' => 'back', 'text' => $lang->goback, 'url' => 'javascript:goBack("execution-task", "execution-task")')) ) : '', set::suffix($commonActions), set::object($lib) ) ); render();