Merge branch 'master' of https://gitlab.zcorp.cc/easycorp/zentaopms into zin
This commit is contained in:
@@ -10,6 +10,14 @@
|
||||
*/
|
||||
class program extends control
|
||||
{
|
||||
/**
|
||||
* Construct
|
||||
*
|
||||
* @param string $moduleName
|
||||
* @param string $methodName
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($moduleName = '', $methodName = '')
|
||||
{
|
||||
parent::__construct($moduleName, $methodName);
|
||||
@@ -758,4 +766,16 @@ class program extends control
|
||||
|
||||
echo $this->fetch('program', 'product', "programID=$programID");
|
||||
}
|
||||
|
||||
/**
|
||||
* Ajax set show setting.
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function ajaxSetShowSetting()
|
||||
{
|
||||
$data = fixer::input('post')->get();
|
||||
$this->loadModel('setting')->updateItem("{$this->app->user->account}.program.showAllProjects", $data->showAllProjects);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user