$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 {
    //ADDITIONAL INFO TO DISPLAY WHEN MODULE IS CALLED FROM Manobo
    $formwidth = 550;
    $jsmcbg = '';
    $form_footer .= '<div style="width:' . $formwidth . 'px;text-align:center;margin-top:30px;">';
    $form_footer .= '<a href="?open=sp-orders">Click here to go back to <strong>SP Orders Management</strong></a>';
    $form_footer .= '</div>';
    $content = '<h2 class="red">Scaning here will not generate Order Label automatically, PLEASE USE MANOBO CLIENT!</h2>';
}
$win_form->ui_setWindowWidth($formwidth);
$content .= $win_form->ui_print();
$content .= $form_footer;
$javascript .= '
            ' . $jsmcbg . '
            var id_col = new Array();
Exemple #2
0
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" />';
    $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" />';
         $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']);
         if ($order['jng_sp_id'] == '1') {
             //NECKERMANN.DE FORMAT