* @package caselib * @link https://www.zentao.net */ namespace zin; $isInModal = isAjaxRequest('modal'); data('caselib', $lib); detailHeader ( $isInModal ? to::prefix('') : '', to::title(entityLabel(set(array('entityID' => $lib->id, 'level' => 1, 'text' => $lib->name)))) ); $commonActions = $this->loadModel('common')->buildOperateMenu($lib); 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['mainActions']), set::object($lib) ) ); render();