header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:attachment; filename=查询信息表.xls");
//输出内容如下:
echo "序号"."\t";
echo "规章号"."\t";
echo "规章名称"."\t";
echo "关键字"."\t";
echo "级别"."\t";
echo "文件类型"."\t";
echo "专业类别"."\t";
echo "规章状态"."\t";
echo "起草单位"."\t";
echo "实施时间"."\t";
echo "\n";
$len = count($info);
for ( $i = 0; $i < $len; $i++ ) {
echo $info[$i]["files_id"]."\t";
echo $info[$i]["files_num"]."\t";
echo $info[$i]["files_title"]."\t";
echo $info[$i]["files_keyword"]."\t";
echo $info[$i]["fl_name"]."\t";
echo $info[$i]["ft_name"]."\t";
echo $info[$i]["fm_name"]."\t";
echo $info[$i]["fs_name"]."\t";
echo $info[$i]["files_unit"]."\t";
echo $info[$i]["files_impl_time"]."\t";
echo "\n";
}