Error notice:undefined Offset:1
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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 8) > $t)
{
$HK _pdf_a4[] = $HK _pdf_a4_fn;