Esempio n. 1
0
     }
     $form .= '<div class="buttons">';
     $form .= '<input type="submit" name="submit" class="button blue" value="Generate PickingList" />';
     $form .= '<input type="button" class="button" value="Close List" id="hideelements" />';
     $form .= '</div>';
     $form .= '</form>';
     $win_form = new ui_window($formtitle, $form);
     $win_form->ui_setWindowWidth('90%');
     $win_form->ui_setAdditionalStyle('margin:0 auto;margin-bottom:20px;');
     $result = $win_form->ui_print();
     echo utf8_encode($result);
     exit;
 } elseif ($_POST['me_action'] == 'SENDDELAYINFORMATION') {
     $dmresult = new messagebox();
     $items_id = tep_db_prepare_input($_POST['oi_id']);
     if ($class_jo->isDelayInfoSent($items_id)) {
         $result = "{$items_id}: " . 'Delay Info for this product is already sent.';
         $dmresult->add($result, 'green');
     } else {
         //SEND NOTIFICATION "ITEM DELIVERY DELAY"
         $item = $class_jo->retrieveItemDetail($items_id);
         $order = $class_jo->retrieveDetail($item['jng_sp_orders_id']);
         if ($order['jng_sp_id'] == '1') {
             //NECKERMANN.DE FORMAT
             $jng_id = $sp_detail['jng_id'];
             $to_name = $sp_detail['contact_person'];
             $to_email_address = $sp_detail['email'];
             $customer_name = "{$order['customer_billing_title']} {$order['customer_billing_firstname']} {$order['customer_billing_lastname']}";
             $customer_id = $order['customer_billing_id'];
             $order_id = $order['order_id'];
             $order_date = date('d.m.Y', strtotime($order['order_date']));