$ship_address_id = $_SESSION['user']['shipAddressID']; $shipping_address = get_address($ship_address_id); $ship_line1 = $shipping_address['line1']; $ship_line2 = $shipping_address['line2']; $ship_city = $shipping_address['city']; $ship_state = $shipping_address['state']; $ship_zip = $shipping_address['zipCode']; $ship_phone = $shipping_address['phone']; $billing_address = get_address($_SESSION['user']['billingAddressID']); $bill_line1 = $billing_address['line1']; $bill_line2 = $billing_address['line2']; $bill_city = $billing_address['city']; $bill_state = $billing_address['state']; $bill_zip = $billing_address['zipCode']; $bill_phone = $billing_address['phone']; $orders = get_orders_by_customer_id($_SESSION['user']['customerID']); include 'account_view.php'; break; case 'view_order': $order_id = $_GET['order_id']; $order = get_order($order_id); $order_date = strtotime($order['orderDate']); $order_date = date('M j, Y', $order_date); $order_items = get_order_items($order_id); $shipping_address = get_address($order['shipAddressID']); $ship_line1 = $shipping_address['line1']; $ship_line2 = $shipping_address['line2']; $ship_city = $shipping_address['city']; $ship_state = $shipping_address['state']; $ship_zip = $shipping_address['zipCode']; $ship_phone = $shipping_address['phone'];
$ship_address_id = $_SESSION['user']['iddiachigiaohang']; $shipping_address = get_address($ship_address_id); $ship_line1 = $shipping_address['diachi1']; $ship_line2 = $shipping_address['diachi2']; $ship_city = $shipping_address['thanhpho']; $ship_state = $shipping_address['quanhuyen']; $ship_zip = $shipping_address['mavung']; $ship_phone = $shipping_address['sodienthoai']; $billing_address = get_address($_SESSION['user']['iddiachithanhtoan']); $bill_line1 = $billing_address['diachi1']; $bill_line2 = $billing_address['diachi2']; $bill_city = $billing_address['thanhpho']; $bill_state = $billing_address['quanhuyen']; $bill_zip = $billing_address['mavung']; $bill_phone = $billing_address['sodienthoai']; $orders = get_orders_by_customer_id($_SESSION['user']['idkhachhang']); include 'account_view.php'; break; case 'view_order': $order_id = $_GET['order_id']; $order = get_order($order_id); $order_date = strtotime($order['ngaydathang']); $order_date = date('M j, Y', $order_date); $order_items = get_order_items($order_id); $shipping_address = get_address($order['iddiachigiaohang']); $ship_line1 = $shipping_address['diachi1']; $ship_line2 = $shipping_address['diachi2']; $ship_city = $shipping_address['thanhpho']; $ship_state = $shipping_address['quanhuyen']; $ship_zip = $shipping_address['mavung']; $ship_phone = $shipping_address['sodienthoai'];