|  | @@ -423,4 +423,50 @@ function __construct(){
 | 
	
		
			
				|  |  |  		exit($str); 
 | 
	
		
			
				|  |  |  		//return $str;
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public function get_fz7($info_list,$titlename,$filename)
 | 
	
		
			
				|  |  | +	{
 | 
	
		
			
				|  |  | +		$str = "<html xmlns:x=\"urn:schemas-microsoft-com:office:excel\">
 | 
	
		
			
				|  |  | +        <head>
 | 
	
		
			
				|  |  | +        <!--[if gte mso 9]><xml>
 | 
	
		
			
				|  |  | +        <x:ExcelWorkbook>
 | 
	
		
			
				|  |  | +        <x:ExcelWorksheets>
 | 
	
		
			
				|  |  | +        <x:ExcelWorksheet>
 | 
	
		
			
				|  |  | +        <x:Name>EXCEL</x:Name>
 | 
	
		
			
				|  |  | +        <x:WorksheetOptions>
 | 
	
		
			
				|  |  | +        <x:Print>
 | 
	
		
			
				|  |  | +        <x:ValidPrinterInfo />
 | 
	
		
			
				|  |  | +        </x:Print>
 | 
	
		
			
				|  |  | +        </x:WorksheetOptions>
 | 
	
		
			
				|  |  | +        </x:ExcelWorksheet>
 | 
	
		
			
				|  |  | +        </x:ExcelWorksheets>
 | 
	
		
			
				|  |  | +        </x:ExcelWorkbook>
 | 
	
		
			
				|  |  | +        </xml>
 | 
	
		
			
				|  |  | +        <![endif]-->
 | 
	
		
			
				|  |  | +        </head><body>";
 | 
	
		
			
				|  |  | +		$str .= $titlename; 
 | 
	
		
			
				|  |  | +		$str .= "<table border=1 style='font-family: Microsoft Yahei;font-size: 13px;'><tr>"; 
 | 
	
		
			
				|  |  | +		foreach ($info_list as $key=>$value) 
 | 
	
		
			
				|  |  | +		{ 
 | 
	
		
			
				|  |  | +		    $str .= "<td><table border=0>";
 | 
	
		
			
				|  |  | +		    foreach ($value as $ke=>$va) 
 | 
	
		
			
				|  |  | +			{
 | 
	
		
			
				|  |  | +				if($ke == 'shipremarks')
 | 
	
		
			
				|  |  | +				{
 | 
	
		
			
				|  |  | +					$va = str_replace(array('<','>'),array('<','>'),$va);
 | 
	
		
			
				|  |  | +				}
 | 
	
		
			
				|  |  | +				$str .= "<tr><td>".$va[0]."</td><td style='vnd.ms-excel.numberformat:@'>".$va[1]."</td><td >".$va[2]."</td></tr>";
 | 
	
		
			
				|  |  | +		    }
 | 
	
		
			
				|  |  | +			$str .= "</table></td>\n";
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +		$str .= "</tr></table></body></html>"; 
 | 
	
		
			
				|  |  | +		header( "Content-Type: application/vnd.ms-excel; name='excel'" ); 
 | 
	
		
			
				|  |  | +		header( "Content-type: application/octet-stream" ); 
 | 
	
		
			
				|  |  | +		header( "Content-Disposition: attachment; filename=".$filename ); 
 | 
	
		
			
				|  |  | +		header( "Cache-Control: must-revalidate, post-check=0, pre-check=0" ); 
 | 
	
		
			
				|  |  | +		header( "Pragma: no-cache" ); 
 | 
	
		
			
				|  |  | +		header( "Expires: 0" ); 
 | 
	
		
			
				|  |  | +		exit($str); 
 | 
	
		
			
				|  |  | +		//return $str;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  |  }  //end class
 |