$result['new_status'] = $new_status; $result['new_status_name'] = statusName($new_status); if ($new_status != '10') { $result['msg_errors'] = oiErrorStatus($opid, $new_status, $old_status); } ajaxReturn($result); exit; } elseif ($_POST['me_action'] == 'REPRINTPI') { $type = tep_db_prepare_input($_POST['type']); $mode = tep_db_prepare_input($_POST['mode']); if ($mode == 'ready-printed-unscanned') { $target_url = 'http://' . $server . '/cron/print-pi.php'; $post_vars = array('type' => $type, 'mode' => $mode, 'excecuter' => $session_userinfo['username']); doCURL($target_url, $post_vars); } elseif ($mode == 'ready-printed-unscanned-next-batch') { $class_o->reprintNextBatchForPrintedUnscannedOrders(); echo utf8_encode("ready-printed-unscanned-next-batch-OK"); } exit; } } $statusName = $class_o->productStatusNameShort(); $status_counter = $class_o->productStatusCounter($statusNameShow, $ean_list, $date_range_start, $date_range_end, $brand_id, $cat_id); $main_link = '?open=orders-manage&products='; $content .= '<div style="margin-bottom:20px;text-align:center;">'; $content .= '<input type="button" id="togglethumbs" value="Toggle Product Thumbnails" title="Show or hide product thumbnails for each products (if exist)" />'; $content .= '<input type="button" id="tabreload" value="Reload Tab" title="Reload Current Tab" />'; $content .= '<span><a href="?open=elements-picking-list&hidemenu=true" class="view_webpage"></a><input type="button" id="showpickinglist" value="Show Picking Lists" title="Show all elements that need to Sourcing for J&G and SP orders" /></span>'; $content .= '</div>'; $content .= '<div id="orders">'; $content .= '<ul>';