Пример #1
0
$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>';
    }
}
Пример #2
0
        $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" />';
    $content .= 'Element ID &nbsp; <input type="text" id="other_elements_id" name="elements_id" value="" class="iwbutton" />';
    $content .= ' <input type="submit" name="submit" value="GO" />';
    $content .= '</form>';
    $content .= '</div>';
$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) 
            {
                if (txtStatus == "success") {
                    $("#pack_progress").hide();
                    $("#log_packages").html(htmlResult);
                    $("#log_packages").slideDown(slideSpeed);
                    $("#log_value_ged").val($("#log_packages").find("#log_value_ged_hidden").val());
                    $("#log_value_dhl").val($("#log_packages").find("#log_value_dhl_hidden").val());
                    $(".packopt-add").click(function() {
                        var logistic_id = $("#log_id").val();
Пример #4
0
         $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']);
         if ($order['jng_sp_id'] == '1') {
             //NECKERMANN.DE FORMAT
             $jng_id = $sp_detail['jng_id'];