* @package researchplan * @link https://www.zentao.net */ namespace zin; featureBar ( set::linkParams("projectID=$projectID"), li(searchToggle(set::module('researchplan'), set::open(strtolower($browseType) == 'bysearch'))) ); if(hasPriv('researchplan', 'create')) $createItem = array('icon' => 'plus', 'class' => 'primary', 'text' => $lang->researchplan->create, 'url' => $this->createLink('researchplan', 'create', "projectID={$projectID}")); toolbar ( !empty($createItem) ? item(set($createItem)) : null ); $tableData = initTableData($planList, $config->researchplan->dtable->fieldList, $this->researchplan); dtable ( set::cols($config->researchplan->dtable->fieldList), set::data($tableData), set::orderBy($orderBy), set::sortLink(createLink('researchplan', 'browse', "projectID={$projectID}&browseType={$browseType}¶m=0&orderBy={name}_{sortType}")) );