* remove useless code.

This commit is contained in:
wangyidong
2019-02-25 09:01:30 +08:00
parent 36de63e1fe
commit 7d1a2d4d7f
4 changed files with 0 additions and 36 deletions
-10
View File
@@ -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'];
-6
View File
@@ -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';
-5
View File
@@ -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] = '双休';
-15
View File
@@ -139,21 +139,6 @@ EOT;
<td><?php echo html::submitButton();?></td>
</tr>
</table>
<?php elseif($module == 'user' and $field == 'showField'):?>
<table class='table table-form mw-600px'>
<tr>
<th class='w-100px'><?php echo $lang->custom->user->fields['showField'];?></th>
<td><?php echo html::select('showFields[]', $lang->custom->userFieldList, $showFields, "class='form-control chosen' multiple");?></td>
</tr>
<tr>
<th></th>
<td><span class='text-warning'><?php echo $lang->custom->notice->userFieldNotice;?></span></td>
</tr>
<tr>
<td></td>
<td><?php echo html::submitButton();?></td>
</tr>
</table>
<?php else:?>
<table class='table table-form active-disabled table-condensed mw-600px'>
<tr class='text-center'>