$result .= '<td class="tac">' . $dl_icon . $total_sup . '</td>'; } $result .= '<td class="tac">' . $total_daily . '</td></tr>'; } $result .= '</tbody></table></div>'; echo utf8_encode($result); exit; } elseif ($_POST['me_action'] == 'GENERATERECLIST') { $segments_id = tep_db_prepare_input($_POST['segments_id']); $keywords = tep_db_prepare_input($_POST['keywords']); $list = $class_do->recommendationList($segments_id, $keywords); if (count($list) == 0) { $table = '<h3 class="red">No Products Found, please redefine your search</h3>'; } else { $table .= '<input type="hidden" id="list_segments_id" value="' . $segments_id . '" />'; $dpo_names = $class_do->retrieveGroupNameList(); $table .= '<div id="generator-list" style="display:none;">'; $table .= '<h3 class="red">' . '⋅ NON-REFILL ORDERS is not considered to be used' . ' as Depot Stock (ignored by all refill function)' . '<br />' . '⋅ Elements usage is still considered' . ' for sourcing based on Element DIOH Settings' . '</h3>'; $table .= '<div class="draw-table">'; $table .= '<table class="proman sticky-tablehead" border="0" cellpadding="0" cellspacing="0">'; //SPECIAL TABLE FOR NON REFILL DEPOT ORDERS $table .= '<thead>'; $table .= '<tr>'; $table .= '<th>No</th>'; $table .= '<th>Image</th>'; $table .= '<th>Info</th>'; $table .= '<th>Size</th>'; $table .= '<th>L30D Sold No Promo</th>'; $table .= '<th>L30D Sold</th>'; $table .= '<th>Stock Available</th>'; $table .= '<th>Stock Target</th>';
$ean = tep_db_prepare_input($_POST['ean']); use_class('products_ean'); $class_ean = new products_ean(); $product_info = $class_ean->getProductArticle($ean); $do = $class_do->searchDepotOrder(SEGMENT_ID_HAMBURG, $product_info['products_id'], $product_info['products_articles_id'], $status_otw, $group_name); if (count($do) > 0) { $do_first = array_shift($do); $new_status = $class_do->updateStatus($do_first['depot_orders_id'], $status_close, $session_userinfo['username']); } } } echo isset($new_status) && $new_status == '8' ? $ean : 'FAIL'; exit; } } $open_names = $class_do->retrieveGroupNameList('status=7'); array_unshift($open_names, $blank_groupname); array_unshift($open_names, $nonrefill_orders_name); array_unshift($open_names, ''); //START TEMPLATE $formtitle = '<h3>Please Scan Barcode</h3>'; $form .= '<div id="package-tip-status"></div>'; $form .= '<div style="text-align:center;padding:20px;">'; $form .= '<table align="center" class="form" border="0" cellpadding="0" cellspacing="0">'; $form .= '<tr id="message" style="display:none;"><td colspan="2" class="tac" style="font-size:1.2em;padding-bottom:20px;"></td></tr>'; $form .= '<tr id="gnm-row"><td width="80">Select Name</td><td><select id="group-name" class="input">' . loadComboListFromArray($open_names, null, null, false) . '</select></td></tr>'; $form .= '<tr id="ean-row" style="display:none;"><td>Scan EAN</td><td><input type="text" id="ean-entry" class="input" /></td></tr>'; $form .= '<tr id="dpid-row" style="display:none;"><td>Order Barcode</td><td><input type="text" id="dpid-entry" class="input" /></td></tr>'; $form .= '<tr id="submiting" style="display:none;"><td colspan="2" class="tac"><img src="images/ajax-load-1.gif" /></td></tr>'; $form .= '</table>'; $form .= '</div>';