* code for task #73471.

This commit is contained in:
wangyidong
2022-10-25 11:30:40 +08:00
parent f19271b276
commit 1a9aca53c0
7 changed files with 86 additions and 31 deletions
+20
View File
@@ -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);
@@ -757,4 +765,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);
}
}