📄 productdetail_005fbody_jsp.java
字号:
out.write("</div>\n");
out.write("\n");
out.write("\t\n");
out.write("\n");
out.write("\n");
out.write("<div class=\"lineProdInfo\">\n");
out.write("<h3>Range Overview</h3>\n");
out.write(" \n");
out.write("<!-- Intro Heading and Text -->\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("<p class=\"lineInfoSub\">");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${product.family.name}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</p>\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("<!-- Notes -->\t\n");
out.write("\n");
out.write("\n");
out.write("<!-- Approvals -->\t\n");
out.write("\n");
out.write("\t\n");
out.write("<!-- Standards -->\n");
out.write("\n");
out.write("\t\n");
out.write("<!-- Caution -->\n");
out.write("\n");
out.write("\n");
out.write("<!-- Warnings -->\n");
out.write("\n");
out.write("\n");
out.write("<!-- Licensed -->\t\n");
out.write("\n");
out.write("\n");
out.write("<!-- Trade Mark -->\t\n");
out.write("\n");
out.write("\n");
out.write("<!-- Supplied With -->\t\n");
out.write("\n");
out.write("\n");
out.write(" \n");
out.write("<!-- Info Text -->\n");
out.write("\n");
out.write("<!-- Tables --> \n");
out.write(" \n");
out.write("</div>\n");
out.write("\n");
out.write("\n");
out.write("\t\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\t\n");
out.write("</div>\n");
out.write("</div>\n");
out.write("\n");
out.write("<div id=\"emailFriend\">\n");
out.write("<img align=\"absmiddle\" src=\"http://img-china.rs-online.com/cn03/img/site/default/print.gif\"/>\n");
out.write("<a href=\"javascript:print()\">打印页面</a> \n");
out.write("<img align=\"absmiddle\" src=\"http://img-china.rs-online.com/cn03/img/site/default/email.gif\"/>\n");
out.write("<a href=\"javascript:sendMail()\">寄给朋友</a>\n");
out.write("<script>\n");
out.write("function sendMail(){\n");
out.write("var subject=\"Products of Interest\"\n");
out.write("var body = \"您也许对此感到兴趣。\\n\\nhttp://shanghai.rs-online.com/web/0204710.html\\n\\nRS Online 敬上\";\n");
out.write("var doc = \"mailto:?subject=\" + encodeURIComponent(subject) + \"&body=\" + encodeURIComponent(body);\n");
out.write("window.location = doc;\n");
out.write("}\n");
out.write("</script>\n");
out.write("</div>\n");
out.write("\n");
out.write("<div id=\"zoomBox\">\n");
out.write("\t<div class=\"zbBorder\">\n");
out.write("\t\t<div class=\"zbInner\">\n");
out.write("\t\t\t\n");
out.write("\t\t\t\n");
out.write("\t\t\t\n");
out.write("\t\t\t<h2>E10 24VAC/DC WHITE 1-LED</h2>\n");
out.write("\t\t\t\n");
out.write("\t\t\t\t\t\n");
out.write("\t\t<span class=\"zbClose\"><a href=\"javascript:hideStuff('zoomBox')\"><img border=\"0\" src=\"http://img-china.rs-online.com/cn03/img/site/cart/remove.gif\"/></a></span>\n");
out.write("\t\t</div>\n");
out.write("\t\t<div class=\"zbLarge\">\n");
out.write("\t\t\n");
out.write("\t\t\t\n");
out.write("\t\t\t<img align=\"middle\" title=\"E10 24VAC/DC WHITE 1-LED\" src=\"http://img-china.rs-online.com/largeimages/R382401-01.jpg\" alt=\"E10 24VAC/DC WHITE 1-LED\" id=\"zoom\"/>\n");
out.write("\t\t\t\n");
out.write("\t\t\t\n");
out.write("\t\t\t\n");
out.write("\t\t</div>\n");
out.write("\t\t<ul>\n");
out.write("\t\t\n");
out.write("\t\t<a onclick=\"moreImages('zoom','http://img-china.rs-online.com/largeimages/R382401-01.jpg')\" href=\"#header\"/><li><a onclick=\"moreImages('zoom','http://img-china.rs-online.com/largeimages/R382401-01.jpg')\" href=\"#header\"><img border=\"0\" src=\"http://img-china.rs-online.com/catimages/R382401-01.jpg\"/></a></li>\n");
out.write("\t\t\n");
out.write("\t\t\n");
out.write("\t\t</ul>\n");
out.write("\t</div>\n");
out.write("</div>\n");
out.write("<script type=\"text/javascript\" language=\"javascript1.2\">\n");
out.write("\n");
out.write(" var stockNumber;\n");
out.write(" /*\n");
out.write(" * Get the second options by calling a Struts action\n");
out.write(" */\n");
out.write(" function checkAvailability(formId){\n");
out.write(" \n");
out.write("\n");
out.write("\tvar formName = formId;\n");
out.write("\tstockNumber = document.getElementById(formName).stocknum.value;\n");
out.write("\tvar quantity = document.getElementById(formName).qty.value;\n");
out.write("\t//ATP qty to Order Qty\n");
out.write("\tdocument.searchBrowseForm.qty.value = quantity;\n");
out.write("\t//alert(quantity);\n");
out.write("\tif(quantity == \"\") { \n");
out.write("\t\treturn;\n");
out.write("\t}\n");
out.write("\t\t\n");
out.write(" var url=\"/web/search/searchBrowseAction.html?method=checkStockAvailability&stockNumber=\"+stockNumber+\"&quantity=\"+quantity;\n");
out.write(" \n");
out.write(" //Do the Ajax call\n");
out.write(" if (window.XMLHttpRequest){ // Non-IE browsers\n");
out.write(" req = new XMLHttpRequest();\n");
out.write(" //A call-back function is define so the browser knows which function to call after the server gives a reponse back\n");
out.write(" req.onreadystatechange = showAvailability;\n");
out.write(" try {\n");
out.write(" \treq.open(\"GET\", url, true); //was get\n");
out.write(" } catch (e) {\n");
out.write(" alert(\"Cannot connect to server\");\n");
out.write(" }\n");
out.write(" req.send(null);\n");
out.write(" } else if (window.ActiveXObject) { // IE \n");
out.write(" req = new ActiveXObject(\"Microsoft.XMLHTTP\");\n");
out.write(" if (req) {\n");
out.write(" req.onreadystatechange = showAvailability;\n");
out.write(" req.open(\"GET\", url, true);\n");
out.write(" req.send();\n");
out.write(" }\n");
out.write(" }\n");
out.write(" }\n");
out.write(" \n");
out.write(" //Callback function\n");
out.write(" function showAvailability(){\n");
out.write(" if (req.readyState == 4) { // Complete\n");
out.write(" var quantity = document.getElementById('form20204710').qty.value;\n");
out.write("\tvar msg = req.responseText;\n");
out.write("\tavailabilityLabelAndIndicator = msg.split(\"||\");\n");
out.write("\tvar availabilityLabelvalue = availabilityLabelAndIndicator[0];\n");
out.write("\tvar availabilityIndicator = availabilityLabelAndIndicator[1];\n");
out.write("\t\n");
out.write("\tif (availabilityIndicator=='Y'){\n");
out.write("\tdocument.getElementById('stockY').innerHTML=quantity + \" \" + availabilityLabelvalue;\n");
out.write("\t}\n");
out.write("\t\n");
out.write("\telse{\n");
out.write("\tdocument.getElementById('stockY').innerHTML=availabilityLabelvalue;\n");
out.write("\t}\n");
out.write("\t\n");
out.write("\t}\n");
out.write("}\n");
out.write("\n");
out.write("function checkCount(formName,e) {\n");
out.write("\tvar stockCount = document.getElementById(formName).qty.value;\n");
out.write("\tvar key = e.keyCode ? e.keyCode : e.which ? e.which : e.charCode;\n");
out.write("\t// Get ASCII value of key that user pressed\n");
out.write("\tif (navigator.appVersion.indexOf(\"MSIE\")!=-1){//For IE Browser{\n");
out.write("\t\tif(key==13){\n");
out.write("\t\t\tcheckAvailability(formName);\n");
out.write("\t\t\treturn false;\n");
out.write("\t\t}else if ((key > 47 && key < 58 || key==8 || key ==46 || key==37 || key ==39 || key > 95 && key < 106)){\n");
out.write("\t\t}else{\n");
out.write("\t\t\twindow.event.returnValue = null;\n");
out.write("\t\t}\n");
out.write("\t}else{\t\n");
out.write("\t\tif(key==13){\n");
out.write("\t\t\tcheckAvailability(formName);\n");
out.write("\t\t\treturn false;\n");
out.write("\t\t}else if ((key > 47 && key < 58 || key==8 || key ==46 || key==37 || key ==39 || key > 95 && key < 106)){\n");
out.write("\t\t}else{\n");
out.write("\t\t\te.preventDefault();\n");
out.write("\t\t\te.returnValue = null;\n");
out.write("\t\t}\n");
out.write("\t}\n");
out.write("}\n");
out.write(" function openDataSheet(stockNumber) {\n");
out.write(" var url = \"/web/search/searchBrowseAction.html?method=getTechDocs&stockNumber=\"+stockNumber;\n");
out.write(" window.open(url);\n");
out.write(" }\n");
out.write(" \n");
out.write(" function showLine(stockNo){\n");
out.write("\tstockNo = stockNo.replace(\"-\",\"\");\n");
out.write("\t\n");
out.write("\t\n");
out.write("\t\n");
out.write("\t\twindow.location=\"/web/\"+stockNo+\".html\";\n");
out.write("\t\n");
out.write("\t\n");
out.write("}\n");
out.write("\n");
out.write("</script>");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_c_forEach_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:forEach
org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_forEach_0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _jspx_tagPool_c_forEach_var_items.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
_jspx_th_c_forEach_0.setPageContext(_jspx_page_context);
_jspx_th_c_forEach_0.setParent(null);
_jspx_th_c_forEach_0.setItems((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${product.attributes}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));
_jspx_th_c_forEach_0.setVar("att");
int[] _jspx_push_body_count_c_forEach_0 = new int[] { 0 };
try {
int _jspx_eval_c_forEach_0 = _jspx_th_c_forEach_0.doStartTag();
if (_jspx_eval_c_forEach_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\n");
out.write("\t\t<tr><td valign=\"top\"><span>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${att.name}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</span></td><td valign=\"top\">");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${att.value}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td></tr>\n");
out.write("\t\t");
int evalDoAfterBody = _jspx_th_c_forEach_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_forEach_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
return true;
}
} catch (Throwable _jspx_exception) {
while (_jspx_push_body_count_c_forEach_0[0]-- > 0)
out = _jspx_page_context.popBody();
_jspx_th_c_forEach_0.doCatch(_jspx_exception);
} finally {
_jspx_th_c_forEach_0.doFinally();
_jspx_tagPool_c_forEach_var_items.reuse(_jspx_th_c_forEach_0);
}
return false;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -