本文整理汇总了PHP中orders::searchBanktransferOrders方法的典型用法代码示例。如果您正苦于以下问题:PHP orders::searchBanktransferOrders方法的具体用法?PHP orders::searchBanktransferOrders怎么用?PHP orders::searchBanktransferOrders使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类orders
的用法示例。
在下文中一共展示了orders::searchBanktransferOrders方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: orders
<?php
use_class('orders');
$class_o = new orders();
use_class('customers_special_list');
$class_csl = new customers_special_list();
$search_days = 60;
//AJAX ACTION
if (isset($_POST['me_action']) && $_POST['me_action'] != '') {
if ($_POST['me_action'] == 'SEARCHORDERS') {
$search_field = tep_db_prepare_input($_POST['search_field']);
$search_keywords = tep_db_prepare_input(utf8_decode($_POST['search_keywords']));
$date_filter = date('Y-m-d', strtotime("-{$search_days} day"));
$orders = $class_o->searchBanktransferOrders($search_field, $search_keywords, "o.date_purchased>DATE('{$date_filter}')");
$result = '';
$table = array();
if (count($orders) > 0) {
$t = array();
$t['d'] = 'Date';
$t['c'] = 'Customer';
$t['o'] = 'Order No';
$t['i'] = 'Bank Info';
$t['p'] = 'Order Value';
$t['t'] = 'Withdrawal Date';
$table[] = $t;
foreach ($orders as $row) {
$order_date = strtotime($row['date_purchased']);
$customer_special = $class_csl->getCustomerDetail($row['customers_id']);
$crown_img = is_null($customer_special) ? '' : $class_csl->getTypeSymbol($customer_special['list_type'], $row['customers_id']);
$t = array();
$t['d'] = date('d-M-y', $order_date);