$("#email-new").focus();
                        modalConfirm("Do you want to save new email address?", function() {
                            changeEmailSave();
                        });
                    }
                }
            });
            $(".ui-icon.ui-icon-info").each(function() {
                $(this).qtip({
                    content: $(this).siblings("span").html(),
                    style: {
                        border: { width:1, radius:5, color:"#000" },
                        tip: "leftMiddle"
                    },
                    position: {
                        corner: {
                            tooltip: "leftMiddle",
                            target: "rightMiddle"
                        }
                    },
                    hide: { fixed:true }
                });
            });
            ' . $class_jo->downloadRetailInvoiceJSAction($order_id) . '
            ' . drawCommentsJSAction('order_id', $order_id, 'ADDNEWCOMMENT', 'DELETECOMMENT', '') . '
            
';
    $old_order_link = $source == Order::ORDER_TYPE_JULIE_GRACE ? 'order' : 'sp-order';
    $order_number = $source == Order::ORDER_TYPE_JULIE_GRACE ? $order['orders_no'] : ($order['order_id'] == '' ? '<em>J&amp;G ID: ' . $order['jng_sp_orders_id'] . '</em>' : $order['order_id']);
    $title = 'Order ' . $order_number . ' &sdot; <a href="?open=' . $old_order_link . '&amp;id=' . $order_id . '" target="_blank">Open Old Order Detail &raquo;</a>';
}
Exemplo n.º 2
0
            $content .= '<div>&nbsp;</div>';
        }
        //RIGHT COL CLOSER
        $content .= '<div style="clear:both;">&nbsp;</div>';
        $content .= '</div>';
        $content .= '</div>';
        //TAB CONTENT OD-AI CLOSE
        $content .= '</div>';
        //ORDER DETAIL TABS CLOSE
        //CUSTOMER SPECIAL FORM (VIP/BLACKLIST)
        $content .= '<form name="csl_form" action="?open=order&amp;id=' . $order_id . '" method="post">';
        $content .= '<input type="hidden" name="me_action" value="UPDATECUSTOMERSPECIALLIST" />';
        $content .= '<input type="hidden" name="customers_id" value="' . $customer_id . '" />';
        $content .= '<input type="hidden" id="csl_status" name="status" value="" />';
        $content .= '</form>';
        $javascript = drawCommentsJSAction('order_id', $order_id, 'ADDNEWCOMMENT', 'DELETECOMMENT', 'calcInternalComments();') . '
                        function calcInternalComments() {
                            var total_comments = $("#commentlist").find(".comment").length.toString();
                            $("#ic-count").text(total_comments);
                        }
                        $("#od-tabs").tabs();
			var default_voucher_code = "' . $default_voucher_code_value . '";
			$("#voucher_code").focus(function() {
				if($(this).val()==default_voucher_code) $(this).val("");
			});
			$("#voucher_code").blur(function() {
				if($(this).val()=="") $(this).val(default_voucher_code);
			});
                        $(".btn_csl").click(function() {
                            var csl_status = $(this).attr("id").substr(-1);
                            $("#csl_status").val(csl_status);
//$content .= '<tr><td>Qty. of Products</td><td>'.$total_products_ordered['products_qty'].'</td></tr>';
$content .= '</table>';
$content .= '</div>';
//Comments
$comments = $class_jcs->retrieveComments($jng_sp_customers_id);
$content .= '<div style="margin-left:350px;width:330px;">';
$content .= $class_jcs->drawComments($comments, 'Comments', 'h3');
//$content .= '<div id="commentform" class="comment">';
//$content .= '<div><textarea id="comment-text" name="comment" style="width:100%;height:48px;"></textarea></div>';
//$content .= '<div style="padding-top:5px;text-align:right;">';
//$content .= '<input type="button" id="addcomment" value="Add Comment" />';
//$content .= '<img src="images/ajax-load-2.gif" id="comment-load" style="display:none;" />';
//$content .= '</div>';
//$content .= '</div>';
$content .= '</div>';
$javascript = drawCommentsJSAction('customer_id', $jng_sp_customers_id, 'ADDNEWCOMMENT', 'DELETECOMMENT', '') . '
            function textAlertSaved(htmlResult, txtStatus) {
                if(txtStatus=="success") {
                    $("#text-alert-load").css("display", "none");
                    $("#text-alert").parent().after("<div class=\'green\'>' . $typename . ' Reason / Description is updated</div>");
                    $("#text-alert-save").fadeIn(fadeSpeed);
                    setTimeout(function() {
                        $("#text-alert").parent().siblings("div.green").fadeOut(fadeSpeed);
                    }, 5000);
                }
            }
            $("#text-alert-save").click(function() {
                var text_alert = $("#text-alert").val();
                $("#text-alert").parent().siblings(".green").remove();
                $("#text-alert-save").css("display", "none");
                $("#text-alert-load").css("display", "inline");