<?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报这样的错如何解决
- 初学者发问:The constructor Printwriter(String) is undefined
- flash 读取 servlet 生成的xml 展示 undefined
- mvc过去台发送ajax请求得到的数据显示未定义(undefined),哪位帮忙看看
- 在线请问调用Jquery异常:TypeError: a is 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,该如何处理
- Processor ARM79_0 raised an exception.Cause: Undefined instruction,该如何处理
- Ada程序编译不过 提醒 Other is undefined
- : error A2006: undefined symbol : data解决办法
- offset db?解决办法
- apache配置httpd.conf异常 undefined symbol: ap_proxy_ftp_canon
- undefined reference to `av_register_all'这样的异常如何解决呀
- undefined reference to `av_register_all'这样的异常如何解决呀
- thinkphp 有关问题 Call to undefined function
- :缺少对象: '[undefined]',如何解决?
- 输出出现未定义变量提醒:Notice: Undefined variable: str in
- 报错Notice: Undefined offset: 一
- 求问下这个 Call to undefined function int()的缘故
- Fatal error: Call to undefined function curl_init()怎么解决
- 登录后台老板报错Fatal error: Call to undefined function _phpForKoXHbKBqn6BHxAmysql()
- php “Call to undefined function: mb_substr()”的解决办法
- 。call to undefined function ImageCreate() in phpqrcode.php on line 985
- Fatal error: Call to undefined function curl_init(),该怎么解决
- php老提示 Undefined variable: 的解决方法
- 施用数组元素出现Notice: Undefined offset