rabin 5 роки тому
батько
коміт
15000163ba
2 змінених файлів з 11 додано та 8 видалено
  1. 6 3
      src/Database.php
  2. 5 5
      src/Lib/Input.php

+ 6 - 3
src/Database.php

@@ -2728,6 +2728,9 @@ class Database
                 }
                 $param['project'] = $this->project;
                 $param['table'] = $this->table;
+                if (isset($param['upload_search'])) {
+                    $param['upload_search'] = $this->value($param['upload_search'], $data + $param);
+                }
                 $result .= Html::$method($param);
             }
 
@@ -3196,9 +3199,9 @@ class Database
                 ->setLastModifiedBy("Maze Stat Excel")
                 ->setTitle("Office 2007 XLSX Maze Document")
                 ->setSubject("Office 2007 XLSX Maze Document")
-                ->setDescription("Mazephp Stat Excel")
-                ->setKeywords("Mazephp Stat Excel")
-                ->setCategory("Mazephp Stat Excel");
+                ->setDescription("Dever Stat Excel")
+                ->setKeywords("Dever Stat Excel")
+                ->setCategory("Dever Stat Excel");
 
             $info = $this->info();
 

+ 5 - 5
src/Lib/Input.php

@@ -280,10 +280,10 @@ class Input
                 $temp = explode('.cr', $param['value']);
                 $pic .= ' data-src="' . $temp[0] . '"';
             }
+        } else {
+            $pic = 'src="" style=display:none;';
         }
 
-        $pic = 'src="" style=display:none;';
-
         $class = 'width:100px;display:inline;';
         if (layadmin()) {
             $class .= 'padding-left:0px;';
@@ -298,7 +298,7 @@ class Input
           <div class="layui-progress-bar" lay-percent="0%"></div>
         </div>
 
-        <div style="margin:10px;">
+        <div style="margin-top: 10px;margin-bottom: 10px;">
         
         '.$param['place'].'
 
@@ -344,7 +344,7 @@ class Input
         </div>
 
 
-        <div style="margin:10px;" update_type="html"  class="update_value ' . $param['name'] . '_' . $param['index'] . '_mul">' . $pic . '</div>
+        <div style="margin-top: 10px;margin-bottom: 10px;" update_type="html"  class="update_value ' . $param['name'] . '_' . $param['index'] . '_mul">' . $pic . '</div>
 
         <input type="text" class="update_value form-control ' . (isset($param['valid']) ? $param['valid'] : '') . '" name="' . $param['name'] . '" id="' . $param['name'] . '_' . $param['index'] . '" value="' . (isset($param['value']) ? $param['value'] : (isset($param['default']) ? $param['default'] : '')) . '">';
     }
@@ -413,7 +413,7 @@ class Input
           <div class="layui-progress-bar" lay-percent="0%"></div>
         </div>
 
-        <ul style="margin:10px;" update_type="html"  class="update_value ' . $param['name'] . '_' . $param['index'] . '_mul">' . $file . '</ul>
+        <ul style="margin-top: 10px;margin-bottom: 10px;" update_type="html"  class="update_value ' . $param['name'] . '_' . $param['index'] . '_mul">' . $file . '</ul>
 
         <input type="hidden" class="update_value form-control ' . (isset($param['valid']) ? $param['valid'] : '') . '" name="' . $param['name'] . '" id="' . $param['name'] . '_' . $param['index'] . '" value="' . (isset($param['value']) ? $param['value'] : (isset($param['default']) ? $param['default'] : '')) . '">';
         //return '<input type="file" class="form-control" value="' . (isset($param['value']) ? $param['value'] : (isset($param['default']) ? $param['default'] : '')) . '" name="' . $param['name'] . '"/>';