|
@@ -2488,7 +2488,7 @@ class Database
|
|
|
|
|
|
//print_r($data);die;
|
|
|
//print_r(Helper::page("current"));die;
|
|
|
-
|
|
|
+ $this->manage_button = false;
|
|
|
if ($data && isset($config['struct'])) {
|
|
|
$i = 0;
|
|
|
$pg = Dever::input('pg', 1);
|
|
@@ -2670,9 +2670,7 @@ class Database
|
|
|
}
|
|
|
|
|
|
$button = $this->list_tbody_button($config, $data[$k]);
|
|
|
- if ($this->manage_button) {
|
|
|
- $result[$k] .= $button;
|
|
|
- }
|
|
|
+ $result[$k] .= $button;
|
|
|
|
|
|
$return[$i]['manage'] = str_replace(array('<td>', '</td>'), '', $button);
|
|
|
|
|
@@ -2682,6 +2680,11 @@ class Database
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ $result = implode('', $result);
|
|
|
+ if (!$this->manage_button) {
|
|
|
+ $result = str_replace('<td></td>', '', $result);
|
|
|
+ }
|
|
|
+
|
|
|
/*
|
|
|
if ($result) {
|
|
|
$thead = $this->list_thead();
|