echo utf8_encode($result);
     exit;
 } elseif ($_POST['me_action'] == 'UPDATEOISTATUS') {
     $items_id = tep_db_prepare_input($_POST['oi_id']);
     $old_status = tep_db_prepare_input($_POST['old_status']);
     $new_status = tep_db_prepare_input($_POST['new_status']);
     $item = $class_do->retrieveDetail($items_id);
     if ($item['status'] == $old_status) {
         $status_to_alert_success = array('3', '4');
         if ($new_status == 10) {
             $class_do->doCancelOrders($items_id, $old_status, $session_userinfo['username']);
         } else {
             $class_do->updateStatus($items_id, $new_status, $session_userinfo['username']);
         }
         list($new_status, $sub_status) = explode('-', $new_status);
         $status_name = $sub_status != '' ? subStatusNameShort($new_status, $sub_status) : $class_do->statusNameShort();
         if ($sub_status == '') {
             $status_name = $status_name[$new_status];
         }
         $result = array();
         $result['oi_id'] = $items_id;
         $result['old_status'] = $old_status;
         $result['new_status'] = $new_status;
         $result['msg_success'] = !in_array($old_status, $status_to_alert_success) ? '' : 'DP-' . $items_id . ' » set to ' . $status_name;
         $result['msg_errors'] = '';
     } else {
         $result = array();
         $result['oi_id'] = $items_id;
         $result['old_status'] = $old_status;
         $result['new_status'] = $item['status'];
         $result['msg_success'] = '';