本文整理汇总了PHP中orders::insertComment方法的典型用法代码示例。如果您正苦于以下问题:PHP orders::insertComment方法的具体用法?PHP orders::insertComment怎么用?PHP orders::insertComment使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类orders
的用法示例。
在下文中一共展示了orders::insertComment方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: date
$data['repayment_amount'] = $repayment_amount;
$created = $class_o->banktransferWithdrawalReport($orders_id, $data);
if ($created) {
//SEND NOTIFICATION: "ORDER CONFIRMATION"
$order_no = $order['orders_no'];
$order_date = date('d.m.Y', strtotime($order['date_purchased']));
$to_name = $order['customers_name'];
$to_email_address = $order['customers_email_address'];
include DIR_WS_EMAILS . $languages[2]['path'] . '/bankeinzug-withdrawal.php';
$from_email_name = FROM_EMAIL_NAME;
$from_email_address = FROM_EMAIL_ADDRESS;
$sent = tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address);
$comment = 'Debit payment is withdrawn, a Vorkasse payment notification is sent. ';
$comment .= 'Additional charge ' . $additional_charge_text . ' is added to payment as a penalty. ';
$comment .= 'New total value is ' . $repayment_amount_text . ' and should be paid until ' . $date_repayment_text;
$class_o->insertComment($orders_id, $comment, 'System');
} else {
$orders_id = '';
}
echo utf8_encode($orders_id);
exit;
}
}
}
//START TEMPLATE
$content .= '<div id="fb_table">';
$content .= '<ul>';
$content .= '<li><a href="#new">Set Orders</a></li>';
$content .= '<li><a href="#old">History</a></li>';
$content .= '</ul>';
//NEW TAB
示例2: while
while ($row = tep_db_fetch_array($order_products_query)) {
$oplist[] = $row;
}
include DIR_WS_EMAILS . $languages[2]['path'] . '/orders-updated.php';
$from_email_name = FROM_EMAIL_NAME;
$from_email_address = FROM_EMAIL_ADDRESS;
$sent = tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address);
} else {
$messagebox->add('ERROR found when redeeming code <strong>"' . $gv_no . '"</strong>, please recheck the voucher code.');
}
}
} elseif ($_POST['me_action'] == 'ADDNEWCOMMENT') {
$order_id = tep_db_prepare_input($_POST['order_id']);
$comment = tep_db_prepare_input(utf8_decode($_POST['comment']));
$comment_by = $session_userinfo['username'];
$comment_id = $class_o->insertComment($order_id, $comment, $comment_by);
//$comment = $class_o->retrieveCommentDetail($comment_id);
//$comments = array($comment);
$result = drawSingleComment($comment_id, $comment_by, time(), $comment);
echo utf8_encode($result);
exit;
} elseif ($_POST['me_action'] == 'DELETECOMMENT') {
$order_id = tep_db_prepare_input($_POST['order_id']);
$comment_id = tep_db_prepare_input($_POST['comment_id']);
$class_o->deleteComment($order_id, $comment_id);
echo utf8_encode($comment_id);
exit;
} elseif ($_POST['me_action'] == 'UPDATEPAIDSTATUS') {
$order_id = tep_db_prepare_input($_POST['order_id']);
$paid_status = tep_db_prepare_input($_POST['paid_status']);
$class_o->updatePaymentStatus($order_id, $paid_status, $session_userinfo['username']);