Execute("select orders_id from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'"); include(DIR_WS_CLASSES . 'order.php'); $order = new order($oID); // prepare order-status pulldown list $orders_statuses = array(); $orders_status_array = array(); $orders_status = $db->Execute("select orders_status_id, orders_status_name from " . TABLE_ORDERS_STATUS . " where language_id = '" . (int)$_SESSION['languages_id'] . "'"); while (!$orders_status->EOF) { $orders_statuses[] = array('id' => $orders_status->fields['orders_status_id'], 'text' => $orders_status->fields['orders_status_name'] . ' [' . $orders_status->fields['orders_status_id'] . ']'); $orders_status_array[$orders_status->fields['orders_status_id']] = $orders_status->fields['orders_status_name']; $orders_status->MoveNext(); } ?> > <?php echo TITLE; ?> 0) { ?>
Execute("select cc_cvv, customers_name, customers_company, customers_street_address, customers_suburb, customers_city, customers_postcode, customers_state, customers_country, customers_telephone, customers_email_address, customers_address_format_id, delivery_name, delivery_company, delivery_street_address, delivery_suburb, delivery_city, delivery_postcode, delivery_state, delivery_country, delivery_address_format_id, billing_name, billing_company, billing_street_address, billing_suburb, billing_city, billing_postcode, billing_state, billing_country, billing_address_format_id, payment_method, cc_type, cc_owner, cc_number, cc_expires, currency, currency_value, date_purchased, orders_status, last_modified from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'"); $show_customer = 'false'; if ($order_check->fields['billing_name'] != $order_check->fields['delivery_name']) { $show_customer = 'true'; } if ($order_check->fields['billing_street_address'] != $order_check->fields['delivery_street_address']) { $show_customer = 'true'; } if ($show_customer == 'true') { ?>
customer['format_id'], $order->customer, 1, '', '
'); ?>
customer['format_id'], $order->billing, 1, '', '
'); ?>
customer['telephone']; ?>
customer['email_address'] . '">' . $order->customer['email_address'] . ''; ?>
delivery['format_id'], $order->delivery, 1, '', '
'); ?>
info['date_purchased']); ?>
info['payment_method']; ?>
products); $i<$n; $i++) { echo ' ' . "\n" . ' ' . "\n" . ' ' . "\n" . ' ' . "\n" . ' ' . "\n"; } ?>
' . $order->products[$i]['qty'] . ' x' . $order->products[$i]['name']; if (isset($order->products[$i]['attributes']) && (sizeof($order->products[$i]['attributes']) > 0)) { for ($j=0, $k=sizeof($order->products[$i]['attributes']); $j<$k; $j++) { echo '
  - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value'])); echo ''; } } echo '
' . $order->products[$i]['model'] . '
Execute("select orders_status_id, date_added, customer_notified, comments from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . zen_db_input($oID) . "' order by date_added"); if ($orders_history->RecordCount() > 0) { $count_comments=0; while (!$orders_history->EOF) { $count_comments++; echo ' ' . "\n" . ' ' . "\n" . ' \n"; } else { echo zen_image(DIR_WS_ICONS . 'cross.gif', ICON_CROSS) . "\n"; } echo ' ' . "\n"; echo ' ' . "\n" . ' ' . "\n"; $orders_history->MoveNext(); if (ORDER_COMMENTS_PACKING_SLIP == 1 && $count_comments >= 1) { break; } } } else { echo ' ' . "\n" . ' ' . "\n" . ' ' . "\n"; } ?>
' . zen_datetime_short($orders_history->fields['date_added']) . ''; if ($orders_history->fields['customer_notified'] == '1') { echo zen_image(DIR_WS_ICONS . 'tick.gif', ICON_TICK) . "' . $orders_status_array[$orders_history->fields['orders_status_id']] . '' . ($orders_history->fields['comments'] == '' ? TEXT_NONE : nl2br(zen_db_output($orders_history->fields['comments']))) . ' 
' . TEXT_NO_ORDER_HISTORY . '