| 
					
				 | 
			
			
				@@ -672,4 +672,23 @@ class Manage 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return $data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public function goods_list($id){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $info = Dever::db('shop/sell_order')->find($id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $res = array(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $goods = Dever::db('shop/sell_order_goods')->getGoods(array('order_id'=>$id)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        foreach($goods as $k => $v){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $data[] = Dever::db('goods/info')->fetch('select `name` from churen_goods_info where id = '.$v['goods_id'].' and state =1'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        foreach($data as $k => $v){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $res[] = $v['name']; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (count($res) > 3){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $html = $res[0].'<br/>'.$res[1].'<br/>'.$res['2'].'……'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+             $html = implode('<br/>',$res); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return $html; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |