$cancel_id = tep_db_prepare_input($_POST['cancel_id']);
     $cancel_old_status = tep_db_prepare_input($_POST['cancel_status']);
     if ($cancel_source == Order::ORDER_TYPE_JULIE_GRACE) {
         $new_status = $class_o->doCancelOrders($cancel_id, $cancel_old_status, $session_userinfo['username']);
     } elseif ($cancel_source == Order::ORDER_TYPE_SALES_PARTNER) {
         $new_status = $class_jo->doCancelOrders($cancel_id, $cancel_old_status, $session_userinfo['username']);
     }
     $result = isset($new_status) && statusIsCancelled($new_status) ? 'OK' : 'FAIL';
     $result .= '|' . $cancel_id;
     echo utf8_encode($result);
     exit;
 } elseif ($_POST['me_action'] == 'RESETLOGISTICPROCESS') {
     if ($source == Order::ORDER_TYPE_JULIE_GRACE) {
         $class_o->logisticProcessReset($order_id);
     } elseif ($source == Order::ORDER_TYPE_SALES_PARTNER) {
         $class_jo->logisticProcessReset($order_id);
     }
     echo utf8_encode('OK');
     exit;
 } 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'];
     if ($source == Order::ORDER_TYPE_JULIE_GRACE) {
         $comment_id = $class_o->insertComment($order_id, $comment, $comment_by);
     } elseif ($source == Order::ORDER_TYPE_SALES_PARTNER) {
         $comment_id = $class_jo->insertComment($order_id, $comment, $comment_by);
     }
     $result = drawSingleComment($comment_id, $comment_by, time(), $comment);
     echo utf8_encode($result);
     exit;