|
@@ -1469,7 +1469,8 @@ class Database
|
|
|
$config['manage']['num'] = $this->getNumConfig($config);
|
|
|
|
|
|
if ($config['manage']['num']) {
|
|
|
- $result = $this->num($result, $config['manage']['num']);
|
|
|
+ Dever::config('base')->page_num = $config['manage']['num'];
|
|
|
+ //$result = $this->num($result, $config['manage']['num']);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1516,7 +1517,7 @@ class Database
|
|
|
return false;
|
|
|
}
|
|
|
if (!isset($config['manage']['num'])) {
|
|
|
- $config['manage']['num'] = array(20,50,100);
|
|
|
+ $config['manage']['num'] = array(20,30,40,50,60,70,80,90,100);
|
|
|
}
|
|
|
return $config['manage']['num'];
|
|
|
}
|
|
@@ -1528,6 +1529,7 @@ class Database
|
|
|
*/
|
|
|
private function num($result, $config)
|
|
|
{
|
|
|
+ return $result;
|
|
|
$limit = '';
|
|
|
$cur = Dever::input('search_limit', 0);
|
|
|
foreach($config as $k => $v) {
|
|
@@ -1537,14 +1539,15 @@ class Database
|
|
|
$btn = 'default';
|
|
|
}
|
|
|
$url = $this->url('list', 0, false, '&search_limit=' . $k);
|
|
|
- $limit .= '<a href="'.$url.'" style="width:60px;font-weight:bold;" class="btn btn-'.$btn.'">'.$v.'</a> ';
|
|
|
+ $limit .= '<a href="'.$url.'" style="width:60px;font-weight:bold;" class="btn btn-'.$btn.' layui-btn layui-btn-radius layui-btn-primary">'.$v.'</a> ';
|
|
|
}
|
|
|
|
|
|
- $num = '<div class="form-group layui-inline"><div style="padding-top:20px;margin-bottom: -30px;"><label style="color:#bababa;margin-left:8px;margin-right:10px;font-size:14px;font-weight:bold;">每页显示条数:</label>'.$limit.'</div></div>';
|
|
|
+ $num = '<div class="form-group layui-inline"><div style="padding-top:10px;margin-bottom: -10px;"><label style="color:#bababa;margin-left:8px;margin-right:10px;font-size:14px;font-weight:bold;">每页显示条数:</label>'.$limit.'</div></div>';
|
|
|
|
|
|
+ /*
|
|
|
if (layadmin()) {
|
|
|
$num = '';
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
$result .= $num;
|
|
|
|
|
@@ -1768,11 +1771,11 @@ class Database
|
|
|
$data = $this->getAdminInfo($data);
|
|
|
$load = Dever::input('excel_load');
|
|
|
if ($load) {
|
|
|
- Dever::load($load, $data);
|
|
|
+ return Dever::load($load, $data);
|
|
|
} elseif (is_string($config['manage']['excel']) && strstr($config['manage']['excel'], '.')) {
|
|
|
- Dever::load($config['manage']['excel'], $data);
|
|
|
+ return Dever::load($config['manage']['excel'], $data);
|
|
|
} else {
|
|
|
- $this->excel($info, $data, $config);
|
|
|
+ return $this->excel($info, $data, $config);
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
@@ -2279,7 +2282,7 @@ class Database
|
|
|
}
|
|
|
|
|
|
if ($excel == true) {
|
|
|
- $method = $this->project . '/' . $this->table . '-all';
|
|
|
+ $method = $this->project . '/' . $this->table . '-list';//all
|
|
|
} else {
|
|
|
$method = $this->project . '/' . $this->table . '-list';
|
|
|
}
|