$form .= '</div>'; $form .= '<table border="0" cellpadding="0" cellspacing="0">'; $form .= '<tr><td width="130">Delivery Name</td><td>' . $delname . '</td></tr>'; $form .= '<tr><td>Delivery Address</td><td>' . $deladdress . '</td></tr>'; $form .= '<tr><td>Delivery CP</td><td>' . $ctperson . '</td></tr>'; $form .= '<tr><td>Phone Number</td><td>' . $phoneno . '</td></tr>'; $form .= '<tr><td>Fax</td><td>' . $faxno . '</td></tr>'; $form .= '<tr><td>Email Address</td><td>' . $email . '</td></tr>'; $form .= '<tr><td>Shipper</td><td>' . $shipper . '</td></tr>'; $form .= '<tr><td>Account No</td><td>' . $shipper_account_no . '</td></tr>'; $form .= '<tr><td>Shipper Address</td><td>' . $shipper_addr . '</td></tr>'; $form .= '<tr><td>Country of Origin</td><td>' . $shipper_country . '</td></tr>'; $form .= '<tr><td>Shipper CP</td><td>' . $shipper_cp . '</td></tr>'; $form .= '</table>'; $form .= '</div>'; $win_logheader = new ui_window($title, $form); $win_logheader->ui_setWindowWidth($left_window_size); $content .= '<div style="float:left;">'; $content .= $win_loginfo->ui_print(); $content .= '<div id="log_packages"></div>'; $content .= '<div id="pack_progress" style="display:none;"><img src="images/ajax-load-2.gif" /></div>'; $content .= '</div>'; $content .= '<div style="margin-left:' . ($left_window_size + 30) . 'px;">'; $content .= $win_logheader->ui_print(); $content .= '</div>'; $javascript = ' var last_log_id_without_cogs = "' . $last_logistic_id_without_cogs . '"; var pdf_path = "' . DIR_WS_ARCHIVES . '"; var pdf_link = "' . $log_data['pdf_file'] . '"; function packagesLoaded(htmlResult, txtStatus) {
$form .= '<input type="button" id="clear-rack-nbs" value="Clear Non-Best Selling" ' . $btndis . '/>'; } $form .= '<input type="button" id="clear-rack" class="red" value="Clear Rack" />'; $form .= '<input type="button" id="print-stock" value="Print Stock List" />'; $form .= '</div>'; $form .= '<form name="clear_rack" action="?open=rack-info" method="post">'; $form .= '<input type="hidden" name="me_action" value="CLEARRACK" />'; $form .= '<input type="hidden" name="rack_id" value="' . $id . '" />'; $form .= '</form>'; $form .= '<form name="clear_rack_nbs" action="?open=rack-info" method="post">'; $form .= '<input type="hidden" name="me_action" value="CLEARRACKNBS" />'; $form .= '<input type="hidden" name="rack_id" value="' . $id . '" />'; $form .= '</form>'; $rack_no = $class_bin->formatRackNumber($rack['no']); $formtitle = 'Rack ' . $rack_no; $win_form = new ui_window($formtitle, $form); $win_form->ui_setWindowWidth(500); $content .= $win_form->ui_print(); $content .= '<div style="display:none;">'; $content .= '<div id="bs_list" style="width:400px;padding:20px;text-align:center;max-height:400px;">'; if ($bins_bs_total > 0) { $content .= '<h3>Rack ' . $rack_no . '<br /><span class="smallText">' . $rack_flag . ' Rack</span></h3>'; $content .= '<div style="margin-top:20px;">Bins booked by Best Selling Products:</div>'; foreach ($bins_bs as $b) { $products_id = $b['products_id']; $articles_id = $b['articles_id']; $booked = $products_id > 0 ? $class_pm->productsBookedCount($jng_warehouses_id, $products_id, $articles_id) : 0; $binclass = $booked > 0 ? ' class="red bold" title="Bin contains booked Articles"' : ''; $bexp = explode('-', $b['code']); $bin = $bexp[2] . ' - ' . $bexp[3] . ' - ' . $bexp[4]; $content .= '<div' . $binclass . ' style="padding:2px 0;">' . $bin . '</div>';
$attrform .= '<table border="0" cellpadding="0" cellspacing="0">'; $use_2col = array('shape', 'surface', 'cut', 'clasp', 'setting'); foreach ($element->attributes as $attr_type => $attr) { if ($attr_type != 'surface') { $attr_id = 'attribute_' . $attr_type . '_id'; $attr_options = $class_ea->drawOptions($attr_type, $attr['id'], $attr_id, $attr_id, $options, 'editable'); $attr_label = ucfirst($attr_type); if (in_array($attr_type, $use_2col)) { $attrform .= '<tr><td colspan="2">' . $attr_options . '</td></tr>'; } else { $attrform .= '<tr><td width="100">' . $attr_label . '</td><td>' . $attr_options . '</td></tr>'; } } } $attrform .= '</table></div>'; $attr_window = new ui_window($attrform_title, $attrform, 'attributes'); $attr_window->ui_setWindowWidth(600); $attr_window->ui_setAdditionalStyle('margin-top:20px;'); $attr_window->ui_setAdditionalStyle('display:none;'); $content .= $attr_window->ui_print(); if ($hidemenuscript == '') { $content .= '<div class="buttons-left">'; $content .= '<input type="button" id="el-tolist" value="Back to Element list" />'; $content .= '<input type="button" id="el-other" value="View Other Element" />'; $content .= '</div>'; } $content .= '</div>'; //element-detail if ($hidemenuscript == '') { $content .= '<div id="other-id" style="display:none">'; $content .= '<form name="elsearch" action="?open=element" method="post" />';
$formtitle = '<h3>Please Scan Barcode</h3>'; //$barcodetype = '<select id="barcode-type" class="input iwbutton">'; //$barcodetype .= '<option value="">Barcode Auto Select</option>'; //$barcodetype .= '<option value="SP-">Sales Partner</option>'; //$barcodetype .= '<option value="JG-">Julie & Grace</option>'; //$barcodetype .= '</select>'; $form .= '<div id="package-tip-status"></div>'; $form .= '<div style="text-align:center;padding:20px;">'; //$form .= $barcodetype; //$form .= '<br />'; $form .= '<table align="center" class="form" border="0" cellpadding="0" cellspacing="0">'; $form .= '<tr><td width="80">Scan PI</td><td><input type="text" id="barcode-entry" class="input iwbutton" style="text-align:center;" /></td></tr>'; $form .= '<tr><td>Scan EAN</td><td><input type="text" id="ean-entry" class="input iwbutton" style="text-align:center;" /></td></tr>'; $form .= '</table>'; $form .= '</div>'; $win_form = new ui_window($formtitle, $form); if (USERAGENTISMANOBOCLIENT && $hidemenuscript != '') { //ADDITIONAL SCRIPT TO RUN WHEN MODULE IS CALLED FROM Manobo Client $show_page_title = false; $formwidth = 400; $jsmcbg = '$("body").css("background-color", "#E3E3E3");'; $jsmcbg .= '$("#content_nomenu").css("padding", "0");'; $jscallback = ' if($("#print_order_id").attr("id")!=undefined) { var order_id = $("#print_order_id").val(); if(order_id!="") callbackManoboBrowser_PrintLabelOrder(order_id); } '; $form_footer = ''; $win_form->ui_setAdditionalStyle('margin:0 auto;'); } else {
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>'; $win_form = new ui_window($formtitle, $form); $formwidth = 550; $jsmcbg = ''; $win_form->ui_setWindowWidth($formwidth); $content .= $win_form->ui_print(); $javascript .= ' $("#group-name").change(function() { var gn = $(this).find("option:selected").text(); if(gn == "") { $("#ean-row").hide(); $("#dpid-row").hide(); } else if (gn == "' . $nonrefill_orders_name . '") { $("#ean-row").hide(); $("#dpid-row").show(); $("#dpid-row").focus(); } else {
while ($row = tep_db_fetch_array($el_result)) { //$el[$row['elements_id']] = $row; $usage = $elements_usage[$row['elements_id']]; $cbid = 'el-' . $row['elements_id']; $cb = '<input type="checkbox" name="cb_elements[' . $row['elements_id'] . ']" value="' . $usage . '" id="' . $cbid . '" title="Add to Picking List" />'; $form .= '<div style="background:#fff;border:1px solid #ccc; padding:5px; float:left; margin:10px 10px 0px 0px;">'; $form .= '<div><label for="' . $cbid . '">' . webImage($row['image'], '130', '130', 'Supplier: ' . $row['suppliers_name']) . '</label></div>'; $form .= '<div style="margin-top:5px;text-align:center;">' . $cb . ' ' . $row['elements_code'] . ' <strong>(' . $usage . ')</strong></div>'; $form .= '</div>'; } $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']);
$form .= '<div><table border="0" cellpadding="0" cellspacing="0">'; $form .= '<tr><td width="150" class="bold">J&G Customer ID</td><td class="bold">' . $customer['jng_sp_customers_id'] . '</td></tr>'; $form .= '<tr><td>Title</td><td>' . $customer['customer_title'] . '</td></tr>'; $form .= '<tr><td class="bold">Full Name</td><td class="bold">' . $fullname . '</td></tr>'; $form .= '<tr><td>Email Address</td><td>' . $customer['customer_email'] . '</td></tr>'; $total_phone_no = count($phones); if ($total_phone_no > 0) { $form .= '<tr><td>Phone No.</td><td>'; foreach ($phones as $key => $p) { $class = $total_phone_no > 1 && $key == 0 ? 'class="bold"' : ''; $form .= '<div ' . $class . '>' . $p['phone_no'] . '</div>'; } $form .= '</td></tr>'; } $form .= '</table></div>'; $win_form = new ui_window($formtitle, $form); $win_form->ui_setWindowWidth('100%'); $content .= '<div class="cdet" style="float:left;width:400px">'; $content .= $win_form->ui_print(); $content .= '</div>'; $content .= '<div style="margin-left:420px;">'; //customer additional info $content .= '<h3 style="margin-bottom:0;">Additional Info</h3>'; $content .= '<div class="ui-widget-content ui-corner-all padding" style="width:390px;"><table border="0" cellpadding="0" cellspacing="0">'; $content .= '<tr><td width="180">Sales Partner</td><td class="bold red">' . $sp_detail['name'] . '</td></tr>'; $content .= '<tr><td>SP Customer ID</td><td>' . $customer['customer_id'] . '</td></tr>'; $content .= '<tr><td>Date Added</td><td>' . date('d.m.Y H:i', strtotime($customer['date_added'])) . '</td></tr>'; //$content .= '<tr><td>Total Products N / O / C / R</td><td>{TOTAL_OCR}</td></tr>'; $tt = ' title="New / Ordered / Cancel / Returned"'; $content .= '<tr><td' . $tt . '>Total Products N / O / C / R</td><td' . $tt . '>{TOTAL_OCR}</td></tr>'; $content .= '<tr><td>Return Ratio</td><td>{RETURN_RATIO}</td></tr>';