From 7d1a2d4d7faee34fcab180c687c401a779636e0a Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 25 Feb 2019 09:01:30 +0800 Subject: [PATCH] * remove useless code. --- module/custom/control.php | 10 ---------- module/custom/lang/en.php | 6 ------ module/custom/lang/zh-cn.php | 5 ----- module/custom/view/set.html.php | 15 --------------- 4 files changed, 36 deletions(-) diff --git a/module/custom/control.php b/module/custom/control.php index 962634a8f4..5440ea9797 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -79,11 +79,6 @@ class custom extends control $this->app->loadConfig('user'); $this->view->showDeleted = isset($this->config->user->showDeleted) ? $this->config->user->showDeleted : '0'; } - if($module == 'user' and $field == 'showField') - { - $this->app->loadConfig('user'); - $this->view->showFields = isset($this->config->user->showFields) ? $this->config->user->showFields : ''; - } if(strtolower($this->server->request_method) == "post") { @@ -122,11 +117,6 @@ class custom extends control $data = fixer::input('post')->get(); $this->loadModel('setting')->setItem('system.user.showDeleted', $data->showDeleted); } - elseif($module == 'user' and $field == 'showField') - { - $data = fixer::input('post')->join('showFields', ',')->get(); - $this->loadModel('setting')->setItem('system.user.showFields', $data->showFields); - } else { $lang = $_POST['lang']; diff --git a/module/custom/lang/en.php b/module/custom/lang/en.php index fad34b2c31..47d1f09956 100644 --- a/module/custom/lang/en.php +++ b/module/custom/lang/en.php @@ -75,7 +75,6 @@ $lang->custom->user = new stdClass(); $lang->custom->user->fields['roleList'] = 'Role'; $lang->custom->user->fields['statusList'] = 'Status'; $lang->custom->user->fields['deleted'] = 'Deleted User'; -$lang->custom->user->fields['showField'] = 'Show Field'; $lang->custom->block->fields['closed'] = 'Closed Block'; @@ -111,11 +110,6 @@ $lang->custom->reviewList[0] = 'Off'; $lang->custom->deletedList[1] = 'Show'; $lang->custom->deletedList[0] = 'Hide'; -$lang->custom->userFieldList['wechat'] = 'Wechat'; -$lang->custom->userFieldList['dingding'] = 'Dingding'; -$lang->custom->userFieldList['slact'] = 'Slact'; -$lang->custom->userFieldList['whatsapp'] = 'WhatsApp'; - $lang->custom->workingHours = 'hours/day'; $lang->custom->weekend = 'Weekend'; $lang->custom->weekendList[2] = '2-Day Off'; diff --git a/module/custom/lang/zh-cn.php b/module/custom/lang/zh-cn.php index a034e87d7c..cdafde4fe0 100644 --- a/module/custom/lang/zh-cn.php +++ b/module/custom/lang/zh-cn.php @@ -111,11 +111,6 @@ $lang->custom->reviewList[0] = '关闭'; $lang->custom->deletedList[1] = '列出'; $lang->custom->deletedList[0] = '不列出'; -$lang->custom->userFieldList['wechat'] = '微信'; -$lang->custom->userFieldList['dingding'] = '钉钉'; -$lang->custom->userFieldList['slact'] = 'Slact'; -$lang->custom->userFieldList['whatsapp'] = 'WhatsApp'; - $lang->custom->workingHours = '每天可用工时'; $lang->custom->weekend = '休息日'; $lang->custom->weekendList[2] = '双休'; diff --git a/module/custom/view/set.html.php b/module/custom/view/set.html.php index b1976d3b0f..6ef62a37f3 100644 --- a/module/custom/view/set.html.php +++ b/module/custom/view/set.html.php @@ -139,21 +139,6 @@ EOT; - - - - - - - - - - - - - - -
custom->user->fields['showField'];?>custom->userFieldList, $showFields, "class='form-control chosen' multiple");?>
custom->notice->userFieldNotice;?>