* @package user * @link https://www.zentao.net */ namespace zin; include './featurebar.html.php'; $app->loadLang('execution'); $app->loadModuleConfig('execution'); jsVar('delayed', $lang->execution->delayed); jsVar('executionTypeList', $lang->user->executionTypeList); jsVar('edition', $config->edition); $cols = array(); foreach($config->user->defaultFields['execution'] as $field) $cols[$field] = zget($config->execution->dtable->fieldList, $field, array()); $cols['name']['nestedToggle'] = false; $cols['name']['type'] = 'text'; $cols['name']['link'] = $config->user->execution->dtable->name['link']; $cols['name']['name'] = 'name'; $cols['name']['title'] = $lang->execution->name; $cols['name']['data-app'] = 'execution'; $cols['status']['title'] = $lang->statusAB; $cols['id'] = array('type' => 'checkID', 'title' => $lang->idAB, 'checkbox' => false); $cols['role'] = array('type' => 'user', 'title' => $lang->team->role, 'sortType' => false); $cols['join'] = array('type' => 'date', 'title' => $lang->team->join, 'sortType' => false); $cols['hours'] = array('type' => 'number', 'width' => 100, 'title' => $lang->team->hours, 'sortType' => false); $cols = array_map(function($col) { unset($col['fixed'], $col['group']); return $col; }, $cols); panel ( setClass('list'), set::title(null), dtable ( set::bordered(true), set::cols($cols), set::data(array_values($executions)), set::orderBy($orderBy), set::sortLink(inlink('execution', "userID={$user->id}&orderBy={name}_{sortType}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}")), set::onRenderCell(jsRaw('window.renderCell')), set::footPager(usePager()) ) ); render();