本文整理汇总了PHP中orders::productReturnRequestText方法的典型用法代码示例。如果您正苦于以下问题:PHP orders::productReturnRequestText方法的具体用法?PHP orders::productReturnRequestText怎么用?PHP orders::productReturnRequestText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类orders
的用法示例。
在下文中一共展示了orders::productReturnRequestText方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: orders
<?php
use_class('orders');
$class_o = new orders();
//AJAX ACTION
if (isset($_POST['me_action']) && $_POST['me_action'] != '') {
if ($_POST['me_action'] == 'LOADRETDETAIL') {
$detail_id = tep_db_prepare_input($_POST['detail_id']);
$det = explode('-', $detail_id);
$return_id = $det[1];
$return = $class_o->retrieveReturnDetail($return_id);
$result = array();
$result['detail_id'] = $detail_id;
$result['return_comment'] = $return['return_comment'];
$result['return_request'] = $class_o->productReturnRequestText($return['return_type']);
$result['email_last_sent'] = $return['email_last_sent'] == '' ? 'N/A' : date('d M Y', strtotime($return['email_last_sent']));
ajaxReturn($result);
exit;
} elseif ($_POST['me_action'] == 'SEARCHRETURNS') {
$period1 = tep_db_prepare_input($_POST['period1']);
$period2 = tep_db_prepare_input($_POST['period2']);
$search_field = tep_db_prepare_input($_POST['search_field']);
$search_keywords = tep_db_prepare_input(utf8_decode($_POST['search_keywords']));
$p1 = explode('.', $period1);
$date1 = date('Y-m-d', strtotime($p1[2] . '-' . $p1[1] . '-' . $p1[0]));
$p2 = explode('.', $period2);
$date2 = date('Y-m-d', strtotime($p2[2] . '-' . $p2[1] . '-' . $p2[0]));
$searchfilter = " DATE(opr.return_date)>=DATE('{$date1}')";
$searchfilter .= " AND DATE(opr.return_date)<=DATE('{$date2}')";
if ($search_keywords != '') {
switch ($search_field) {
示例2: date
$receive .= '<option value="' . $val . '" ' . $sel . '>' . $opt . '</option>';
}
$receive .= '</select>';
} else {
$receive = 'Received';
}
$content .= '<div style="float:left;">' . $pimg . '</div>';
$content .= '<div style="margin-left:150px;">';
$content .= '<table border="0" cellpadding="0" cellspacing="0">';
$content .= '<tr><td width="150"><h3>Product Code</h3></td><td><h3>' . $product['products_model'] . '</h3></td></tr>';
$content .= '<tr><td>Customer</td><td><a href="?open=customer&id=' . $order['customers_id'] . '" target="_blank" title="View Customer Detail">' . $order['customers_name'] . '</a></td></tr>';
$content .= '<tr><td>Order No</td><td><a href="?open=order&id=' . $order['orders_id'] . '" target="_blank" title="View Order Detail">' . $order['orders_no'] . '</a></td></tr>';
$content .= '<tr><td>Order Date</td><td>' . date('d M Y', strtotime($order['date_purchased'])) . '</td></tr>';
$content .= '<tr><td>Return Date</td><td>' . date('d M Y', strtotime($return['return_date'])) . '</td></tr>';
$content .= '<tr><td>Return/Order Qty</td><td>' . $return['return_qty'] . ' / ' . $product['products_quantity'] . '</td></tr>';
$content .= '<tr><td class="bold">Request</td><td class="bold">' . $class_o->productReturnRequestText($return['return_type']) . '</td></tr>';
if ($return['return_type'] == 'R' || $return['return_type'] == 'W') {
$statusName = $class_o->productStatusName();
$content .= '<tr><td class="bold">Reproduce Status</td><td class="bold">' . $statusName[$product['status']] . '</td></tr>';
}
if ($return['return_comment'] != '') {
$content .= '<tr><td>Comment</td><td>' . nl2br($return['return_comment']) . '</td></tr>';
}
$content .= '<tr><td>Product receive</td><td>' . $receive . '</td></tr>';
$content .= '<tr><td>Product Price</td><td>' . displayCurrency($order['currency'], $product['final_price']) . ' / Qty</td></tr>';
if ($return['return_type'] == 'C') {
$content .= '<tr><td colspan="2"> </td></tr>';
if ($order['paid_status'] == '0') {
$content .= '<tr><td colspan="2">';
$content .= '<div class="float-box ui-corner-all red bold">THIS ORDER IS UNPAID</div>';
$content .= '</td></tr>';