📄 adminkinds_jsp.java
字号:
out.write(" main.action = \"updatekinds\";\r\n");
out.write(" if(obj.kindname1.value !=\"\")\r\n");
out.write(" {\r\n");
out.write(" if(confirm(\"你真的要修改所选的记录吗?\"))\r\n");
out.write(" {\r\n");
out.write(" obj.main.submit();\r\n");
out.write(" }\r\n");
out.write(" }else\r\n");
out.write(" {\r\n");
out.write(" alert(\"不能为空!\");\r\n");
out.write(" return;\r\n");
out.write(" }\r\n");
out.write("}\r\n");
out.write(" function showdiv(vv)\r\n");
out.write(" {\r\n");
out.write(" obj.showUpdate.style.display = \"\";\r\n");
out.write(" obj.kindid.value=vv.substring(0,vv.indexOf(','));\r\n");
out.write(" obj.kname.value=vv.substring(2);\r\n");
out.write(" }\r\n");
out.write(" function showdiv1(v)\r\n");
out.write(" {\r\n");
out.write(" obj.showAdd.style.display = \"\";\r\n");
out.write(" obj.kindid.value=v.substring(0,v.indexOf(','));\r\n");
out.write(" obj.kname1.value=v.substring(2);\r\n");
out.write(" }\r\n");
out.write(" function showSection()\r\n");
out.write(" {\r\n");
out.write(" obj.menuid.value = obj.section.selectedIndex;\r\n");
out.write(" main.action = \"showkinds\";\r\n");
out.write(" main.submit();\r\n");
out.write(" }\r\n");
out.write(" function set()\r\n");
out.write(" {\r\n");
out.write(" if(obj.index.value==0)\r\n");
out.write(" {\r\n");
out.write(" obj.section[0].selected = true;\r\n");
out.write(" }\r\n");
out.write(" else\r\n");
out.write(" {\r\n");
out.write(" obj.section[1].selected = true;\r\n");
out.write(" }\r\n");
out.write(" }\r\n");
out.write(" function addSection()\r\n");
out.write(" {\r\n");
out.write(" main.action = \"addsection\";\r\n");
out.write(" if(obj.kindname2.value !=\"\")\r\n");
out.write(" {\r\n");
out.write(" obj.main.submit();\r\n");
out.write(" }else\r\n");
out.write(" {\r\n");
out.write(" alert(\"不能为空!\");\r\n");
out.write(" return;\r\n");
out.write(" }\r\n");
out.write(" }\r\n");
out.write("</script></html>\r\n");
} 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_if_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:if
org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
_jspx_th_c_if_0.setPageContext(_jspx_page_context);
_jspx_th_c_if_0.setParent(null);
_jspx_th_c_if_0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${index==0}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag();
if (_jspx_eval_c_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write(" <input type=\"text\" maxlength=\"30\" name=\"kindname\">\r\n");
out.write(" \r\n");
out.write(" <input type=\"submit\" value=\"增加版块\">\r\n");
out.write(" ");
int evalDoAfterBody = _jspx_th_c_if_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_0);
return false;
}
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.setVar("obj");
_jspx_th_c_forEach_0.setItems((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${data}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));
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("\r\n");
out.write(" <tr>\r\n");
out.write(" <td>\r\n");
out.write(" <a href=\"showsubsection?kid=");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${obj.kid}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write('"');
out.write('>');
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${obj.kname}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write(" </a>\r\n");
out.write(" </td>\r\n");
out.write(" <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${obj.kdate}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write(" </td>\r\n");
out.write(" <td>\r\n");
out.write(" ");
if (_jspx_meth_c_if_1(_jspx_th_c_forEach_0, _jspx_page_context, _jspx_push_body_count_c_forEach_0))
return true;
out.write("\r\n");
out.write(" <a href=\"#\" lang=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${obj.kid}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write(',');
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${obj.kname}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\" onclick=\"showdiv(this.lang,this.lang)\">修改</a>\r\n");
out.write(" </td>\r\n");
out.write(" <td>\r\n");
out.write(" <a href=\"#\" lang=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${obj.kid}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\" onclick=\"deleted(this.lang)\">删除</a>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" ");
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;
}
private boolean _jspx_meth_c_if_1(javax.servlet.jsp.tagext.JspTag _jspx_th_c_forEach_0, PageContext _jspx_page_context, int[] _jspx_push_body_count_c_forEach_0)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:if
org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_1 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
_jspx_th_c_if_1.setPageContext(_jspx_page_context);
_jspx_th_c_if_1.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_forEach_0);
_jspx_th_c_if_1.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${index==0}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
int _jspx_eval_c_if_1 = _jspx_th_c_if_1.doStartTag();
if (_jspx_eval_c_if_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write(" <a href=\"#\" lang=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${obj.kid}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write(',');
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${obj.kname}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\" onclick=\"showdiv1(this.lang)\">增加</a>\r\n");
out.write(" \r\n");
out.write(" /\r\n");
out.write(" \r\n");
int evalDoAfterBody = _jspx_th_c_if_1.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_if_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_1);
return false;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -