dever 3 rokov pred
rodič
commit
f81e0ce998
2 zmenil súbory, kde vykonal 1 pridanie a 68 odobranie
  1. 1 1
      src/Database.php
  2. 0 67
      src/Lib/Input.php

+ 1 - 1
src/Database.php

@@ -1043,7 +1043,7 @@ class Database
                         $url = Dever::url($v[1]);
                     }
                     $result .= '&nbsp;&nbsp;<a class="btn btn-default layui-btn layuiadmin-btn-list" onclick="location.href=\''.$url.'\'">' . $k . '</a>';
-                } elseif ($v[0] == 'excel') {
+                } elseif ($v[0] == 'excel' || $v[0] == 'search') {
                     $url = Dever::url($v[1]);
                     $result .= '&nbsp;&nbsp;<a class="btn btn-default layui-btn layuiadmin-btn-list" href="javascript:;" onclick="jump(\''.$url.'\', \'#form1\')">' . $k . '</a>';
                 } elseif ($v[0] == 'show') {

+ 0 - 67
src/Lib/Input.php

@@ -1026,73 +1026,6 @@ class Input
         return $html;
     }
 
-    /**
-     * goods
-     *
-     * @return string
-     */
-    public static function _goods($param)
-    {
-        $html = "<style>.number-box {
-    border:#e5e5e5 solid 1px;
-    display:inline-block;
-    overflow:hidden;
-}
-.number-box input[type='text'] {
-    height:30px;
-    border-top:none;
-    border-bottom:none;
-    border-left:#e5e5e5 solid 1px;
-    border-right:#e5e5e5 solid 1px;
-    margin:0;
-    text-align:center;
-    width:40px;
-    outline:none;
-    padding:0 5px;
-    float:left;
-    line-height:30px;
-}
-.number-box input[type='button'] {
-    height:30px;
-    width:40px;
-    float:left;
-    border:none;
-    outline:none;
-    background-color:#f3f3f3;
-    line-height:30px;
-    cursor:pointer;
-    padding:0;
-}
-.number-box input[type='button']:hover {
-    background-color:#f9f9f9;
-}
-.number-box input[type='button']:active {
-    background-color:#f6f6f6;
-}</style>";
-        
-        $html .= '<script>$(document.documentElement).on("click", ".on-number", function() {
-    var $val = $(this).siblings("input[type=\'text\']"),
-        val = parseInt($val.val(), 10) + parseInt($(this).data("v"));
-    $val.val(isNaN(val) ? 0 : val);
-});</script>';
-        $html .= '<input type="text" class="layui-input update_value form-control layui-input" value="" name="update_pwd_prefix" id="update_pwd_prefix_value" autocomplete="new-password" placeholder="搜索商品名称">';
-
-
-        $html .= '<ul>
-
-        <li><div>商品1</div>
-
-            <div class="number-box">
-                <input type="button" class="on-number" value="-" data-v="-1">
-                <input type="text" value="0">
-                <input type="button" class="on-number" value="+" data-v="1">
-            </div>
-        </li>
-
-        <li>商品2</li></ul>';
-        return $html;
-    }
-
     /**
      * radio
      *