<?PHP
include("conn.php");
if(isset($_POST['text']))
{
$text=$_POST['text'];
$t = date('Ymd', strtotime("-$text day"));
}
else
{
$t = date('Ymd', strtotime('-5 day'));
}
//warehouse_mix.txt
$hk_warehouse = array();
foreach(glob('download/hk_warehouse_mix*.txt') as $hk_warehouse_fn) {
if(substr($hk_warehouse_fn, 16, 8)>$t)
{
$hk_warehouse[] = $hk_warehouse_fn;
}
}
$jp_warehouse=array();
foreach(glob('download/jp_warehouse_mix*.txt') as $jp_warehouse_fa) {
if(substr($jp_warehouse_fa, 16, 8)>$t)
{
$jp_warehouse[] = $jp_warehouse_fa;
}
}
$mix_warehouse=array();
foreach(glob('download/mix_warehouse_mix*.txt') as $mix_warehouse_fa) {
if(substr($mix_warehouse_fa, 17, 8)>$t)
{
$mix_warehouse[] = $mix_warehouse_fa;
}
}
$sum_warehouse=array();
foreach(glob('download/sum_warehouse_mix*.txt') as $sum_warehouse_fa) {
if(substr($sum_warehouse_fa, 17, 8)>$t)
{
$sum_warehouse[] = $sum_warehouse_fa;
}
}
//warehouse_mix_label.pdf
$hk_warehouse_pdf = array();
foreach(glob('download/hk_warehouse_mix*.pdf') as $hk_warehouse_pdf_fn) {
if(substr($hk_warehouse_pdf_fn, 16, 8)>$t)
{
$hk_warehouse_pdf[] = $hk_warehouse_pdf_fn;
}
}
$jp_warehouse_pdf=array();
foreach(glob('download/jp_warehouse_mix*.pdf') as $jp_warehouse_pdf_fa) {
if(substr($jp_warehouse_pdf_fa, 16, 8)>$t)
{
$jp_warehouse_pdf[] = $jp_warehouse_pdf_fa;
}
}
$mix_warehouse_pdf=array();
foreach(glob('download/mix_warehouse_mix*.pdf') as $mix_warehouse_pdf_fa) {
if(substr($mix_warehouse_pdf_fa, 17, 8)>$t)
{
$mix_warehouse_pdf[] = $mix_warehouse_pdf_fa;
}
}
//pdf_mix
$hk_pdf = array();
foreach(glob('download/HK_print_Mix*.pdf') as $hk_pdf_fn) {
if(substr($hk_pdf_fn, 12, 8)>$t)
{
$hk_pdf[] = $hk_pdf_fn;
}
}
$jp_pdf=array();
foreach(glob('download/JP_print_Mix*.pdf') as $jp_pdf_fa) {
if(substr($jp_pdf_fa, 12, 8)>$t)
{
$jp_pdf[] = $jp_pdf_fa;
}
}
$mix_pdf=array();
foreach(glob('download/Mix_print_Mix*.pdf') as $mix_pdf_fa) {
if(substr($mix_pdf_fa, 13, 8)>$t)
{
$mix_pdf[] = $mix_pdf_fa;
}
}
//pdf_mix_A4
$hk_pdf_a4 = array();
foreach(glob('download/HK_print_Mix_A4_*.pdf') as $hk_pdf_a4_fn) {
if(substr($hk_pdf_a4_fn, 16, 8)>$t)
{
$hk_pdf_a4[] = $hk_pdf_a4_fn;
详细解决方案
报错Notice: Undefined offset: 一
热度:869 发布时间:2013-06-25 23:45:42.0
相关解决方案
- Expression dqgrade is undefined on line 20, column 30-freemarker报这样的错如何解决
- undefined for the type解决办法
- new String(byte[] bytes, int offset,int length)有关问题
- 初学者发问:The constructor Printwriter(String) is undefined
- flash 读取 servlet 生成的xml 展示 undefined
- mvc过去台发送ajax请求得到的数据显示未定义(undefined),哪位帮忙看看
- 在线请问调用Jquery异常:TypeError: a is undefined 的异常原因有哪些
- ASP.NET JavaScript “undefined”,该怎么解决
- 'undefined'为空或不是对象,该怎么解决
- Undefined symbol: '_CxxFrameHandler'?该如何解决
- undefined reference to异常怎么解决
- MTK Undefined symbol Image$$ZI$$Limit (referred from sys_stackheap.o) 怎么解决
- MTK平台链接异常:Undefined symbol Image$$ZI$$Limit
- CCS编译X264 ERROR string.h error:identifier "using" is undefined,该如何处理
- [急切]undefined RAS Dial Error 127 什么意思啊
- Processor ARM79_0 raised an exception.Cause: Undefined instruction,该如何处理
- Ada程序编译不过 提醒 Other is undefined
- : error A2006: undefined symbol : data解决办法
- NASM如何实现段间跳转指令?jmp dword selector:offset,编译通不过
- offset db?解决办法
- TC 提示 Undefined Symbol '_brklvl' in module BRK 等异常,不知如何避免
- apache配置httpd.conf异常 undefined symbol: ap_proxy_ftp_canon
- solaris undefined symbol解决方案
- undefined reference to `av_register_all'这样的异常如何解决呀
- undefined reference to `av_register_all'这样的异常如何解决呀
- The method talk01() is undefined for the type Object
- [Linker error] undefined reference to `prinf'的问题!
- Undefined symbol 'xxxxxxx'
- php连接mysql出错:Fatal error: Call to undefined function mysql_connect(),该如何处理
- thinkphp 有关问题 Call to undefined function