| 
					
				 | 
			
			
				@@ -457,6 +457,8 @@ class Database 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         $config['manage']['search']['fulltext'][$k] = $v['name']; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         isset($v['match']) && $config['request']['list']['option'][$k] = array('option', 'like'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } elseif (strpos($v['search'], 'text') !== false) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        $config['manage']['search']['text'][$k] = $v['name']; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if (isset($v['exist']) && strpos($v['search'], 'exist') !== false) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -790,7 +792,7 @@ class Database 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $value['value'] = Dever::maketime($search[$value['name']]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             Dever::setInput($value['name'], $value['value'], 'search_'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        $result .= Html::$type($value) . '  <br />'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $result .= Html::$type($value) . '  '; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -951,6 +953,7 @@ class Database 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (isset($config['manage']['search']['select'])) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $this->list_search_br($result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 foreach ($config['manage']['search']['select'] as $k => $v) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $bind = array(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $parent = ''; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -971,24 +974,28 @@ class Database 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (isset($config['manage']['search']['exist'])) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $this->list_search_br($result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 foreach ($config['manage']['search']['exist'] as $k => $v) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $this->list_search_select($result, $search, $prefix . 'exist_' . $k, $v['lang'], $this->option($v['option']), ''); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (isset($config['manage']['search']['group'])) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $this->list_search_br($result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 foreach ($config['manage']['search']['group'] as $k => $v) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $this->list_search_group($result, $search, $prefix . 'option_' . $k, $v['lang'], $this->option($v['option']), $v['default']); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (isset($config['manage']['search']['mul'])) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $this->list_search_br($result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 foreach ($config['manage']['search']['mul'] as $k => $v) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $this->list_search_mul($result, $search, $prefix . 'option_' . $k, $v['lang'], $this->option($v['option']), $v['default']); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (isset($config['manage']['search']['api'])) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $this->list_search_br($result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 foreach ($config['manage']['search']['api'] as $k => $v) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $value = array(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $value['name'] = $prefix . 'api_' . $k; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1005,8 +1012,26 @@ class Database 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (isset($config['manage']['search']['fulltext'])) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (isset($config['manage']['search']['text'])) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $this->list_search_br($result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                foreach ($config['manage']['search']['text'] as $k => $v) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    $value = array(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    $value['name'] = $prefix . 'option_' . $k; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    $value['class'] = 'form-control'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if (isset($search[$value['name']])) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        $value['value'] = $search[$value['name']]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if (strpos($v, '-') !== false) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        $t = explode('-', $v); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        $v = $t[0]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    $value['placeholder'] = $v; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    $result .= Html::text($value, false) . ' '; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (isset($config['manage']['search']['fulltext'])) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $this->list_search_br($result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 foreach ($config['manage']['search']['fulltext'] as $k => $v) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $value = array(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $value['name'] = $prefix . 'fulltext_' . $k; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1068,6 +1093,13 @@ class Database 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return $result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private function list_search_br(&$result) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (strpos($result, '  ') && !strpos($result, '<br />')) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $result .= '<br />'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 获取条数配置 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1078,7 +1110,10 @@ class Database 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (isset($config['manage']['list_type'])) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if (empty($config['manage']['num'])) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (isset($config['manage']['num']) && $config['manage']['num'] == false) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (!isset($config['manage']['num'])) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $config['manage']['num'] = array(20,50,100); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return $config['manage']['num']; 
			 |