* @package custom * @link https://www.zentao.net */ namespace zin; jsVar('defaultKey', $config->custom->URSR); $canCreate = hasPriv('custom', 'setstoryconcept'); if($canCreate) $createItem = array('icon' => 'plus', 'class' => 'primary', 'text' => $lang->custom->setStoryConcept, 'url' => $this->createLink('custom', 'setstoryconcept'), 'data-toggle' => 'modal'); $tableData = initTableData($URSRList, $config->custom->browseStoryConcept->dtable->fieldList); include 'sidebar.html.php'; div ( setClass('flex'), $sidebarMenu, div ( setClass('story-concept-panel flex-auto col ml-4'), div ( setClass('panel-header flex-auto'), div ( setClass('flex-auto text-md font-bold'), $lang->custom->product->fields['browsestoryconcept'] ), toolbar ( !empty($createItem) ? item(set($createItem)) : null ) ), dtable ( set::cols($config->custom->browseStoryConcept->dtable->fieldList), set::data($tableData), set::onRenderCell(jsRaw('window.renderCell')) ) ) ); /* ====== Render page ====== */ render();