📄 select_export.php
字号:
<?php
include_once( "inc/auth.php" );
$str = " 类别\t名称\t规格\t数量\t单价\t金额\t操作员\t入库时间\t入库单据号\t供应商\n";
$child_array = array_chunk( explode( ",", $_REQUEST['id_str'] ), 10 );
array_pop( $child_array );
$i = 0;
for ( ; $i < sizeof( $child_array ); ++$i )
{
$grandson_array = $child_array[$i];
$j = 0;
for ( ; $j < sizeof( $grandson_array ); ++$j )
{
$str .= $grandson_array[$j]."\t";
}
$str .= "\n";
}
ob_end_clean( );
header( "Cache-control: private" );
header( "Content-type: application/vnd.ms-excel" );
header( "Accept-Ranges: bytes" );
header( "Accept-Length: ".strlen( $str ) );
header( "Content-Disposition: attachment; filename=入库单.xls" );
echo $str;
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -