$pro->get_entire_order($_POST['id'], $order); while ($pro->next_record()) { $apid = $pro->f('product_id'); $acate = $pro->f('attach_cate_id'); $order_attach_arr[$apid . $acate] = $pro->f('attach_id'); $order_price_arr[$apid . $acate] = $pro->f('price'); $order_quantity_arr[$apid . $acate] = $pro->f('quantity'); $order_discount_arr[$apid . $acate] = $pro->f('discount'); $order_VAT_arr[$apid . $acate] = $pro->f('VAT'); } $pro_order = new products(); $list_id = $pro_order->get_order_productid_list($_POST['id']); $pro_order->get_buy_products($list_id); require 'templates/edit_update_order.tmp.php'; break; case 'search': require 'templates/order_search.tmp.php'; $pro->get_search_orders($_POST['search_fld'], $_POST['search_value']); require 'templates/list_order.tmp.php'; break; case 'delete': $pro->delete_order($_POST['id']); default: require 'templates/order_search.tmp.php'; $pro->get_orders(false, '', $_POST['sort_fld'], $_POST['direction']); require 'templates/list_order.tmp.php'; } if ($_POST['close_win'] == 'true') { goURL('order.php'); } require $GO_THEME->theme_path . "footer.inc";