* Finish task #8194.

This commit is contained in:
holan20180123
2020-11-06 14:01:01 +08:00
parent 25ac267c60
commit 09d6f83f85
24 changed files with 504 additions and 257 deletions
+40
View File
@@ -347,6 +347,46 @@ class custom extends control
$this->display();
}
/**
* Set whether the project is on read-only.
*
* @access public
* @return void
*/
public function project()
{
if($_POST)
{
$this->loadModel('setting')->setItem('system.common.global.closedProjectStatus', $this->post->project);
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => 'reload'));
}
$this->view->title = $this->lang->custom->project;
$this->view->position[] = $this->lang->custom->common;
$this->view->position[] = $this->view->title;
$this->display();
}
/**
* Set whether the product is on read-only.
*
* @access public
* @return void
*/
public function product()
{
if($_POST)
{
$this->loadModel('setting')->setItem('system.common.global.closedProductStatus', $this->post->product);
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => 'reload'));
}
$this->view->title = $this->lang->custom->product;
$this->view->position[] = $this->lang->custom->common;
$this->view->position[] = $this->view->title;
$this->display();
}
/**
* Ajax save custom fields.
*