<?
if (isset($action)) {
switch ($action) {
case "list_stat_order_goods" :
if (isset($_GET['day_b'])) {
$_SESSION['stat_order']['day_b'] = $_GET['day_b'];
$_SESSION['stat_order']['month_b'] = $_GET['month_b'];
$_SESSION['stat_order']['year_b'] = $_GET['year_b'];
$_SESSION['stat_order']['day_e'] = $_GET['day_e'];
$_SESSION['stat_order']['month_e'] = $_GET['month_e'];
$_SESSION['stat_order']['year_e'] = $_GET['year_e'];
$_SESSION['stat_order']['id_status'] = $_GET['id_status'];
$_SESSION['stat_order']['id_supplier'] = $_GET['id_supplier'];
$_SESSION['stat_order']['id_manager'] = $_GET['id_manager'];
$_SESSION['stat_order']['search_str'] = $_GET['search_str'];
$_SESSION['stat_order']['id_output'] = $_GET['id_output'];
header("Location: ./?action=list_stat_order_goods);
exit;
}
if ($_SESSION['stat_order']['id_output'] == 1) {
List_Stat_Order_Goods_Csv($db, $_SESSION['stat_order']);
}
break;
26: case "list_stat_order_goods_complect" :
if (isset($day_b)) {
$_SESSION['stat_order']['day_b'] = $day_b;
$_SESSION['stat_order']['month_b'] = $month_b;
$_SESSION['stat_order']['year_b'] = $year_b;
$_SESSION['stat_order']['day_e'] = $day_e;
$_SESSION['stat_order']['month_e'] = $month_e;
$_SESSION['stat_order']['year_e'] = $year_e;
$_SESSION['stat_order']['id_output'] = $id_output;
header("Location: ./?action=list_stat_order_goods_complect");
exit;
}
/*
switch ($_SESSION['stat_order']['id_output']) {
case "1" :
List_Stat_Order_Goods_Complect_Csv($db, $db_brand, $db_group, $db_group2, $_SESSION['stat_order']);
break;
}
*/
break;
case "list_stat_order_payment" :
if (isset($day_b)) {
$_SESSION['stat_order']['day_b'] = $day_b;
$_SESSION['stat_order']['month_b'] = $month_b;
$_SESSION['stat_order']['year_b'] = $year_b;
$_SESSION['stat_order']['day_e'] = $day_e;
$_SESSION['stat_order']['month_e'] = $month_e;
$_SESSION['stat_order']['year_e'] = $year_e;
$_SESSION['stat_order']['id_payment'] = $id_payment;
header("Location: ./?action=list_stat_order_payment");
exit;
}
break;
}
}