| 
					
				 | 
			
			
				@@ -1011,7 +1011,9 @@ class Database 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (isset($config['manage']['search']['linkage'])) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 foreach ($config['manage']['search']['linkage'] as $k => $v) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $this->list_search_linkage($result, $search, $prefix . 'linkage_' . $k, $v['lang'], $this->option($v['option']), $v['default']); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    $result .= '<br />'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if (!layadmin()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        $result .= '<br />'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1626,22 +1628,32 @@ class Database 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $linkage = Dever::preInput('search_linkage_'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if ($linkage) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             foreach ($linkage as $k => $v) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if ($v) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     unset($search[$k]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $k = str_replace('search_linkage_', '', $k); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    if (is_array($v)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        $v = implode(',', $v); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    if ($v != -1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        $v = Dever::defaultValue($v); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if (isset($config['struct'][$k]['search_col'])) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        $temp = explode(',', $config['struct'][$k]['search_col']); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        foreach ($temp as $k1 => $v1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            if (isset($v[$k1]) && $v[$k1] != -1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                $param['option_' . $v1] = $v[$k1]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        if (is_array($v)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            $v = implode(',', $v); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        if ($v != -1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            $v = Dever::defaultValue($v); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        $param['option_' . $k] = $v; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            $param['option_' . $k] = $v; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        # 设定检索高亮 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        $high[$k] = $v; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            # 设定检索高亮 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            $high[$k] = $v; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1806,6 +1818,10 @@ class Database 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $result = $return = array(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (isset($config['top_option']) && $config['top_option']) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $param['option'][$config['top_option']['col']] = array($config['top_option']['value'], 'in'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if ($excel == true) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $method = $this->project . '/' . $this->table . '-all'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 |