function show_card($card, $id) { echo '<div class="card" '; echo ' ' . CARD_ID . '="' . $id . '"' . "\n"; echo '>' . "\n"; echo ' <img class="card_image"'; echo 'src="' . card_name($card) . '"'; echo '>' . "\n"; echo ' <img class="hold_image"'; echo ' id="' . HOLD_KEY . $id . '"'; echo ' src="' . HOLD_IMAGE . '">' . "\n"; echo '</div>' . "\n"; }
$old_orders = get_filled_orders(); include 'orders.php'; break; case 'view_order': $order_id = $_GET['order_id']; // Get order data $order = get_order($order_id); $order_date = date('M j, Y', strtotime($order['orderDate'])); $order_items = get_order_items($order_id); // Get customer data $customer = get_customer($order['customerID']); $name = $customer['lastName'] . ', ' . $customer['firstName']; $email = $customer['emailAddress']; $card_number = $order['cardNumber']; $card_expires = $order['cardExpires']; $card_name = card_name($order['cardType']); $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']; $billing_address = get_address($order['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']; include 'order.php';
function show_card($card, $id) { echo '<div class="card">' . "\n"; echo '<img class="card_image" ' . CARD_ID . '="' . $id . '" src="' . card_name($card) . '" ' . CARD_SRC . '="' . card_name($card) . '">' . "\n"; echo '</div>'; }
$old_orders = get_filled_orders(); include 'orders.php'; break; case 'view_order': $order_id = $_GET['order_id']; // Get order data $order = get_order($order_id); $order_date = date('M j, Y', strtotime($order['ngaydathang'])); $order_items = get_order_items($order_id); // Get customer data $customer = get_customer($order['idkhachhang']); $name = $customer['lastName'] . ', ' . $customer['firstName']; $email = $customer['email']; $card_number = $order['mathe']; $card_expires = $order['hansudungthe']; $card_name = card_name($order['loaithe']); $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']; $billing_address = get_address($order['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']; include 'order.php';