rabin 2 years ago
parent
commit
f78ec0b634
1 changed files with 11 additions and 1 deletions
  1. 11 1
      src/Database.php

+ 11 - 1
src/Database.php

@@ -3964,6 +3964,16 @@ class Database
                             }
                             $table_body .= '</tr>';
                         }
+                    } else {
+                        if (isset($param['update_show']) && $param['update_show'] && is_array($param['update_show'])) {
+                            foreach ($param['update_show'] as $uk => $uv) {
+                                if (isset($param['update'][$uk])) {
+                                    if (!isset($total[$uk])) {
+                                        $total[$uk] = array($param['update'][$uk]['desc'], $uv, 0);
+                                    }
+                                }
+                            }
+                        }
                     }
                     $table_body .= '</tbody>';
                     $table_header .= '</tr></thead>';
@@ -3972,7 +3982,7 @@ class Database
                     $result .= $table;
 
                     if ($total) {
-                        $result .= '<section class="border-b" style="padding: 10px;display: inline-block;"><script>function test(e, data, type){console.info(e.val())}</script>';
+                        $result .= '<section class="border-b" style="padding: 10px;display: inline-block;">';
 
                         foreach ($total as $k => $v) {
                             $result .= '<span>'.$v[0].':<span id="'.$v[1].'">'.$v[2].'</span></span>&nbsp;&nbsp;&nbsp;&nbsp;';