|
@@ -810,12 +810,20 @@ class Database
|
|
|
|
|
|
# 增加主动统计按钮
|
|
# 增加主动统计按钮
|
|
if (isset($config['manage']['stat'])) {
|
|
if (isset($config['manage']['stat'])) {
|
|
- $config['manage']['button']['数据统计'] = $this->url('stat');
|
|
|
|
|
|
+ $name = '数据统计';
|
|
|
|
+ if (is_string($config['manage']['stat'])) {
|
|
|
|
+ $name = $config['manage']['stat'];
|
|
|
|
+ }
|
|
|
|
+ $config['manage']['button'][$name] = $this->url('stat');
|
|
}
|
|
}
|
|
|
|
|
|
# 增加下载报表按钮
|
|
# 增加下载报表按钮
|
|
if (isset($config['manage']['excel'])) {
|
|
if (isset($config['manage']['excel'])) {
|
|
- $config['manage']['button']['导出数据'] = 'onclick="location.href=\''.$this->url('excel').'\'"';
|
|
|
|
|
|
+ $name = '导出数据';
|
|
|
|
+ if (is_string($config['manage']['excel'])) {
|
|
|
|
+ $name = $config['manage']['excel'];
|
|
|
|
+ }
|
|
|
|
+ $config['manage']['button'][$name] = 'onclick="jump(\''.$this->url('excel').'\', \'#form1\')"';
|
|
}
|
|
}
|
|
# 增加回收站
|
|
# 增加回收站
|
|
if (isset($config['struct']['state']) && (!isset($config['manage']['delete']) || (isset($config['manage']['delete']) && $config['manage']['delete'] && isset($config['manage']['_list']['value']['delete'])))) {
|
|
if (isset($config['struct']['state']) && (!isset($config['manage']['delete']) || (isset($config['manage']['delete']) && $config['manage']['delete'] && isset($config['manage']['_list']['value']['delete'])))) {
|