本文整理汇总了PHP中orders::retrieveReturnDetail方法的典型用法代码示例。如果您正苦于以下问题:PHP orders::retrieveReturnDetail方法的具体用法?PHP orders::retrieveReturnDetail怎么用?PHP orders::retrieveReturnDetail使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类orders
的用法示例。
在下文中一共展示了orders::retrieveReturnDetail方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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) {