本文整理汇总了PHP中orders::retrieveBanktransferBackup方法的典型用法代码示例。如果您正苦于以下问题:PHP orders::retrieveBanktransferBackup方法的具体用法?PHP orders::retrieveBanktransferBackup怎么用?PHP orders::retrieveBanktransferBackup使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类orders
的用法示例。
在下文中一共展示了orders::retrieveBanktransferBackup方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
$comment .= 'Additional charge ' . $add_payment_text . ' is added to payment as a penalty. ';
$comment .= 'New total value is ' . $total_payment_text . ' and should be paid until ' . $payment_due_text;
$class_o->insertComment($orders_id, $comment, 'System');
} else {
$orders_id = '';
}
echo utf8_encode($orders_id);
exit;
} elseif ($_POST['me_action'] == 'HISTORYSEARCHPERIOD') {
$date_start = tep_db_prepare_input($_POST['date_start']);
$date_end = tep_db_prepare_input($_POST['date_end']);
$p1 = explode('.', $date_start);
$date1 = date('Y-m-d', strtotime($p1[2] . '-' . $p1[1] . '-' . $p1[0]));
$p2 = explode('.', $date_end);
$date2 = date('Y-m-d', strtotime($p2[2] . '-' . $p2[1] . '-' . $p2[0]));
$orders = $class_o->retrieveBanktransferBackup($date1, $date2);
$result = '';
if (count($orders) == 0) {
$result .= '<h3>No orders found</h3>';
} else {
$table = array();
$t = array();
$t['d'] = 'Date';
$t['c'] = 'Customer';
$t['o'] = 'Order No';
$t['i'] = 'Bank Info';
$t['p'] = 'Order Value';
$t['s'] = 'Status';
$table[] = $t;
foreach ($orders as $row) {
$order_date = strtotime($row['date_purchased']);