|
@@ -377,13 +377,6 @@ class Database
|
|
$top = Dever::load('manage/top.get');
|
|
$top = Dever::load('manage/top.get');
|
|
//print_r($top);die;
|
|
//print_r($top);die;
|
|
|
|
|
|
- # 新增权限
|
|
|
|
- $insert_state = Dever::load('manage/auth.oper', 4);
|
|
|
|
- $add = $this->url('add');
|
|
|
|
- if ((isset($config['manage']['insert']) && $config['manage']['insert'] == false) || !isset($config['manage']['insert']) || $insert_state == false) {
|
|
|
|
- $add = '';
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
$this->info = array
|
|
$this->info = array
|
|
(
|
|
(
|
|
'action' => $this->url('updateAction'),
|
|
'action' => $this->url('updateAction'),
|
|
@@ -391,7 +384,7 @@ class Database
|
|
'search' => $this->url('search'),
|
|
'search' => $this->url('search'),
|
|
'mul' => $this->url('list'),
|
|
'mul' => $this->url('list'),
|
|
//'add' => 'location.href=\'' . $this->url('add') . '\'',
|
|
//'add' => 'location.href=\'' . $this->url('add') . '\'',
|
|
- 'add' => $add,
|
|
|
|
|
|
+ 'add' => $this->url('add'),
|
|
|
|
|
|
'state' => $this->getState(),
|
|
'state' => $this->getState(),
|
|
'l' => 'project/database/list',
|
|
'l' => 'project/database/list',
|
|
@@ -1101,10 +1094,35 @@ class Database
|
|
# 增加返回上一页按钮
|
|
# 增加返回上一页按钮
|
|
$info = $this->info();
|
|
$info = $this->info();
|
|
if ($info['parent']) {
|
|
if ($info['parent']) {
|
|
- $button['返回上一页'] = $info['parent'];
|
|
|
|
|
|
+ $parent_name = '返回上一页';
|
|
|
|
+ $parent_show = false;
|
|
|
|
+ if (isset($config['manage']['parent']) && $config['manage']['parent']) {
|
|
|
|
+ if (is_string($config['manage']['parent'])) {
|
|
|
|
+ $parent_name = $config['manage']['parent'];
|
|
|
|
+ }
|
|
|
|
+ $parent_show = true;
|
|
|
|
+ } elseif (!isset($config['manage']['parent'])) {
|
|
|
|
+ $parent_show = true;
|
|
|
|
+ }
|
|
|
|
+ if ($parent_show) {
|
|
|
|
+ $button[$parent_name] = $info['parent'];
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if ($info['add']) {
|
|
if ($info['add']) {
|
|
- //$button['新增'] = $info['add'];
|
|
|
|
|
|
+ $add_name = '新增';
|
|
|
|
+ $add_show = false;
|
|
|
|
+ if (isset($config['manage']['insert']) && $config['manage']['insert']) {
|
|
|
|
+ if (is_string($config['manage']['insert'])) {
|
|
|
|
+ $add_name = $config['manage']['insert'];
|
|
|
|
+ }
|
|
|
|
+ $add_show = true;
|
|
|
|
+ } elseif (!isset($config['manage']['insert'])) {
|
|
|
|
+ $add_show = true;
|
|
|
|
+ }
|
|
|
|
+ $insert_state = Dever::load('manage/auth.oper', 4);
|
|
|
|
+ if ($insert_state && $add_show) {
|
|
|
|
+ $button[$add_name] = $info['add'];
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
# 增加主动统计按钮
|
|
# 增加主动统计按钮
|