本文整理汇总了PHP中mslib_fe::printOrderDetailsTable方法的典型用法代码示例。如果您正苦于以下问题:PHP mslib_fe::printOrderDetailsTable方法的具体用法?PHP mslib_fe::printOrderDetailsTable怎么用?PHP mslib_fe::printOrderDetailsTable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mslib_fe
的用法示例。
在下文中一共展示了mslib_fe::printOrderDetailsTable方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: updateOrderStatus
//.........这里部分代码省略.........
$array2[] = preg_replace('/\\s+/', ' ', $order['delivery_middle_name'] . ' ' . $order['delivery_last_name']);
$array1[] = '###BILLING_FIRST_NAME###';
$array2[] = $order['billing_first_name'];
$array1[] = '###BILLING_LAST_NAME###';
$array2[] = preg_replace('/\\s+/', ' ', $order['billing_middle_name'] . ' ' . $order['billing_last_name']);
$array1[] = '###BILLING_TELEPHONE###';
$array2[] = $order['billing_telephone'];
$array1[] = '###DELIVERY_TELEPHONE###';
$array2[] = $order['delivery_telephone'];
$array1[] = '###BILLING_MOBILE###';
$array2[] = $order['billing_mobile'];
$array1[] = '###DELIVERY_MOBILE###';
$array2[] = $order['delivery_mobile'];
$array1[] = '###BILLING_FULL_NAME###';
$array2[] = $full_customer_name;
$array1[] = '###FULL_NAME###';
$array2[] = $full_customer_name;
$array1[] = '###DELIVERY_FULL_NAME###';
$array2[] = $delivery_full_customer_name;
$array1[] = '###BILLING_NAME###';
$array2[] = $order['billing_name'];
$array1[] = '###BILLING_EMAIL###';
$array2[] = $order['billing_email'];
$array1[] = '###DELIVERY_EMAIL###';
$array2[] = $order['delivery_email'];
$array1[] = '###DELIVERY_NAME###';
$array2[] = $order['delivery_name'];
$array1[] = '###CUSTOMER_EMAIL###';
$array2[] = $order['billing_email'];
$array1[] = '###STORE_NAME###';
$array2[] = $this->ms['MODULES']['STORE_NAME'];
$array1[] = '###TOTAL_AMOUNT###';
$array2[] = mslib_fe::amount2Cents($order['total_amount']);
$ORDER_DETAILS = mslib_fe::printOrderDetailsTable($order, 'email');
$array1[] = '###ORDER_DETAILS###';
$array2[] = $ORDER_DETAILS;
$array1[] = '###BILLING_ADDRESS###';
$array2[] = $billing_address;
$array1[] = '###DELIVERY_ADDRESS###';
$array2[] = $delivery_address;
$array1[] = '###CUSTOMER_ID###';
$array2[] = $order['customer_id'];
$array1[] = '###SHIPPING_METHOD###';
$array2[] = $order['shipping_method_label'];
$array1[] = '###PAYMENT_METHOD###';
$array2[] = $order['payment_method_label'];
$invoice = mslib_fe::getOrderInvoice($order['orders_id'], 0);
$invoice_id = '';
$invoice_link = '';
if (is_array($invoice)) {
$invoice_id = $invoice['invoice_id'];
$invoice_link = '<a href="' . $this->FULL_HTTP_URL . mslib_fe::typolink($this->shop_pid . ',2002', 'tx_multishop_pi1[page_section]=download_invoice&tx_multishop_pi1[hash]=' . $invoice['hash']) . '">' . $invoice['invoice_id'] . '</a>';
}
$array1[] = '###INVOICE_NUMBER###';
$array2[] = $invoice_id;
$array1[] = '###INVOICE_LINK###';
$array2[] = $invoice_link;
$time = $order['crdate'];
$long_date = strftime($this->pi_getLL('full_date_format'), $time);
$array1[] = '###ORDER_DATE_LONG###';
// ie woensdag 23 juni, 2010
$array2[] = $long_date;
// backwards compatibility
$array1[] = '###ORDER_DATE###';
// 21-12-2010 in localized format
$array2[] = strftime("%x", $time);
示例2: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
if (mslib_fe::loggedin()) {
switch ($this->get['tx_multishop_pi1']['page_section']) {
case 'order_details':
if (is_numeric($this->get['tx_multishop_pi1']['orders_id']) and $GLOBALS["TSFE"]->fe_user->user['uid']) {
$order = mslib_fe::getOrder($this->get['tx_multishop_pi1']['orders_id']);
if ($order['customer_id'] == $GLOBALS["TSFE"]->fe_user->user['uid']) {
$content .= '<h1>' . $this->pi_getLL('orders_id') . ': ' . $order['orders_id'] . '</h1>';
$content .= mslib_fe::printOrderDetailsTable($order, 'order_history_site');
$content .= '
<div id="bottom-navigation">
<a href="' . mslib_fe::typolink('', '') . '" class="msFrontButton prevState arrowLeft arrowPosLeft"><span>' . $this->pi_getLL('back') . '</span></a>
';
if ($this->ms['MODULES']['ENABLE_REORDER_FEATURE_IN_ACCOUNT_ORDER_HISTORY']) {
$content .= '
<div id="navigation">
<a href="' . mslib_fe::typolink('', 'tx_multishop_pi1[re-order]=1&tx_multishop_pi1[orders_id]=' . $order['orders_id']) . '" class="msFrontButton continueState arrowRight arrowPosLeft"><input type="submit" value="' . htmlspecialchars($this->pi_getLL('re-order')) . '" /></a>
</div>
';
}
$content .= '
</div>
';
}
}
break;
default: