* Adjust code.

This commit is contained in:
leiyong
2021-03-24 10:29:10 +08:00
parent 05a152abf7
commit fe7fce9512
16 changed files with 49 additions and 45 deletions
+2 -3
View File
@@ -43,11 +43,10 @@ class program extends control
*/
public function browse($status = 'all', $orderBy = 'order_asc')
{
$this->lang->program->mainMenuAction = html::a('javascript:history.go(-1);', '<i class="icon icon-back"></i> ' . $this->lang->goback, '', "class='btn btn-link'");
if(common::hasPriv('program', 'create')) $this->lang->pageActions = html::a($this->createLink('program', 'create'), "<i class='icon icon-sm icon-plus'></i> " . $this->lang->program->create, '', "class='btn btn-secondary'");
$this->session->set('programList', $this->app->getURI(true));
$this->session->set('programList', $this->app->getURI(true), 'program');
$this->session->set('projectList', $this->app->getURI(true), 'project');
$programType = $this->cookie->programType ? $this->cookie->programType : 'bylist';