ECSHOP导出EXCEL要求是独立文件

2016-07-07 15:01 来源:www.chinab4c.com 作者:ecshop专家

能做的联系我

回答:
独立文件?不太明白

可以的。qq542541297

飘过 看看

header("Content-type: application/vnd.ms-excel; charset=GB2312");
header("Content-Disposition: attachment; filename=$settime---导出卡信息.xls");

echo "编号\t";
echo "卡序号\t";
echo "卡密码\t";
echo "卡类型\t";
echo "生成时间\t";
echo "代理商\t";
echo "充值时间\t";
echo "卡面值\t";
echo "购买者\t";
echo "状态\t";
echo "\n";

foreach ($cardlist AS $k => $row)
{
$order_by = $k + 1;
$data .= "$order_by\t$row[cardnum]\t$row[cardpass]\t$row[cardclass]\t$row[cardsettime]\t$row[cardagents]\t$row[cardsaletime]\t$row[cardprice]\t$row[buyer]\t$row[cardstate]\n";
}

echo $data;

可以联系我们,qq;45256976